Show More
@@ -242,6 +242,17 b' def _headssummary(pushop):' | |||
|
242 | 242 | for l in items: |
|
243 | 243 | if l is not None: |
|
244 | 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 | 256 | return headssum |
|
246 | 257 | |
|
247 | 258 | def _oldheadssummary(repo, remoteheads, outgoing, inc=False): |
@@ -334,17 +345,6 b' def checkheads(pushop):' | |||
|
334 | 345 | # If there are more heads after the push than before, a suitable |
|
335 | 346 | # error message, depending on unsynced status, is displayed. |
|
336 | 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 | 348 | for branch, heads in sorted(headssum.iteritems()): |
|
349 | 349 | remoteheads, newheads, unsyncedheads = heads |
|
350 | 350 | # add unsynced data |
General Comments 0
You need to be logged in to leave comments.
Login now