[Updated] D8987: tests: add few debugrevlogindex and a log call to see changes in next test
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Thu Sep 17 09:51:07 UTC 2020
pulkit updated this revision to Diff 22670.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8987?vs=22586&id=22670
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8987/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8987
AFFECTED FILES
tests/test-merge-criss-cross.t
CHANGE DETAILS
diff --git a/tests/test-merge-criss-cross.t b/tests/test-merge-criss-cross.t
--- a/tests/test-merge-criss-cross.t
+++ b/tests/test-merge-criss-cross.t
@@ -530,6 +530,10 @@
$ hg ci -m "merge-deleting-the-file-from-deleted"
$ hg manifest
other-file
+ $ hg debugrevlogindex the-file
+ rev linkrev nodeid p1 p2
+ 0 0 4b69178b9bda 000000000000 000000000000
+ 1 1 59e363a07dc8 4b69178b9bda 000000000000
$ hg update 'desc("updating-both-file")'
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
@@ -540,6 +544,10 @@
created new head
$ hg manifest
other-file
+ $ hg debugrevlogindex the-file
+ rev linkrev nodeid p1 p2
+ 0 0 4b69178b9bda 000000000000 000000000000
+ 1 1 59e363a07dc8 4b69178b9bda 000000000000
$ hg update 'desc("delete-the-file")'
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
@@ -552,6 +560,15 @@
other-file
the-file
+XXX: This should create a new filenode because user explicitly decided to keep
+the file. If we reuse the same filenode, future merges (criss-cross ones mostly)
+will think that file remain unchanged and user explicit choice will not be taken
+in consideration.
+ $ hg debugrevlogindex the-file
+ rev linkrev nodeid p1 p2
+ 0 0 4b69178b9bda 000000000000 000000000000
+ 1 1 59e363a07dc8 4b69178b9bda 000000000000
+
$ hg update 'desc("updating-both-file")'
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg merge 'desc("delete-the-file")' -t :local
@@ -563,6 +580,31 @@
other-file
the-file
+XXX: This should create a new filenode because user explicitly decided to keep
+the file. If we reuse the same filenode, future merges (criss-cross ones mostly)
+will think that file remain unchanged and user explicit choice will not be taken
+in consideration.
+ $ hg debugrevlogindex the-file
+ rev linkrev nodeid p1 p2
+ 0 0 4b69178b9bda 000000000000 000000000000
+ 1 1 59e363a07dc8 4b69178b9bda 000000000000
+
+ $ hg log -G -T '{node|short} {desc}\n'
+ @ 5e3eccec60d8 merge-keeping-the-file-from-updated
+ |\
+ +---o e9b708131723 merge-keeping-the-file-from-deleted
+ | |/
+ +---o a4e0e44229dc merge-deleting-the-file-from-updated
+ | |/
+ +---o adfd88e5d7d3 merge-deleting-the-file-from-deleted
+ | |/
+ | o 7801bc9b9899 delete-the-file
+ | |
+ o | 9b610631ab29 updating-both-file
+ |/
+ o 955800955977 root-commit
+
+
There the resulting merge together (leading to criss cross situation). Check
the conflict is properly detected.
To: pulkit, #hg-reviewers, marmoute
Cc: marmoute, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200917/e47fffe6/attachment-0002.html>
More information about the Mercurial-patches
mailing list