Show More
@@ -271,19 +271,19 b' def checkheads(repo, remote, outgoing, r' | |||||
271 | # Maybe we should abort if we push more that one head |
|
271 | # Maybe we should abort if we push more that one head | |
272 | # for new branches ? |
|
272 | # for new branches ? | |
273 | continue |
|
273 | continue | |
274 | if heads[2]: |
|
|||
275 | unsynced = True |
|
|||
276 | oldhs = set(heads[0]) |
|
|||
277 | candidate_newhs = set(heads[1]) |
|
274 | candidate_newhs = set(heads[1]) | |
278 | # add unsynced data |
|
275 | # add unsynced data | |
|
276 | oldhs = set(heads[0]) | |||
279 | oldhs.update(heads[2]) |
|
277 | oldhs.update(heads[2]) | |
280 | candidate_newhs.update(heads[2]) |
|
278 | candidate_newhs.update(heads[2]) | |
281 | dhs = None |
|
279 | dhs = None | |
|
280 | discardedheads = set() | |||
282 | if repo.obsstore: |
|
281 | if repo.obsstore: | |
283 | # remove future heads which are actually obsolete by another |
|
282 | # remove future heads which are actually obsolete by another | |
284 | # pushed element: |
|
283 | # pushed element: | |
285 | # |
|
284 | # | |
286 |
# XXX There |
|
285 | # XXX as above, There are several cases this case does not handle | |
|
286 | # XXX properly | |||
287 | # |
|
287 | # | |
288 | # (1) if <nh> is public, it won't be affected by obsolete marker |
|
288 | # (1) if <nh> is public, it won't be affected by obsolete marker | |
289 | # and a new is created |
|
289 | # and a new is created | |
@@ -300,11 +300,14 b' def checkheads(repo, remote, outgoing, r' | |||||
300 | else: |
|
300 | else: | |
301 | for suc in obsolete.anysuccessors(repo.obsstore, nh): |
|
301 | for suc in obsolete.anysuccessors(repo.obsstore, nh): | |
302 | if suc != nh and suc in allfuturecommon: |
|
302 | if suc != nh and suc in allfuturecommon: | |
|
303 | discardedheads.add(nh) | |||
303 | break |
|
304 | break | |
304 | else: |
|
305 | else: | |
305 | newhs.add(nh) |
|
306 | newhs.add(nh) | |
306 | else: |
|
307 | else: | |
307 | newhs = candidate_newhs |
|
308 | newhs = candidate_newhs | |
|
309 | if [h for h in heads[2] if h not in discardedheads]: | |||
|
310 | unsynced = True | |||
308 | if len(newhs) > len(oldhs): |
|
311 | if len(newhs) > len(oldhs): | |
309 | # strip updates to existing remote heads from the new heads list |
|
312 | # strip updates to existing remote heads from the new heads list | |
310 | dhs = list(newhs - bookmarkedheads - oldhs) |
|
313 | dhs = list(newhs - bookmarkedheads - oldhs) |
@@ -266,7 +266,6 b' handled yet.' | |||||
266 | $ hg push --traceback |
|
266 | $ hg push --traceback | |
267 | pushing to $TESTTMP/remote |
|
267 | pushing to $TESTTMP/remote | |
268 | searching for changes |
|
268 | searching for changes | |
269 | note: unsynced remote changes! |
|
|||
270 | adding changesets |
|
269 | adding changesets | |
271 | adding manifests |
|
270 | adding manifests | |
272 | adding file changes |
|
271 | adding file changes |
General Comments 0
You need to be logged in to leave comments.
Login now