ruby-changes:15455
From: nobu <ko1@a...>
Date: Fri, 16 Apr 2010 16:51:33 +0900 (JST)
Subject: [ruby-changes:15455] Ruby:r27354 (trunk): * tool/file2lastrev.rb (VCS::SVN::get_revisions.): remind about
nobu 2010-04-16 16:51:18 +0900 (Fri, 16 Apr 2010) New Revision: 27354 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27354 Log: * tool/file2lastrev.rb (VCS::SVN::get_revisions.): remind about DOSISH, sometimes. Modified files: trunk/ChangeLog trunk/tool/file2lastrev.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 27353) +++ ChangeLog (revision 27354) @@ -1,3 +1,8 @@ +Fri Apr 16 16:51:14 2010 Nobuyoshi Nakada <nobu@r...> + + * tool/file2lastrev.rb (VCS::SVN::get_revisions.): remind about + DOSISH, sometimes. + Fri Apr 16 16:15:40 2010 Yukihiro Matsumoto <matz@r...> * array.c (rb_ary_repeated_permutation): new method added. a patch Index: tool/file2lastrev.rb =================================================================== --- tool/file2lastrev.rb (revision 27353) +++ tool/file2lastrev.rb (revision 27354) @@ -61,8 +61,8 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/