commands: make bundle use heads computed by findoutgoing
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Mon, 09 Jan 2012 04:16:00 +0100
changeset 15836 926c9ee8d4be
parent 15835 fa15869bf95c
child 15837 cd956049fc14
commands: make bundle use heads computed by findoutgoing
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