changeset 28816:f4a42bb7c2ec

convert: don't ignore errors from git diff-tree
author Julien Cristau <julien.cristau@logilab.fr>
date Mon, 04 Apr 2016 15:38:48 +0200
parents 44611ad4fbd9
children e1d26630443d
files hgext/convert/git.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/git.py	Wed Apr 06 18:19:36 2016 +0000
+++ b/hgext/convert/git.py	Mon Apr 04 15:38:48 2016 +0200
@@ -357,6 +357,8 @@
             output, status = self.gitrunlines('diff-tree', '--name-only',
                                               '--root', '-r', version,
                                               '%s^%s' % (version, i + 1), '--')
+            if status:
+                raise error.Abort(_('cannot read changes in %s') % version)
             changes = [f.rstrip('\n') for f in output]
 
         return changes