Revisión | 94f5c737465e371d80a1448e93782182ef93cd33 (tree) |
---|---|
Tiempo | 2011-07-11 11:08:03 |
Autor | Toshi MARUYAMA <marutosijp2@yaho...> |
Commiter | Toshi MARUYAMA |
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
@@ -95,6 +95,10 @@ module Redmine | ||
95 | 95 | Info.new(:root_url => CGI.unescape(summary['repository']['root']), |
96 | 96 | :lastrev => Revision.new(:revision => tip['revision'], |
97 | 97 | :scmid => tip['node'])) |
98 | + # rescue HgCommandAborted | |
99 | + rescue Exception => e | |
100 | + logger.error "hg: error during getting info: #{e.message}" | |
101 | + nil | |
98 | 102 | end |
99 | 103 | |
100 | 104 | def tags |