1
0
Fork 0
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:
Nobuyoshi Nakada 2022-09-29 17:31:39 +09:00
parent aa490f9442
commit 58b3a535cc
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
Notes: git 2022-09-30 12:49:35 +09:00

View file

@ -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)