scm: mercurial: catch exception and return nil during getting info (#8777).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6245 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
bc5587002a
commit
48f6472e0f
|
@ -95,6 +95,10 @@ module Redmine
|
||||||
Info.new(:root_url => CGI.unescape(summary['repository']['root']),
|
Info.new(:root_url => CGI.unescape(summary['repository']['root']),
|
||||||
:lastrev => Revision.new(:revision => tip['revision'],
|
:lastrev => Revision.new(:revision => tip['revision'],
|
||||||
:scmid => tip['node']))
|
:scmid => tip['node']))
|
||||||
|
# rescue HgCommandAborted
|
||||||
|
rescue Exception => e
|
||||||
|
logger.error "hg: error during getting info: #{e.message}"
|
||||||
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def tags
|
def tags
|
||||||
|
|
Loading…
Reference in New Issue