# HG changeset patch # User Pierre-Yves David # Date 1326078960 -3600 # Node ID 926c9ee8d4be59e979afa183b9960596748d2c88 # Parent fa15869bf95c80c5ccf9f26e915d4ca80d2a1329 commands: make bundle use heads computed by findoutgoing diff -r fa15869bf95c -r 926c9ee8d4be mercurial/commands.py --- 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