Mercurial > hg
diff mercurial/commands.py @ 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 | 65f7e986a0d0 |
children | cd956049fc14 |
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