mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/file2lastrev.rb (VCS::GIT_SVN): removed because git-log can
deal with git-svn repository faster than git-svn-info. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0c6fb8ccaa
commit
4a6acc26d5
2 changed files with 4 additions and 11 deletions
|
@ -1,4 +1,7 @@
|
|||
Tue Mar 30 13:01:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Tue Mar 30 13:11:17 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* 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.
|
||||
|
|
|
@ -51,16 +51,6 @@ class VCS
|
|||
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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue