diff mercurial/commands.py @ 16736:025b3b763ba9 stable

bundle: make bundles more portable (isue3441) This is achieved by acting as if the user had given -r<rev> for each head rev of outgoing changesets on the command line, as well as appropriate --base <rev>. The discovery information is computed as normal, and then adjusted as above.
author Sune Foldager <cryo@cyanite.org>
date Sat, 12 May 2012 19:38:20 +0200
parents 265daefc00b2
children 9acb5cd19162 9c86ef980d9e
line wrap: on
line diff
--- a/mercurial/commands.py	Mon May 14 19:25:13 2012 -0400
+++ b/mercurial/commands.py	Sat May 12 19:38:20 2012 +0200
@@ -1011,7 +1011,8 @@
         heads = revs and map(repo.lookup, revs) or revs
         outgoing = discovery.findcommonoutgoing(repo, other,
                                                 onlyheads=heads,
-                                                force=opts.get('force'))
+                                                force=opts.get('force'),
+                                                portable=True)
         cg = repo.getlocalbundle('bundle', outgoing)
     if not cg:
         scmutil.nochangesfound(ui, outgoing and outgoing.excluded)