changeset 4049:863465381028

transplant: update to current writebundle API
author Brendan Cully <brendan@kublai.com>
date Tue, 30 Jan 2007 11:39:47 -0800
parents 5d6b3fa62736
children 75313c36aa04
files hgext/transplant.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/transplant.py	Mon Jan 29 17:33:09 2007 +0100
+++ b/hgext/transplant.py	Tue Jan 30 11:39:47 2007 -0800
@@ -7,8 +7,8 @@
 
 from mercurial.i18n import _
 import os, tempfile
-from mercurial import bundlerepo, cmdutil, commands, hg, merge, patch, revlog
-from mercurial import util
+from mercurial import bundlerepo, changegroup, cmdutil, commands, hg, merge
+from mercurial import patch, revlog, util
 
 '''patch transplanting tool
 
@@ -473,7 +473,7 @@
         bundle = None
         if not source.local():
             cg = source.changegroup(incoming, 'incoming')
-            bundle = commands.write_bundle(cg, compress=False)
+            bundle = changegroup.writebundle(cg, None, 'HG10UN')
             source = bundlerepo.bundlerepository(ui, repo.root, bundle)
 
         return (source, incoming, bundle)