Mercurial > hg
comparison hgext/convert/git.py @ 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 | 96ed01f6514b |
children | e1d26630443d |
comparison
equal
deleted
inserted
replaced
28815:44611ad4fbd9 | 28816:f4a42bb7c2ec |
---|---|
355 changes.append(f) | 355 changes.append(f) |
356 else: | 356 else: |
357 output, status = self.gitrunlines('diff-tree', '--name-only', | 357 output, status = self.gitrunlines('diff-tree', '--name-only', |
358 '--root', '-r', version, | 358 '--root', '-r', version, |
359 '%s^%s' % (version, i + 1), '--') | 359 '%s^%s' % (version, i + 1), '--') |
360 if status: | |
361 raise error.Abort(_('cannot read changes in %s') % version) | |
360 changes = [f.rstrip('\n') for f in output] | 362 changes = [f.rstrip('\n') for f in output] |
361 | 363 |
362 return changes | 364 return changes |
363 | 365 |
364 def getbookmarks(self): | 366 def getbookmarks(self): |