hgext/patchbomb.py
changeset 37603 678d760c71ff
parent 36668 e77cee5de1c7
child 38131 46c2b19a1263
equal deleted inserted replaced
37602:52670eaa14b4 37603:678d760c71ff
   304     for r in revs:
   304     for r in revs:
   305         if r == prev and (repo[None].files() or repo[None].deleted()):
   305         if r == prev and (repo[None].files() or repo[None].deleted()):
   306             ui.warn(_('warning: working directory has '
   306             ui.warn(_('warning: working directory has '
   307                       'uncommitted changes\n'))
   307                       'uncommitted changes\n'))
   308         output = stringio()
   308         output = stringio()
   309         cmdutil.export(repo, [r], fp=output,
   309         cmdutil.exportfile(repo, [r], output,
   310                      opts=patch.difffeatureopts(ui, opts, git=True))
   310                            opts=patch.difffeatureopts(ui, opts, git=True))
   311         yield output.getvalue().split('\n')
   311         yield output.getvalue().split('\n')
   312 def _getbundle(repo, dest, **opts):
   312 def _getbundle(repo, dest, **opts):
   313     """return a bundle containing changesets missing in "dest"
   313     """return a bundle containing changesets missing in "dest"
   314 
   314 
   315     The `opts` keyword-arguments are the same as the one accepted by the
   315     The `opts` keyword-arguments are the same as the one accepted by the