diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-06 11:18:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-06 11:18:53 +0000 |
commit | 951ef1d413f53d84273dd0bad230ee573fad51a4 (patch) | |
tree | de8ceb50ff38ae915123ec51123539967ee1da22 /tool/file2lastrev.rb | |
parent | 3234d6a6cba4e013cea778664ce4a8b372905ea1 (diff) |
file2lastrev.rb: suppress_not_found
* tool/file2lastrev.rb: exit successfully when command not found,
and if --suppress_not_found is given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/file2lastrev.rb')
-rwxr-xr-x | tool/file2lastrev.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb index ee615a5060..8d68da9f88 100755 --- a/tool/file2lastrev.rb +++ b/tool/file2lastrev.rb @@ -89,7 +89,8 @@ else begin puts @output[*vcs.get_revisions(arg)] rescue => e - warn "#{File.basename(Program)}: #{e.message}" unless @suppress_not_found + next if @suppress_not_found and VCS::NotFoundError === e + warn "#{File.basename(Program)}: #{e.message}" ok = false end end |