Mercurial > public > mercurial-scm > hg
diff hgext/transplant.py @ 14556:517e1d88bf7e
hg: change various repository() users to use peer() where appropriate
This gets all the easy cases (peers that aren't also used as repositories).
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 10 Jun 2011 11:43:38 -0500 |
parents | bdf44e63a94c |
children | 65f4512e40e4 |
line wrap: on
line diff
--- 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)