hgext/convert/git.py
changeset 37579 ce566e0f73d0
parent 36332 aefb75730ea3
child 37581 5b836a4c9a1f
equal deleted inserted replaced
37578:56df2ca5c032 37579:ce566e0f73d0
   433                 m, f = l[:-1].split("\t")
   433                 m, f = l[:-1].split("\t")
   434                 changes.append(f)
   434                 changes.append(f)
   435         else:
   435         else:
   436             output, status = self.gitrunlines('diff-tree', '--name-only',
   436             output, status = self.gitrunlines('diff-tree', '--name-only',
   437                                               '--root', '-r', version,
   437                                               '--root', '-r', version,
   438                                               '%s^%s' % (version, i + 1), '--')
   438                                               '%s^%d' % (version, i + 1), '--')
   439             if status:
   439             if status:
   440                 raise error.Abort(_('cannot read changes in %s') % version)
   440                 raise error.Abort(_('cannot read changes in %s') % version)
   441             changes = [f.rstrip('\n') for f in output]
   441             changes = [f.rstrip('\n') for f in output]
   442 
   442 
   443         return changes
   443         return changes