From 565d22756bcec472e64f76699ffe5a5194fe14dd Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 16 Apr 2010 07:51:18 +0000 Subject: [PATCH] * tool/file2lastrev.rb (VCS::SVN::get_revisions.): remind about DOSISH, sometimes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ tool/file2lastrev.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3388f30d3d..ba7bc28f42 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Apr 16 16:51:14 2010 Nobuyoshi Nakada + + * tool/file2lastrev.rb (VCS::SVN::get_revisions.): remind about + DOSISH, sometimes. + Fri Apr 16 16:15:40 2010 Yukihiro Matsumoto * array.c (rb_ary_repeated_permutation): new method added. a patch diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb index 1ce80c9032..7f668a2dda 100755 --- a/tool/file2lastrev.rb +++ b/tool/file2lastrev.rb @@ -61,8 +61,8 @@ class VCS def self.get_revisions(path) begin - nulldevice = '/dev/null' - if File.exist? nulldevice + nulldevice = %w[/dev/null NUL NIL: NL:].find {|dev| File.exist?(dev)} + if nulldevice save_stderr = STDERR.dup STDERR.reopen nulldevice, 'w' end