--- a/hgext/transplant.py Mon Jun 29 19:18:51 2015 -0700
+++ b/hgext/transplant.py Mon Jun 29 19:09:42 2015 -0700
@@ -625,8 +625,14 @@
if sourcerepo:
peer = hg.peer(repo, opts, ui.expandpath(sourcerepo))
heads = map(peer.lookup, opts.get('branch', ()))
+ target = set(heads)
+ for r in revs:
+ try:
+ target.add(peer.lookup(r))
+ except error.RepoError:
+ pass
source, csets, cleanupfn = bundlerepo.getremotechanges(ui, repo, peer,
- onlyheads=heads, force=True)
+ onlyheads=sorted(target), force=True)
else:
source = repo
heads = map(source.lookup, opts.get('branch', ()))