[前][次][番号順一覧][スレッド一覧]

ruby-changes:9678

From: nobu <ko1@a...>
Date: Thu, 1 Jan 2009 06:56:51 +0900 (JST)
Subject: [ruby-changes:9678] Ruby:r21219 (trunk): * tool/file2lastrev.rb: unset PWD.

nobu	2009-01-01 06:56:38 +0900 (Thu, 01 Jan 2009)

  New Revision: 21219

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21219

  Log:
    * tool/file2lastrev.rb: unset PWD.

  Modified files:
    trunk/ChangeLog
    trunk/tool/file2lastrev.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21218)
+++ ChangeLog	(revision 21219)
@@ -1,3 +1,7 @@
+Thu Jan  1 06:56:28 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* tool/file2lastrev.rb: unset PWD.
+
 Wed Dec 31 23:37:17 2008  Tanaka Akira  <akr@f...>
 
 	* ext/socket/socket.c (sock_s_socketpair): yield if a block is given.
Index: tool/file2lastrev.rb
===================================================================
--- tool/file2lastrev.rb	(revision 21218)
+++ tool/file2lastrev.rb	(revision 21219)
@@ -1,5 +1,8 @@
 #!/usr/bin/env ruby
 
+ENV['LANG'] = ENV['LC_ALL'] = ENV['LC_MESSAGES'] = 'C'
+ENV.delete('PWD')
+
 require 'optparse'
 require 'pathname'
 
@@ -14,7 +17,6 @@
 end
 
 def get_revisions(path)
-  ENV['LANG'] = ENV['LC_ALL'] = ENV['LC_MESSAGES'] = 'C'
   vcs, path = detect_vcs(path)
 
   info = case vcs

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]