Mercurial > hg-stable
changeset 15836:926c9ee8d4be
commands: make bundle use heads computed by findoutgoing
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Mon, 09 Jan 2012 04:16:00 +0100 |
parents | fa15869bf95c |
children | cd956049fc14 |
files | mercurial/commands.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Jan 09 04:15:31 2012 +0100 +++ b/mercurial/commands.py Mon Jan 09 04:16:00 2012 +0100 @@ -977,7 +977,7 @@ raise util.Abort(_("--base is incompatible with specifying " "a destination")) common = [repo.lookup(rev) for rev in base] - heads = revs and map(repo.lookup, revs) or revs + outheads = revs and map(repo.lookup, revs) or revs else: dest = ui.expandpath(dest or 'default-push', dest or 'default') dest, branches = hg.parseurl(dest, opts.get('branch')) @@ -988,7 +988,7 @@ onlyheads=heads, force=opts.get('force')) - cg = repo.getbundle('bundle', common=common, heads=heads) + cg = repo.getbundle('bundle', common=common, heads=outheads) if not cg: ui.status(_("no changes found\n")) return 1