##// END OF EJS Templates
transplant: update to current writebundle API
Brendan Cully -
r4049:86346538 default
parent child Browse files
Show More
@@ -7,8 +7,8 b''
7
7
8 from mercurial.i18n import _
8 from mercurial.i18n import _
9 import os, tempfile
9 import os, tempfile
10 from mercurial import bundlerepo, cmdutil, commands, hg, merge, patch, revlog
10 from mercurial import bundlerepo, changegroup, cmdutil, commands, hg, merge
11 from mercurial import util
11 from mercurial import patch, revlog, util
12
12
13 '''patch transplanting tool
13 '''patch transplanting tool
14
14
@@ -473,7 +473,7 b' def transplant(ui, repo, *revs, **opts):'
473 bundle = None
473 bundle = None
474 if not source.local():
474 if not source.local():
475 cg = source.changegroup(incoming, 'incoming')
475 cg = source.changegroup(incoming, 'incoming')
476 bundle = commands.write_bundle(cg, compress=False)
476 bundle = changegroup.writebundle(cg, None, 'HG10UN')
477 source = bundlerepo.bundlerepository(ui, repo.root, bundle)
477 source = bundlerepo.bundlerepository(ui, repo.root, bundle)
478
478
479 return (source, incoming, bundle)
479 return (source, incoming, bundle)
General Comments 0
You need to be logged in to leave comments. Login now