summaryrefslogtreecommitdiff
path: root/tool/file2lastrev.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-16 07:51:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-16 07:51:18 +0000
commit565d22756bcec472e64f76699ffe5a5194fe14dd (patch)
tree52bf73292174ec1954e77b7c903577ea647a3dcb /tool/file2lastrev.rb
parentb62feb5e0482e2a7e8ec42f0413f5b7aff0552ba (diff)
* 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
Diffstat (limited to 'tool/file2lastrev.rb')
-rwxr-xr-xtool/file2lastrev.rb4
1 files changed, 2 insertions, 2 deletions
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