hgext/transplant.py
changeset 14556 517e1d88bf7e
parent 14393 bdf44e63a94c
child 14564 65f4512e40e4
--- a/hgext/transplant.py	Fri Jun 10 11:43:38 2011 -0500
+++ b/hgext/transplant.py	Fri Jun 10 11:43:38 2011 -0500
@@ -561,7 +561,7 @@
 
     sourcerepo = opts.get('source')
     if sourcerepo:
-        source = hg.repository(ui, ui.expandpath(sourcerepo))
+        source = hg.peer(ui, opts, ui.expandpath(sourcerepo))
         branches = map(source.lookup, opts.get('branch', ()))
         source, csets, cleanupfn = bundlerepo.getremotechanges(ui, repo, source,
                                     onlyheads=branches, force=True)