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

ruby-changes:15223

From: nobu <ko1@a...>
Date: Tue, 30 Mar 2010 13:11:43 +0900 (JST)
Subject: [ruby-changes:15223] Ruby:r27105 (trunk): * tool/file2lastrev.rb (VCS::GIT_SVN): removed because git-log can

nobu	2010-03-30 13:11:24 +0900 (Tue, 30 Mar 2010)

  New Revision: 27105

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

  Log:
    * tool/file2lastrev.rb (VCS::GIT_SVN): removed because git-log can
      deal with git-svn repository faster than git-svn-info.

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 27104)
+++ ChangeLog	(revision 27105)
@@ -1,5 +1,8 @@
-Tue Mar 30 13:01:10 2010  Nobuyoshi Nakada  <nobu@r...>
+Tue Mar 30 13:11:17 2010  Nobuyoshi Nakada  <nobu@r...>
 
+	* tool/file2lastrev.rb (VCS::GIT_SVN): removed because git-log can
+	  deal with git-svn repository faster than git-svn-info.
+
 	* tool/file2lastrev.rb (VCS#get_revisions): particular commands do
 	  not depend on instance.
 
Index: tool/file2lastrev.rb
===================================================================
--- tool/file2lastrev.rb	(revision 27104)
+++ tool/file2lastrev.rb	(revision 27105)
@@ -51,16 +51,6 @@
     end
   end
 
-  class GIT_SVN < self
-    register(".git/svn")
-
-    def self.get_revisions(path)
-      lastlog = `git log -n1`
-      info = `git svn info "#{path}"`
-      [info[/^Revision: (\d+)/, 1], info[/^Last Changed Rev: (\d+)/, 1]]
-    end
-  end
-
   class GIT < self
     register(".git")
 

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

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