##// END OF EJS Templates
checkheads: perform obsolescence post processing directly in _headssummary...
marmoute -
r32707:32c8f98a default
parent child Browse files
Show More
@@ -242,6 +242,17 b' def _headssummary(pushop):'
242 for l in items:
242 for l in items:
243 if l is not None:
243 if l is not None:
244 l.sort()
244 l.sort()
245 # If there are no obsstore, no post processing are needed.
246 if repo.obsstore:
247 allmissing = set(outgoing.missing)
248 cctx = repo.set('%ld', outgoing.common)
249 allfuturecommon = set(c.node() for c in cctx)
250 allfuturecommon.update(allmissing)
251 for branch, heads in sorted(headssum.iteritems()):
252 remoteheads, newheads, unsyncedheads = heads
253 result = _postprocessobsolete(pushop, allfuturecommon, newheads)
254 newheads = sorted(result[0])
255 headssum[branch] = (remoteheads, newheads, unsyncedheads)
245 return headssum
256 return headssum
246
257
247 def _oldheadssummary(repo, remoteheads, outgoing, inc=False):
258 def _oldheadssummary(repo, remoteheads, outgoing, inc=False):
@@ -334,17 +345,6 b' def checkheads(pushop):'
334 # If there are more heads after the push than before, a suitable
345 # If there are more heads after the push than before, a suitable
335 # error message, depending on unsynced status, is displayed.
346 # error message, depending on unsynced status, is displayed.
336 errormsg = None
347 errormsg = None
337 # If there are no obsstore, no post-processing are needed.
338 if repo.obsstore:
339 allmissing = set(outgoing.missing)
340 cctx = repo.set('%ld', outgoing.common)
341 allfuturecommon = set(c.node() for c in cctx)
342 allfuturecommon.update(allmissing)
343 for branch, heads in sorted(headssum.iteritems()):
344 remoteheads, newheads, unsyncedheads = heads
345 result = _postprocessobsolete(pushop, allfuturecommon, newheads)
346 newheads = sorted(result[0])
347 headssum[branch] = (remoteheads, newheads, unsyncedheads)
348 for branch, heads in sorted(headssum.iteritems()):
348 for branch, heads in sorted(headssum.iteritems()):
349 remoteheads, newheads, unsyncedheads = heads
349 remoteheads, newheads, unsyncedheads = heads
350 # add unsynced data
350 # add unsynced data
General Comments 0
You need to be logged in to leave comments. Login now