diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb index c84e5d3ca..6ef816b73 100644 --- a/lib/redmine/scm/adapters/mercurial_adapter.rb +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb @@ -95,6 +95,10 @@ module Redmine 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