Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merged r6245 from trunk.

scm: mercurial: catch exception and return nil during getting info.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.2-stable@6253 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information...
commit 94f5c737465e371d80a1448e93782182ef93cd33 1 parent 8b6fd63
@marutosi marutosi authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/redmine/scm/adapters/mercurial_adapter.rb
View
4 lib/redmine/scm/adapters/mercurial_adapter.rb
@@ -95,6 +95,10 @@ def info
Info.new(:root_url => CGI.unescape(summary['repository']['root']),
:lastrev => Revision.new(:revision => tip['revision'],
:scmid => tip['node']))
+ # rescue HgCommandAborted
+ rescue Exception => e
+ logger.error "hg: error during getting info: #{e.message}"
+ nil
end
def tags
Please sign in to comment.
Something went wrong with that request. Please try again.