mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Pull up VCS.short_revision
from VCS::SVN
This commit is contained in:
parent
aa490f9442
commit
58b3a535cc
Notes:
git
2022-09-30 12:49:35 +09:00
1 changed files with 4 additions and 4 deletions
|
@ -104,6 +104,10 @@ class VCS
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.short_revision(rev)
|
||||||
|
rev
|
||||||
|
end
|
||||||
|
|
||||||
attr_reader :srcdir
|
attr_reader :srcdir
|
||||||
|
|
||||||
def initialize(path)
|
def initialize(path)
|
||||||
|
@ -251,10 +255,6 @@ class VCS
|
||||||
"r#{rev}"
|
"r#{rev}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.short_revision(rev)
|
|
||||||
rev
|
|
||||||
end
|
|
||||||
|
|
||||||
def _get_revisions(path, srcdir = nil)
|
def _get_revisions(path, srcdir = nil)
|
||||||
if srcdir and self.class.local_path?(path)
|
if srcdir and self.class.local_path?(path)
|
||||||
path = File.join(srcdir, path)
|
path = File.join(srcdir, path)
|
||||||
|
|
Loading…
Reference in a new issue