convert: don't ignore errors from git diff-tree
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 04 Apr 2016 15:38:48 +0200
changeset 28816 f4a42bb7c2ec
parent 28815 44611ad4fbd9
child 28817 e1d26630443d
convert: don't ignore errors from git diff-tree
hgext/convert/git.py
--- 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