hgext/convert/git.py
changeset 28816 f4a42bb7c2ec
parent 28671 96ed01f6514b
child 28817 e1d26630443d
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):