##// END OF EJS Templates
push: move `commonheads` into the push object...
Pierre-Yves David -
r20467:ef880ced default
parent child Browse files
Show More
@@ -48,6 +48,8 b' class pushoperation(object):'
48 self.remoteheads = None
48 self.remoteheads = None
49 # testable as a boolean indicating if any nodes are missing locally.
49 # testable as a boolean indicating if any nodes are missing locally.
50 self.incoming = None
50 self.incoming = None
51 # set of all heads common after changeset bundle push
52 self.commonheads = None
51
53
52 def push(repo, remote, force=False, revs=None, newbranch=False):
54 def push(repo, remote, force=False, revs=None, newbranch=False):
53 '''Push outgoing changesets (limited by revs) from a local
55 '''Push outgoing changesets (limited by revs) from a local
@@ -238,6 +240,7 b' def _pushsyncphase(pushop):'
238 pushop.outgoing.commonheads,
240 pushop.outgoing.commonheads,
239 pushop.outgoing.missing)
241 pushop.outgoing.missing)
240 cheads.extend(c.node() for c in revset)
242 cheads.extend(c.node() for c in revset)
243 pushop.commonheads = cheads
241 # even when we don't push, exchanging phase data is useful
244 # even when we don't push, exchanging phase data is useful
242 remotephases = pushop.remote.listkeys('phases')
245 remotephases = pushop.remote.listkeys('phases')
243 if (pushop.ui.configbool('ui', '_usedassubrepo', False)
246 if (pushop.ui.configbool('ui', '_usedassubrepo', False)
General Comments 0
You need to be logged in to leave comments. Login now