Show More
@@ -355,19 +355,15 b' def _filecommit(' | |||||
355 | elif fparent1 == nullid: |
|
355 | elif fparent1 == nullid: | |
356 | fparent1, fparent2 = fparent2, nullid |
|
356 | fparent1, fparent2 = fparent2, nullid | |
357 | elif fparent2 != nullid: |
|
357 | elif fparent2 != nullid: | |
358 | # is one parent an ancestor of the other? |
|
358 | if ms.active() and ms.extras(fname).get(b'filenode-source') == b'other': | |
359 | fparentancestors = flog.commonancestorsheads(fparent1, fparent2) |
|
|||
360 | if fparent1 in fparentancestors: |
|
|||
361 | fparent1, fparent2 = fparent2, nullid |
|
359 | fparent1, fparent2 = fparent2, nullid | |
362 | elif fparent2 in fparentancestors: |
|
360 | # is one parent an ancestor of the other? | |
363 | fparent2 = nullid |
|
361 | else: | |
364 | elif not fparentancestors: |
|
362 | fparentancestors = flog.commonancestorsheads(fparent1, fparent2) | |
365 | # TODO: this whole if-else might be simplified much more |
|
363 | if fparent1 in fparentancestors: | |
366 | if ( |
|
|||
367 | ms.active() |
|
|||
368 | and ms.extras(fname).get(b'filenode-source') == b'other' |
|
|||
369 | ): |
|
|||
370 | fparent1, fparent2 = fparent2, nullid |
|
364 | fparent1, fparent2 = fparent2, nullid | |
|
365 | elif fparent2 in fparentancestors: | |||
|
366 | fparent2 = nullid | |||
371 |
|
367 | |||
372 | force_new_node = False |
|
368 | force_new_node = False | |
373 | # The file might have been deleted by merge code and user explicitly choose |
|
369 | # The file might have been deleted by merge code and user explicitly choose |
@@ -276,13 +276,13 b' Check that the right ancestors is used w' | |||||
276 | committing manifest |
|
276 | committing manifest | |
277 | committing changelog |
|
277 | committing changelog | |
278 | updating the branch cache |
|
278 | updating the branch cache | |
279 |
rebased as |
|
279 | rebased as c1ffa3b5274e | |
280 | rebase status stored |
|
280 | rebase status stored | |
281 | rebase merging completed |
|
281 | rebase merging completed | |
282 | update back to initial working directory parent |
|
282 | update back to initial working directory parent | |
283 | resolving manifests |
|
283 | resolving manifests | |
284 | branchmerge: False, force: False, partial: False |
|
284 | branchmerge: False, force: False, partial: False | |
285 |
ancestor: |
|
285 | ancestor: c1ffa3b5274e, local: c1ffa3b5274e+, remote: d79e2059b5c0 | |
286 | f1.txt: other deleted -> r |
|
286 | f1.txt: other deleted -> r | |
287 | removing f1.txt |
|
287 | removing f1.txt | |
288 | f2.txt: remote created -> g |
|
288 | f2.txt: remote created -> g | |
@@ -300,7 +300,7 b' Check that the right ancestors is used w' | |||||
300 | list of changesets: |
|
300 | list of changesets: | |
301 | 4c9fbe56a16f30c0d5dcc40ec1a97bbe3325209c |
|
301 | 4c9fbe56a16f30c0d5dcc40ec1a97bbe3325209c | |
302 | 19c888675e133ab5dff84516926a65672eaf04d9 |
|
302 | 19c888675e133ab5dff84516926a65672eaf04d9 | |
303 | 2a7f09cac94c7f4b73ebd5cd1a62d3b2e8e336bf |
|
303 | c1ffa3b5274e92a9388fe782854e295d2e8d0443 | |
304 | bundle2-output-bundle: "HG20", 3 parts total |
|
304 | bundle2-output-bundle: "HG20", 3 parts total | |
305 | bundle2-output-part: "changegroup" (params: 1 mandatory 1 advisory) streamed payload |
|
305 | bundle2-output-part: "changegroup" (params: 1 mandatory 1 advisory) streamed payload | |
306 | bundle2-output-part: "cache:rev-branch-cache" (advisory) streamed payload |
|
306 | bundle2-output-part: "cache:rev-branch-cache" (advisory) streamed payload | |
@@ -311,7 +311,7 b' Check that the right ancestors is used w' | |||||
311 | adding changesets |
|
311 | adding changesets | |
312 | add changeset 4c9fbe56a16f |
|
312 | add changeset 4c9fbe56a16f | |
313 | add changeset 19c888675e13 |
|
313 | add changeset 19c888675e13 | |
314 |
add changeset |
|
314 | add changeset c1ffa3b5274e | |
315 | adding manifests |
|
315 | adding manifests | |
316 | adding file changes |
|
316 | adding file changes | |
317 | adding f1.txt revisions |
|
317 | adding f1.txt revisions |
General Comments 0
You need to be logged in to leave comments.
Login now