* tool/file2lastrev.rb: make -q effective for files not version
controlled. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7475244ec4
commit
d9aab57252
@ -1,3 +1,8 @@
|
|||||||
|
Thu Apr 15 20:41:10 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* tool/file2lastrev.rb: make -q effective for files not version
|
||||||
|
controlled.
|
||||||
|
|
||||||
Thu Apr 15 14:50:19 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Apr 15 14:50:19 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* vm.c (vm_backtrace_each): get rid of use of malloc from signal
|
* vm.c (vm_backtrace_each): get rid of use of malloc from signal
|
||||||
|
@ -60,7 +60,7 @@ class VCS
|
|||||||
register(".svn")
|
register(".svn")
|
||||||
|
|
||||||
def self.get_revisions(path)
|
def self.get_revisions(path)
|
||||||
info_xml = `svn info --xml "#{path}"`
|
info_xml = IO.popen(["svn", "info", "--xml", path.to_s, :err=>[:child, :out]]) {|f| f.read }
|
||||||
_, last, _, changed, _ = info_xml.split(/revision="(\d+)"/)
|
_, last, _, changed, _ = info_xml.split(/revision="(\d+)"/)
|
||||||
[last, changed]
|
[last, changed]
|
||||||
end
|
end
|
||||||
@ -114,7 +114,12 @@ begin
|
|||||||
rescue VCS::NotFoundError => e
|
rescue VCS::NotFoundError => e
|
||||||
abort "#{Program.basename}: #{e.message}" unless @suppress_not_found
|
abort "#{Program.basename}: #{e.message}" unless @suppress_not_found
|
||||||
else
|
else
|
||||||
|
begin
|
||||||
last, changed = vcs.get_revisions(ARGV.shift)
|
last, changed = vcs.get_revisions(ARGV.shift)
|
||||||
|
rescue => e
|
||||||
|
abort "#{Program.basename}: #{e.message}" unless @suppress_not_found
|
||||||
|
exit false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
case @output
|
case @output
|
||||||
|
Loading…
x
Reference in New Issue
Block a user