##// END OF EJS Templates
commit: improve the files field of changelog for merges...
Valentin Gatien-Baron -
r42840:99ebde4f default
parent child Browse files
Show More
@@ -2661,6 +2661,47 b' class localrepository(object):'
2661 drop = sorted([f for f in removed if f in m])
2661 drop = sorted([f for f in removed if f in m])
2662 for f in drop:
2662 for f in drop:
2663 del m[f]
2663 del m[f]
2664 if p2.rev() != nullrev:
2665 @util.cachefunc
2666 def mas():
2667 p1n = p1.node()
2668 p2n = p2.node()
2669 cahs = self.changelog.commonancestorsheads(p1n, p2n)
2670 if not cahs:
2671 cahs = [nullrev]
2672 return [self[r].manifest() for r in cahs]
2673 def deletionfromparent(f):
2674 # When a file is removed relative to p1 in a merge, this
2675 # function determines whether the absence is due to a
2676 # deletion from a parent, or whether the merge commit
2677 # itself deletes the file. We decide this by doing a
2678 # simplified three way merge of the manifest entry for
2679 # the file. There are two ways we decide the merge
2680 # itself didn't delete a file:
2681 # - neither parent (nor the merge) contain the file
2682 # - exactly one parent contains the file, and that
2683 # parent has the same filelog entry as the merge
2684 # ancestor (or all of them if there two). In other
2685 # words, that parent left the file unchanged while the
2686 # other one deleted it.
2687 # One way to think about this is that deleting a file is
2688 # similar to emptying it, so the list of changed files
2689 # should be similar either way. The computation
2690 # described above is not done directly in _filecommit
2691 # when creating the list of changed files, however
2692 # it does something very similar by comparing filelog
2693 # nodes.
2694 if f in m1:
2695 return (f not in m2
2696 and all(f in ma and ma.find(f) == m1.find(f)
2697 for ma in mas()))
2698 elif f in m2:
2699 return all(f in ma and ma.find(f) == m2.find(f)
2700 for ma in mas())
2701 else:
2702 return True
2703 removed = [f for f in removed if not deletionfromparent(f)]
2704
2664 files = changed + removed
2705 files = changed + removed
2665 md = None
2706 md = None
2666 if not files:
2707 if not files:
@@ -583,12 +583,12 b' on branch2 with branch1 merged, so file1'
583 (branch merge, don't forget to commit)
583 (branch merge, don't forget to commit)
584 $ hg ci -d '4 0' -m 'merge backout of branch1'
584 $ hg ci -d '4 0' -m 'merge backout of branch1'
585 $ hg id
585 $ hg id
586 22149cdde76d (branch2) tip
586 d97a8500a969 (branch2) tip
587 $ hg st -A
587 $ hg st -A
588 C default
588 C default
589 C file2
589 C file2
590 $ hg summary
590 $ hg summary
591 parent: 4:22149cdde76d tip
591 parent: 4:d97a8500a969 tip
592 merge backout of branch1
592 merge backout of branch1
593 branch: branch2
593 branch: branch2
594 commit: (clean)
594 commit: (clean)
@@ -649,7 +649,7 b' Amend a merge changeset (with renames an'
649 (no more unresolved files)
649 (no more unresolved files)
650 $ hg ci -m 'merge bar'
650 $ hg ci -m 'merge bar'
651 $ hg log --config diff.git=1 -pr .
651 $ hg log --config diff.git=1 -pr .
652 changeset: 20:163cfd7219f7
652 changeset: 20:5aba7f3726e6
653 tag: tip
653 tag: tip
654 parent: 19:30d96aeaf27b
654 parent: 19:30d96aeaf27b
655 parent: 18:1aa437659d19
655 parent: 18:1aa437659d19
@@ -682,7 +682,7 b' Amend a merge changeset (with renames an'
682 $ HGEDITOR="sh .hg/checkeditform.sh" hg ci --amend -m 'merge bar (amend message)' --edit
682 $ HGEDITOR="sh .hg/checkeditform.sh" hg ci --amend -m 'merge bar (amend message)' --edit
683 HGEDITFORM=commit.amend.merge
683 HGEDITFORM=commit.amend.merge
684 $ hg log --config diff.git=1 -pr .
684 $ hg log --config diff.git=1 -pr .
685 changeset: 21:bca52d4ed186
685 changeset: 21:4b0631ef043e
686 tag: tip
686 tag: tip
687 parent: 19:30d96aeaf27b
687 parent: 19:30d96aeaf27b
688 parent: 18:1aa437659d19
688 parent: 18:1aa437659d19
@@ -715,7 +715,7 b' Amend a merge changeset (with renames an'
715 $ hg mv zz z
715 $ hg mv zz z
716 $ hg ci --amend -m 'merge bar (undo rename)'
716 $ hg ci --amend -m 'merge bar (undo rename)'
717 $ hg log --config diff.git=1 -pr .
717 $ hg log --config diff.git=1 -pr .
718 changeset: 22:12594a98ca3f
718 changeset: 22:06423be42d60
719 tag: tip
719 tag: tip
720 parent: 19:30d96aeaf27b
720 parent: 19:30d96aeaf27b
721 parent: 18:1aa437659d19
721 parent: 18:1aa437659d19
@@ -751,9 +751,9 b' Amend a merge changeset (with renames du'
751 $ echo aa >> aaa
751 $ echo aa >> aaa
752 $ hg ci -m 'merge bar again'
752 $ hg ci -m 'merge bar again'
753 $ hg log --config diff.git=1 -pr .
753 $ hg log --config diff.git=1 -pr .
754 changeset: 24:dffde028b388
754 changeset: 24:a89974a20457
755 tag: tip
755 tag: tip
756 parent: 22:12594a98ca3f
756 parent: 22:06423be42d60
757 parent: 23:4c94d5bc65f5
757 parent: 23:4c94d5bc65f5
758 user: test
758 user: test
759 date: Thu Jan 01 00:00:00 1970 +0000
759 date: Thu Jan 01 00:00:00 1970 +0000
@@ -800,9 +800,9 b' in p1 too, but it was recorded as copied'
800 $ hg mv aaa aa
800 $ hg mv aaa aa
801 $ hg ci --amend -m 'merge bar again (undo rename)'
801 $ hg ci --amend -m 'merge bar again (undo rename)'
802 $ hg log --config diff.git=1 -pr .
802 $ hg log --config diff.git=1 -pr .
803 changeset: 25:18e3ba160489
803 changeset: 25:282080768800
804 tag: tip
804 tag: tip
805 parent: 22:12594a98ca3f
805 parent: 22:06423be42d60
806 parent: 23:4c94d5bc65f5
806 parent: 23:4c94d5bc65f5
807 user: test
807 user: test
808 date: Thu Jan 01 00:00:00 1970 +0000
808 date: Thu Jan 01 00:00:00 1970 +0000
@@ -843,9 +843,9 b' Amend a merge changeset (with manifest-l'
843 What do you want to do? c
843 What do you want to do? c
844 $ hg ci -m 'merge bar (with conflicts)'
844 $ hg ci -m 'merge bar (with conflicts)'
845 $ hg log --config diff.git=1 -pr .
845 $ hg log --config diff.git=1 -pr .
846 changeset: 28:b4c3035e2544
846 changeset: 28:ed15db12298d
847 tag: tip
847 tag: tip
848 parent: 27:4b216ca5ba97
848 parent: 27:eb5adec0b43b
849 parent: 26:67db8847a540
849 parent: 26:67db8847a540
850 user: test
850 user: test
851 date: Thu Jan 01 00:00:00 1970 +0000
851 date: Thu Jan 01 00:00:00 1970 +0000
@@ -855,9 +855,9 b' Amend a merge changeset (with manifest-l'
855 $ hg rm aa
855 $ hg rm aa
856 $ hg ci --amend -m 'merge bar (with conflicts, amended)'
856 $ hg ci --amend -m 'merge bar (with conflicts, amended)'
857 $ hg log --config diff.git=1 -pr .
857 $ hg log --config diff.git=1 -pr .
858 changeset: 29:1205ed810051
858 changeset: 29:0eeafd043f63
859 tag: tip
859 tag: tip
860 parent: 27:4b216ca5ba97
860 parent: 27:eb5adec0b43b
861 parent: 26:67db8847a540
861 parent: 26:67db8847a540
862 user: test
862 user: test
863 date: Thu Jan 01 00:00:00 1970 +0000
863 date: Thu Jan 01 00:00:00 1970 +0000
@@ -974,7 +974,7 b' Test that "diff()" in committemplate wor'
974 HG: M:
974 HG: M:
975 HG: A: foo
975 HG: A: foo
976 HG: R:
976 HG: R:
977 HG: diff -r 1205ed810051 foo
977 HG: diff -r 0eeafd043f63 foo
978 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
978 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
979 HG: +++ b/foo Thu Jan 01 00:00:00 1970 +0000
979 HG: +++ b/foo Thu Jan 01 00:00:00 1970 +0000
980 HG: @@ -0,0 +1,1 @@
980 HG: @@ -0,0 +1,1 @@
@@ -988,12 +988,12 b' Test that "diff()" in committemplate wor'
988 HG: M:
988 HG: M:
989 HG: A: foo y
989 HG: A: foo y
990 HG: R:
990 HG: R:
991 HG: diff -r 1205ed810051 foo
991 HG: diff -r 0eeafd043f63 foo
992 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
992 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
993 HG: +++ b/foo Thu Jan 01 00:00:00 1970 +0000
993 HG: +++ b/foo Thu Jan 01 00:00:00 1970 +0000
994 HG: @@ -0,0 +1,1 @@
994 HG: @@ -0,0 +1,1 @@
995 HG: +foo
995 HG: +foo
996 HG: diff -r 1205ed810051 y
996 HG: diff -r 0eeafd043f63 y
997 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
997 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
998 HG: +++ b/y Thu Jan 01 00:00:00 1970 +0000
998 HG: +++ b/y Thu Jan 01 00:00:00 1970 +0000
999 HG: @@ -0,0 +1,1 @@
999 HG: @@ -0,0 +1,1 @@
@@ -1006,18 +1006,18 b' Test that "diff()" in committemplate wor'
1006 HG: M:
1006 HG: M:
1007 HG: A: foo y
1007 HG: A: foo y
1008 HG: R: a
1008 HG: R: a
1009 HG: diff -r 1205ed810051 a
1009 HG: diff -r 0eeafd043f63 a
1010 HG: --- a/a Thu Jan 01 00:00:00 1970 +0000
1010 HG: --- a/a Thu Jan 01 00:00:00 1970 +0000
1011 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1011 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1012 HG: @@ -1,2 +0,0 @@
1012 HG: @@ -1,2 +0,0 @@
1013 HG: -a
1013 HG: -a
1014 HG: -a
1014 HG: -a
1015 HG: diff -r 1205ed810051 foo
1015 HG: diff -r 0eeafd043f63 foo
1016 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1016 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1017 HG: +++ b/foo Thu Jan 01 00:00:00 1970 +0000
1017 HG: +++ b/foo Thu Jan 01 00:00:00 1970 +0000
1018 HG: @@ -0,0 +1,1 @@
1018 HG: @@ -0,0 +1,1 @@
1019 HG: +foo
1019 HG: +foo
1020 HG: diff -r 1205ed810051 y
1020 HG: diff -r 0eeafd043f63 y
1021 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1021 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1022 HG: +++ b/y Thu Jan 01 00:00:00 1970 +0000
1022 HG: +++ b/y Thu Jan 01 00:00:00 1970 +0000
1023 HG: @@ -0,0 +1,1 @@
1023 HG: @@ -0,0 +1,1 @@
@@ -1030,23 +1030,23 b' Test that "diff()" in committemplate wor'
1030 HG: M:
1030 HG: M:
1031 HG: A: foo y
1031 HG: A: foo y
1032 HG: R: a x
1032 HG: R: a x
1033 HG: diff -r 1205ed810051 a
1033 HG: diff -r 0eeafd043f63 a
1034 HG: --- a/a Thu Jan 01 00:00:00 1970 +0000
1034 HG: --- a/a Thu Jan 01 00:00:00 1970 +0000
1035 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1035 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1036 HG: @@ -1,2 +0,0 @@
1036 HG: @@ -1,2 +0,0 @@
1037 HG: -a
1037 HG: -a
1038 HG: -a
1038 HG: -a
1039 HG: diff -r 1205ed810051 foo
1039 HG: diff -r 0eeafd043f63 foo
1040 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1040 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1041 HG: +++ b/foo Thu Jan 01 00:00:00 1970 +0000
1041 HG: +++ b/foo Thu Jan 01 00:00:00 1970 +0000
1042 HG: @@ -0,0 +1,1 @@
1042 HG: @@ -0,0 +1,1 @@
1043 HG: +foo
1043 HG: +foo
1044 HG: diff -r 1205ed810051 x
1044 HG: diff -r 0eeafd043f63 x
1045 HG: --- a/x Thu Jan 01 00:00:00 1970 +0000
1045 HG: --- a/x Thu Jan 01 00:00:00 1970 +0000
1046 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1046 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1047 HG: @@ -1,1 +0,0 @@
1047 HG: @@ -1,1 +0,0 @@
1048 HG: -x
1048 HG: -x
1049 HG: diff -r 1205ed810051 y
1049 HG: diff -r 0eeafd043f63 y
1050 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1050 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1051 HG: +++ b/y Thu Jan 01 00:00:00 1970 +0000
1051 HG: +++ b/y Thu Jan 01 00:00:00 1970 +0000
1052 HG: @@ -0,0 +1,1 @@
1052 HG: @@ -0,0 +1,1 @@
@@ -1061,23 +1061,23 b' Test that "diff()" in committemplate wor'
1061 HG: M:
1061 HG: M:
1062 HG: A: foo y
1062 HG: A: foo y
1063 HG: R: a x
1063 HG: R: a x
1064 HG: diff -r 1205ed810051 a
1064 HG: diff -r 0eeafd043f63 a
1065 HG: --- a/a Thu Jan 01 00:00:00 1970 +0000
1065 HG: --- a/a Thu Jan 01 00:00:00 1970 +0000
1066 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1066 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1067 HG: @@ -1,2 +0,0 @@
1067 HG: @@ -1,2 +0,0 @@
1068 HG: -a
1068 HG: -a
1069 HG: -a
1069 HG: -a
1070 HG: diff -r 1205ed810051 foo
1070 HG: diff -r 0eeafd043f63 foo
1071 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1071 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1072 HG: +++ b/foo Thu Jan 01 00:00:00 1970 +0000
1072 HG: +++ b/foo Thu Jan 01 00:00:00 1970 +0000
1073 HG: @@ -0,0 +1,1 @@
1073 HG: @@ -0,0 +1,1 @@
1074 HG: +foo
1074 HG: +foo
1075 HG: diff -r 1205ed810051 x
1075 HG: diff -r 0eeafd043f63 x
1076 HG: --- a/x Thu Jan 01 00:00:00 1970 +0000
1076 HG: --- a/x Thu Jan 01 00:00:00 1970 +0000
1077 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1077 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1078 HG: @@ -1,1 +0,0 @@
1078 HG: @@ -1,1 +0,0 @@
1079 HG: -x
1079 HG: -x
1080 HG: diff -r 1205ed810051 y
1080 HG: diff -r 0eeafd043f63 y
1081 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1081 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1082 HG: +++ b/y Thu Jan 01 00:00:00 1970 +0000
1082 HG: +++ b/y Thu Jan 01 00:00:00 1970 +0000
1083 HG: @@ -0,0 +1,1 @@
1083 HG: @@ -0,0 +1,1 @@
@@ -760,9 +760,8 b' test converting merges into a repo that '
760 converted/b
760 converted/b
761 x
761 x
762 $ hg -R merge-test2 log -G -T '{shortest(node)} {desc}\n{files % "- {file}\n"}\n'
762 $ hg -R merge-test2 log -G -T '{shortest(node)} {desc}\n{files % "- {file}\n"}\n'
763 o 6eaa merge a & b
763 o e2ff merge a & b
764 |\ - converted/a
764 |\ - converted/a
765 | | - toberemoved
766 | |
765 | |
767 | o 2995 add b
766 | o 2995 add b
768 | | - converted/b
767 | | - converted/b
@@ -54,7 +54,7 b' Convert from null revision'
54 $ glog full
54 $ glog full
55 o 5 "5: change a" files: a
55 o 5 "5: change a" files: a
56 |
56 |
57 o 4 "4: merge 2 and 3" files: e f
57 o 4 "4: merge 2 and 3" files: e
58 |\
58 |\
59 | o 3 "3: change a" files: a
59 | o 3 "3: change a" files: a
60 | |
60 | |
@@ -83,7 +83,7 b' Convert from zero revision'
83 $ glog full
83 $ glog full
84 o 5 "5: change a" files: a
84 o 5 "5: change a" files: a
85 |
85 |
86 o 4 "4: merge 2 and 3" files: e f
86 o 4 "4: merge 2 and 3" files: e
87 |\
87 |\
88 | o 3 "3: change a" files: a
88 | o 3 "3: change a" files: a
89 | |
89 | |
@@ -130,7 +130,7 b' Check copy preservation'
130 (It seems like a bug in log that the following doesn't show rev 1.)
130 (It seems like a bug in log that the following doesn't show rev 1.)
131
131
132 $ hg log --follow --copies e
132 $ hg log --follow --copies e
133 changeset: 2:82bbac3d2cf4
133 changeset: 2:8d3c3fe67bb7
134 user: test
134 user: test
135 date: Thu Jan 01 00:00:04 1970 +0000
135 date: Thu Jan 01 00:00:04 1970 +0000
136 summary: 4: merge 2 and 3
136 summary: 4: merge 2 and 3
@@ -202,7 +202,7 b' Merge rename from other branch'
202 $ hg ci -m 'merge rename from p2'
202 $ hg ci -m 'merge rename from p2'
203 $ hg l
203 $ hg l
204 @ 3 merge rename from p2
204 @ 3 merge rename from p2
205 |\ x
205 |\
206 | o 2 add z
206 | o 2 add z
207 | | z
207 | | z
208 o | 1 rename x to y
208 o | 1 rename x to y
@@ -417,9 +417,9 b' Try merging the other direction too'
417 created new head
417 created new head
418 $ hg l
418 $ hg l
419 @ 5 merge 3 into 1
419 @ 5 merge 3 into 1
420 |\ y z
420 |\ z
421 +---o 4 merge 1 into 3
421 +---o 4 merge 1 into 3
422 | |/ x z
422 | |/ z
423 | o 3 modify z
423 | o 3 modify z
424 | | z
424 | | z
425 | o 2 rename y to z
425 | o 2 rename y to z
@@ -2101,7 +2101,7 b' Test --patch and --stat with --follow an'
2101
2101
2102 $ hg up -q 6
2102 $ hg up -q 6
2103 $ hg log -G --git --patch --follow-first e
2103 $ hg log -G --git --patch --follow-first e
2104 \xe2\x97\x8d changeset: 6:fc281d8ff18d (esc)
2104 \xe2\x97\x8d changeset: 6:9feeac35a70a (esc)
2105 \xe2\x94\x82\xe2\x95\xb2 tag: tip (esc)
2105 \xe2\x94\x82\xe2\x95\xb2 tag: tip (esc)
2106 \xe2\x94\x82 \xe2\x95\xa7 parent: 5:99b31f1c2782 (esc)
2106 \xe2\x94\x82 \xe2\x95\xa7 parent: 5:99b31f1c2782 (esc)
2107 \xe2\x94\x82 parent: 4:17d952250a9d (esc)
2107 \xe2\x94\x82 parent: 4:17d952250a9d (esc)
@@ -2148,7 +2148,7 b' Test --follow and forward --rev'
2148 $ hg log -G --template "{rev} {desc|firstline}\n"
2148 $ hg log -G --template "{rev} {desc|firstline}\n"
2149 \xe2\x97\x8b 8 add g (esc)
2149 \xe2\x97\x8b 8 add g (esc)
2150 \xe2\x94\x82 (esc)
2150 \xe2\x94\x82 (esc)
2151 \xe2\x94\x82 \xe2\x97\x8b 7 Added tag foo-bar for changeset fc281d8ff18d (esc)
2151 \xe2\x94\x82 \xe2\x97\x8b 7 Added tag foo-bar for changeset 9feeac35a70a (esc)
2152 \xe2\x94\x82\xe2\x95\xb1 (esc)
2152 \xe2\x94\x82\xe2\x95\xb1 (esc)
2153 \xe2\x97\x8b 6 merge 5 and 4 (esc)
2153 \xe2\x97\x8b 6 merge 5 and 4 (esc)
2154 \xe2\x94\x82\xe2\x95\xb2 (esc)
2154 \xe2\x94\x82\xe2\x95\xb2 (esc)
@@ -2311,17 +2311,17 b' changessincelatesttag with no prior tag'
2311 # User test
2311 # User test
2312 # Date 0 0
2312 # Date 0 0
2313 # Thu Jan 01 00:00:00 1970 +0000
2313 # Thu Jan 01 00:00:00 1970 +0000
2314 # Node ID fc281d8ff18d999ad6497b3d27390bcd695dcc73
2314 # Node ID 9feeac35a70aa325519bbf3178683271113f2b8f
2315 # Parent 99b31f1c2782e2deb1723cef08930f70fc84b37b
2315 # Parent 99b31f1c2782e2deb1723cef08930f70fc84b37b
2316 # Parent 17d952250a9d03cc3dc77b199ab60e959b9b0260
2316 # Parent 17d952250a9d03cc3dc77b199ab60e959b9b0260
2317 merge 5 and 4
2317 merge 5 and 4
2318
2318
2319 diff -r 99b31f1c2782 -r fc281d8ff18d dir/b
2319 diff -r 99b31f1c2782 -r 9feeac35a70a dir/b
2320 --- a/dir/b Thu Jan 01 00:00:00 1970 +0000
2320 --- a/dir/b Thu Jan 01 00:00:00 1970 +0000
2321 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2321 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2322 @@ -1,1 +0,0 @@
2322 @@ -1,1 +0,0 @@
2323 -a
2323 -a
2324 diff -r 99b31f1c2782 -r fc281d8ff18d e
2324 diff -r 99b31f1c2782 -r 9feeac35a70a e
2325 --- a/e Thu Jan 01 00:00:00 1970 +0000
2325 --- a/e Thu Jan 01 00:00:00 1970 +0000
2326 +++ b/e Thu Jan 01 00:00:00 1970 +0000
2326 +++ b/e Thu Jan 01 00:00:00 1970 +0000
2327 @@ -1,1 +1,1 @@
2327 @@ -1,1 +1,1 @@
@@ -2331,24 +2331,24 b' changessincelatesttag with no prior tag'
2331 # User test
2331 # User test
2332 # Date 0 0
2332 # Date 0 0
2333 # Thu Jan 01 00:00:00 1970 +0000
2333 # Thu Jan 01 00:00:00 1970 +0000
2334 # Node ID 02dbb8e276b8ab7abfd07cab50c901647e75c2dd
2334 # Node ID 9febbb9c8b2e09670a2fb550cb1e4e01a2c7e9fd
2335 # Parent fc281d8ff18d999ad6497b3d27390bcd695dcc73
2335 # Parent 9feeac35a70aa325519bbf3178683271113f2b8f
2336 Added tag foo-bar for changeset fc281d8ff18d
2336 Added tag foo-bar for changeset 9feeac35a70a
2337
2337
2338 diff -r fc281d8ff18d -r 02dbb8e276b8 .hgtags
2338 diff -r 9feeac35a70a -r 9febbb9c8b2e .hgtags
2339 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2339 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2340 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2340 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2341 @@ -0,0 +1,1 @@
2341 @@ -0,0 +1,1 @@
2342 +fc281d8ff18d999ad6497b3d27390bcd695dcc73 foo-bar
2342 +9feeac35a70aa325519bbf3178683271113f2b8f foo-bar
2343 # HG changeset patch
2343 # HG changeset patch
2344 # User test
2344 # User test
2345 # Date 0 0
2345 # Date 0 0
2346 # Thu Jan 01 00:00:00 1970 +0000
2346 # Thu Jan 01 00:00:00 1970 +0000
2347 # Node ID 24c2e826ddebf80f9dcd60b856bdb8e6715c5449
2347 # Node ID 3bd4551ec3fe1c0696241f236abe857a53c6d6e7
2348 # Parent fc281d8ff18d999ad6497b3d27390bcd695dcc73
2348 # Parent 9feeac35a70aa325519bbf3178683271113f2b8f
2349 add g
2349 add g
2350
2350
2351 diff -r fc281d8ff18d -r 24c2e826ddeb g
2351 diff -r 9feeac35a70a -r 3bd4551ec3fe g
2352 --- a/g Thu Jan 01 00:00:00 1970 +0000
2352 --- a/g Thu Jan 01 00:00:00 1970 +0000
2353 +++ b/g Thu Jan 01 00:00:00 1970 +0000
2353 +++ b/g Thu Jan 01 00:00:00 1970 +0000
2354 @@ -1,2 +1,1 @@
2354 @@ -1,2 +1,1 @@
@@ -2436,7 +2436,7 b' Test --hidden'
2436 []
2436 []
2437 <spanset- 0:9>
2437 <spanset- 0:9>
2438 $ hg log -G --template '{rev} {desc}\n'
2438 $ hg log -G --template '{rev} {desc}\n'
2439 \xe2\x97\x8b 7 Added tag foo-bar for changeset fc281d8ff18d (esc)
2439 \xe2\x97\x8b 7 Added tag foo-bar for changeset 9feeac35a70a (esc)
2440 \xe2\x94\x82 (esc)
2440 \xe2\x94\x82 (esc)
2441 \xe2\x97\x8b 6 merge 5 and 4 (esc)
2441 \xe2\x97\x8b 6 merge 5 and 4 (esc)
2442 \xe2\x94\x82\xe2\x95\xb2 (esc)
2442 \xe2\x94\x82\xe2\x95\xb2 (esc)
@@ -2534,9 +2534,9 b' working-directory revision'
2534 node template with changesetprinter:
2534 node template with changesetprinter:
2535
2535
2536 $ hg log -Gqr 5:7 --config ui.graphnodetemplate='"{rev}"'
2536 $ hg log -Gqr 5:7 --config ui.graphnodetemplate='"{rev}"'
2537 7 7:02dbb8e276b8
2537 7 7:9febbb9c8b2e
2538 \xe2\x94\x82 (esc)
2538 \xe2\x94\x82 (esc)
2539 6 6:fc281d8ff18d
2539 6 6:9feeac35a70a
2540 \xe2\x94\x82\xe2\x95\xb2 (esc)
2540 \xe2\x94\x82\xe2\x95\xb2 (esc)
2541 \xe2\x94\x82 \xe2\x95\xa7 (esc)
2541 \xe2\x94\x82 \xe2\x95\xa7 (esc)
2542 5 5:99b31f1c2782
2542 5 5:99b31f1c2782
@@ -2560,7 +2560,7 b' label() should just work in node templat'
2560
2560
2561 $ hg log -Gqr 7 --config extensions.color= --color=debug \
2561 $ hg log -Gqr 7 --config extensions.color= --color=debug \
2562 > --config ui.graphnodetemplate='{label("branch.{branch}", rev)}'
2562 > --config ui.graphnodetemplate='{label("branch.{branch}", rev)}'
2563 [branch.default\xe2\x94\x827] [log.node|7:02dbb8e276b8] (esc)
2563 [branch.default\xe2\x94\x827] [log.node|7:9febbb9c8b2e] (esc)
2564 \xe2\x94\x82 (esc)
2564 \xe2\x94\x82 (esc)
2565 \xe2\x95\xa7 (esc)
2565 \xe2\x95\xa7 (esc)
2566
2566
@@ -1951,7 +1951,7 b' Test --patch and --stat with --follow an'
1951
1951
1952 $ hg up -q 6
1952 $ hg up -q 6
1953 $ hg log -G --git --patch --follow-first e
1953 $ hg log -G --git --patch --follow-first e
1954 @ changeset: 6:fc281d8ff18d
1954 @ changeset: 6:9feeac35a70a
1955 |\ tag: tip
1955 |\ tag: tip
1956 | ~ parent: 5:99b31f1c2782
1956 | ~ parent: 5:99b31f1c2782
1957 | parent: 4:17d952250a9d
1957 | parent: 4:17d952250a9d
@@ -1998,7 +1998,7 b' Test --follow and forward --rev'
1998 $ hg log -G --template "{rev} {desc|firstline}\n"
1998 $ hg log -G --template "{rev} {desc|firstline}\n"
1999 o 8 add g
1999 o 8 add g
2000 |
2000 |
2001 | o 7 Added tag foo-bar for changeset fc281d8ff18d
2001 | o 7 Added tag foo-bar for changeset 9feeac35a70a
2002 |/
2002 |/
2003 o 6 merge 5 and 4
2003 o 6 merge 5 and 4
2004 |\
2004 |\
@@ -2161,17 +2161,17 b' changessincelatesttag with no prior tag'
2161 # User test
2161 # User test
2162 # Date 0 0
2162 # Date 0 0
2163 # Thu Jan 01 00:00:00 1970 +0000
2163 # Thu Jan 01 00:00:00 1970 +0000
2164 # Node ID fc281d8ff18d999ad6497b3d27390bcd695dcc73
2164 # Node ID 9feeac35a70aa325519bbf3178683271113f2b8f
2165 # Parent 99b31f1c2782e2deb1723cef08930f70fc84b37b
2165 # Parent 99b31f1c2782e2deb1723cef08930f70fc84b37b
2166 # Parent 17d952250a9d03cc3dc77b199ab60e959b9b0260
2166 # Parent 17d952250a9d03cc3dc77b199ab60e959b9b0260
2167 merge 5 and 4
2167 merge 5 and 4
2168
2168
2169 diff -r 99b31f1c2782 -r fc281d8ff18d dir/b
2169 diff -r 99b31f1c2782 -r 9feeac35a70a dir/b
2170 --- a/dir/b Thu Jan 01 00:00:00 1970 +0000
2170 --- a/dir/b Thu Jan 01 00:00:00 1970 +0000
2171 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2171 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2172 @@ -1,1 +0,0 @@
2172 @@ -1,1 +0,0 @@
2173 -a
2173 -a
2174 diff -r 99b31f1c2782 -r fc281d8ff18d e
2174 diff -r 99b31f1c2782 -r 9feeac35a70a e
2175 --- a/e Thu Jan 01 00:00:00 1970 +0000
2175 --- a/e Thu Jan 01 00:00:00 1970 +0000
2176 +++ b/e Thu Jan 01 00:00:00 1970 +0000
2176 +++ b/e Thu Jan 01 00:00:00 1970 +0000
2177 @@ -1,1 +1,1 @@
2177 @@ -1,1 +1,1 @@
@@ -2181,24 +2181,24 b' changessincelatesttag with no prior tag'
2181 # User test
2181 # User test
2182 # Date 0 0
2182 # Date 0 0
2183 # Thu Jan 01 00:00:00 1970 +0000
2183 # Thu Jan 01 00:00:00 1970 +0000
2184 # Node ID 02dbb8e276b8ab7abfd07cab50c901647e75c2dd
2184 # Node ID 9febbb9c8b2e09670a2fb550cb1e4e01a2c7e9fd
2185 # Parent fc281d8ff18d999ad6497b3d27390bcd695dcc73
2185 # Parent 9feeac35a70aa325519bbf3178683271113f2b8f
2186 Added tag foo-bar for changeset fc281d8ff18d
2186 Added tag foo-bar for changeset 9feeac35a70a
2187
2187
2188 diff -r fc281d8ff18d -r 02dbb8e276b8 .hgtags
2188 diff -r 9feeac35a70a -r 9febbb9c8b2e .hgtags
2189 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2189 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2190 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2190 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2191 @@ -0,0 +1,1 @@
2191 @@ -0,0 +1,1 @@
2192 +fc281d8ff18d999ad6497b3d27390bcd695dcc73 foo-bar
2192 +9feeac35a70aa325519bbf3178683271113f2b8f foo-bar
2193 # HG changeset patch
2193 # HG changeset patch
2194 # User test
2194 # User test
2195 # Date 0 0
2195 # Date 0 0
2196 # Thu Jan 01 00:00:00 1970 +0000
2196 # Thu Jan 01 00:00:00 1970 +0000
2197 # Node ID 24c2e826ddebf80f9dcd60b856bdb8e6715c5449
2197 # Node ID 3bd4551ec3fe1c0696241f236abe857a53c6d6e7
2198 # Parent fc281d8ff18d999ad6497b3d27390bcd695dcc73
2198 # Parent 9feeac35a70aa325519bbf3178683271113f2b8f
2199 add g
2199 add g
2200
2200
2201 diff -r fc281d8ff18d -r 24c2e826ddeb g
2201 diff -r 9feeac35a70a -r 3bd4551ec3fe g
2202 --- a/g Thu Jan 01 00:00:00 1970 +0000
2202 --- a/g Thu Jan 01 00:00:00 1970 +0000
2203 +++ b/g Thu Jan 01 00:00:00 1970 +0000
2203 +++ b/g Thu Jan 01 00:00:00 1970 +0000
2204 @@ -1,2 +1,1 @@
2204 @@ -1,2 +1,1 @@
@@ -2286,7 +2286,7 b' Test --hidden'
2286 []
2286 []
2287 <spanset- 0:9>
2287 <spanset- 0:9>
2288 $ hg log -G --template '{rev} {desc}\n'
2288 $ hg log -G --template '{rev} {desc}\n'
2289 o 7 Added tag foo-bar for changeset fc281d8ff18d
2289 o 7 Added tag foo-bar for changeset 9feeac35a70a
2290 |
2290 |
2291 o 6 merge 5 and 4
2291 o 6 merge 5 and 4
2292 |\
2292 |\
@@ -2384,9 +2384,9 b' working-directory revision'
2384 node template with changesetprinter:
2384 node template with changesetprinter:
2385
2385
2386 $ hg log -Gqr 5:7 --config ui.graphnodetemplate='"{rev}"'
2386 $ hg log -Gqr 5:7 --config ui.graphnodetemplate='"{rev}"'
2387 7 7:02dbb8e276b8
2387 7 7:9febbb9c8b2e
2388 |
2388 |
2389 6 6:fc281d8ff18d
2389 6 6:9feeac35a70a
2390 |\
2390 |\
2391 | ~
2391 | ~
2392 5 5:99b31f1c2782
2392 5 5:99b31f1c2782
@@ -2410,7 +2410,7 b' label() should just work in node templat'
2410
2410
2411 $ hg log -Gqr 7 --config extensions.color= --color=debug \
2411 $ hg log -Gqr 7 --config extensions.color= --color=debug \
2412 > --config ui.graphnodetemplate='{label("branch.{branch}", rev)}'
2412 > --config ui.graphnodetemplate='{label("branch.{branch}", rev)}'
2413 [branch.default|7] [log.node|7:02dbb8e276b8]
2413 [branch.default|7] [log.node|7:9febbb9c8b2e]
2414 |
2414 |
2415 ~
2415 ~
2416
2416
@@ -60,13 +60,13 b' https://bz.mercurial-scm.org/672'
60 checking for directory renames
60 checking for directory renames
61 resolving manifests
61 resolving manifests
62 branchmerge: True, force: False, partial: False
62 branchmerge: True, force: False, partial: False
63 ancestor: c64f439569a9, local: e327dca35ac8+, remote: 746e9549ea96
63 ancestor: c64f439569a9, local: f4a9cff3cd0b+, remote: 746e9549ea96
64 preserving 1a for resolve of 1a
64 preserving 1a for resolve of 1a
65 starting 4 threads for background file closing (?)
65 starting 4 threads for background file closing (?)
66 1a: local copied/moved from 1 -> m (premerge)
66 1a: local copied/moved from 1 -> m (premerge)
67 picked tool ':merge' for 1a (binary False symlink False changedelete False)
67 picked tool ':merge' for 1a (binary False symlink False changedelete False)
68 merging 1a and 1 to 1a
68 merging 1a and 1 to 1a
69 my 1a@e327dca35ac8+ other 1@746e9549ea96 ancestor 1@c64f439569a9
69 my 1a@f4a9cff3cd0b+ other 1@746e9549ea96 ancestor 1@c64f439569a9
70 premerge successful
70 premerge successful
71 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
71 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
72 (branch merge, don't forget to commit)
72 (branch merge, don't forget to commit)
@@ -82,14 +82,14 b' https://bz.mercurial-scm.org/672'
82 checking for directory renames
82 checking for directory renames
83 resolving manifests
83 resolving manifests
84 branchmerge: True, force: False, partial: False
84 branchmerge: True, force: False, partial: False
85 ancestor: c64f439569a9, local: 746e9549ea96+, remote: e327dca35ac8
85 ancestor: c64f439569a9, local: 746e9549ea96+, remote: f4a9cff3cd0b
86 preserving 1 for resolve of 1a
86 preserving 1 for resolve of 1a
87 removing 1
87 removing 1
88 starting 4 threads for background file closing (?)
88 starting 4 threads for background file closing (?)
89 1a: remote moved from 1 -> m (premerge)
89 1a: remote moved from 1 -> m (premerge)
90 picked tool ':merge' for 1a (binary False symlink False changedelete False)
90 picked tool ':merge' for 1a (binary False symlink False changedelete False)
91 merging 1 and 1a to 1a
91 merging 1 and 1a to 1a
92 my 1a@746e9549ea96+ other 1a@e327dca35ac8 ancestor 1@c64f439569a9
92 my 1a@746e9549ea96+ other 1a@f4a9cff3cd0b ancestor 1@c64f439569a9
93 premerge successful
93 premerge successful
94 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
94 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
95 (branch merge, don't forget to commit)
95 (branch merge, don't forget to commit)
@@ -160,7 +160,7 b' lfconvert with rename, merge, and remove'
160 initializing destination largefiles-repo
160 initializing destination largefiles-repo
161 $ cd largefiles-repo
161 $ cd largefiles-repo
162 $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
162 $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
163 o 5:8e05f5f2b77e merge
163 o 5:9cc5aa7204f0 merge
164 |\
164 |\
165 | o 4:a5a02de7a8e4 remove large, normal3
165 | o 4:a5a02de7a8e4 remove large, normal3
166 | |
166 | |
@@ -251,7 +251,7 b' convert extension is disabled to show co'
251 3 remove large, normal3
251 3 remove large, normal3
252 2 merge
252 2 merge
253 1 add anotherlarge (should be a largefile)
253 1 add anotherlarge (should be a largefile)
254 0 Added tag mytag for changeset abacddda7028
254 0 Added tag mytag for changeset 17126745edfd
255 $ cd ../normal-repo
255 $ cd ../normal-repo
256 $ cat >> .hg/hgrc <<EOF
256 $ cat >> .hg/hgrc <<EOF
257 > [extensions]
257 > [extensions]
@@ -304,7 +304,7 b' from the working dir on a convert.'
304 3 remove large, normal3
304 3 remove large, normal3
305 2 merge
305 2 merge
306 1 add anotherlarge (should be a largefile)
306 1 add anotherlarge (should be a largefile)
307 0 Added tag mytag for changeset abacddda7028
307 0 Added tag mytag for changeset 17126745edfd
308
308
309 $ hg -R largefiles-repo-hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
309 $ hg -R largefiles-repo-hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
310 o 7:2f08f66459b7 Added tag mytag for changeset 17126745edfd
310 o 7:2f08f66459b7 Added tag mytag for changeset 17126745edfd
@@ -374,7 +374,7 b' Ensure the largefile can be cached in th'
374 4 remove large, normal3
374 4 remove large, normal3
375 3 merge
375 3 merge
376 2 add anotherlarge (should be a largefile)
376 2 add anotherlarge (should be a largefile)
377 1 Added tag mytag for changeset abacddda7028
377 1 Added tag mytag for changeset 17126745edfd
378 0 change branch name only
378 0 change branch name only
379
379
380 Ensure empty commits aren't lost in the conversion
380 Ensure empty commits aren't lost in the conversion
@@ -118,7 +118,7 b' All the merges of various file contents.'
118 12-- C: agree on "a"
118 12-- C: agree on "a"
119 1-11 : hg said "", expected "a"
119 1-11 : hg said "", expected "a"
120 1-12 : agree on "a"
120 1-12 : agree on "a"
121 1-1- : hg said "a", expected ""
121 1-1- : agree on ""
122 1-21 C: agree on "a"
122 1-21 C: agree on "a"
123 1-22 C: hg said "", expected "a"
123 1-22 C: hg said "", expected "a"
124 1-23 C: agree on "a"
124 1-23 C: agree on "a"
@@ -215,6 +215,6 b' containing $files.'
215 $ hg merge -qr 3; echo f > u1; echo f > u2; rm -f c1 c2
215 $ hg merge -qr 3; echo f > u1; echo f > u2; rm -f c1 c2
216 $ hg commit -qAm '5 merge with two gcas'
216 $ hg commit -qAm '5 merge with two gcas'
217 $ hg log -r . -T '{files}\n' # expecting u1 u2
217 $ hg log -r . -T '{files}\n' # expecting u1 u2
218 c1
218
219 $ cd ../
219 $ cd ../
220 $ rm -rf repo
220 $ rm -rf repo
@@ -744,7 +744,7 b' Test rebasing a commit with copy informa'
744 $ hg tglog
744 $ hg tglog
745 @ 6: 676538af172d 'untracked rename of d to e'
745 @ 6: 676538af172d 'untracked rename of d to e'
746 |
746 |
747 | * 5: 71cb43376053 'merge'
747 | * 5: 574d92ad16fc 'merge'
748 | |\
748 | |\
749 | | x 4: 2c8b5dad7956 'rename d to e'
749 | | x 4: 2c8b5dad7956 'rename d to e'
750 | | |
750 | | |
@@ -758,8 +758,8 b' Test rebasing a commit with copy informa'
758
758
759 $ hg rebase -b 5 -d tip
759 $ hg rebase -b 5 -d tip
760 rebasing 3:ca58782ad1e4 "b"
760 rebasing 3:ca58782ad1e4 "b"
761 rebasing 5:71cb43376053 "merge"
761 rebasing 5:574d92ad16fc "merge"
762 note: not rebasing 5:71cb43376053 "merge", its destination already has all its changes
762 note: not rebasing 5:574d92ad16fc "merge", its destination already has all its changes
763
763
764 $ cd ..
764 $ cd ..
765
765
@@ -108,7 +108,7 b' wrong.'
108 $ hg tglog
108 $ hg tglog
109 @ 7: e08089805d82 'default: f-other stuff'
109 @ 7: e08089805d82 'default: f-other stuff'
110 |
110 |
111 | o 6: 9455ee510502 'dev: merge default' dev
111 | o 6: 010ced67e558 'dev: merge default' dev
112 |/|
112 |/|
113 o | 5: 462860db70a1 'default: remove f-default'
113 o | 5: 462860db70a1 'default: remove f-default'
114 | |
114 | |
@@ -136,10 +136,10 b' Full rebase all the way back from branch'
136 file 'f-default' was deleted in local [dest] but was modified in other [source].
136 file 'f-default' was deleted in local [dest] but was modified in other [source].
137 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
137 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
138 What do you want to do? c
138 What do you want to do? c
139 rebasing 6:9455ee510502 "dev: merge default"
139 rebasing 6:010ced67e558 "dev: merge default"
140 saved backup bundle to $TESTTMP/ancestor-merge/.hg/strip-backup/1d1a643d390e-43e9e04b-rebase.hg
140 saved backup bundle to $TESTTMP/ancestor-merge/.hg/strip-backup/1d1a643d390e-4a6f6d17-rebase.hg
141 $ hg tglog
141 $ hg tglog
142 o 6: fbc098e72227 'dev: merge default'
142 o 6: de147e4f69cf 'dev: merge default'
143 |
143 |
144 o 5: eda7b7f46f5d 'dev: merge default'
144 o 5: eda7b7f46f5d 'dev: merge default'
145 |
145 |
@@ -166,10 +166,10 b' Grafty cherry picking rebasing:'
166 file 'f-default' was deleted in local [dest] but was modified in other [source].
166 file 'f-default' was deleted in local [dest] but was modified in other [source].
167 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
167 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
168 What do you want to do? c
168 What do you want to do? c
169 rebasing 6:9455ee510502 "dev: merge default"
169 rebasing 6:010ced67e558 "dev: merge default"
170 saved backup bundle to $TESTTMP/ancestor-merge-2/.hg/strip-backup/ec2c14fb2984-62d0b222-rebase.hg
170 saved backup bundle to $TESTTMP/ancestor-merge-2/.hg/strip-backup/ec2c14fb2984-827d7a44-rebase.hg
171 $ hg tglog
171 $ hg tglog
172 o 7: fbc098e72227 'dev: merge default'
172 o 7: de147e4f69cf 'dev: merge default'
173 |
173 |
174 o 6: eda7b7f46f5d 'dev: merge default'
174 o 6: eda7b7f46f5d 'dev: merge default'
175 |
175 |
@@ -1721,11 +1721,9 b' min: empty on unordered set'
1721 4
1721 4
1722 $ log 'modifies("*")'
1722 $ log 'modifies("*")'
1723 4
1723 4
1724 6
1725 $ log 'modifies("set:modified()")'
1724 $ log 'modifies("set:modified()")'
1726 4
1725 4
1727 $ log 'id(5)'
1726 $ log 'id(5)'
1728 2
1729 $ log 'only(9)'
1727 $ log 'only(9)'
1730 8
1728 8
1731 9
1729 9
@@ -1834,12 +1832,12 b' Test explicit numeric revision'
1834
1832
1835 Test hexadecimal revision
1833 Test hexadecimal revision
1836 $ log 'id(2)'
1834 $ log 'id(2)'
1837 $ log 'id(5)'
1835 $ log 'id(8)'
1838 2
1836 3
1839 $ hg --config experimental.revisions.prefixhexnode=yes log --template '{rev}\n' -r 'id(x5)'
1837 $ hg --config experimental.revisions.prefixhexnode=yes log --template '{rev}\n' -r 'id(x8)'
1840 2
1838 3
1841 $ hg --config experimental.revisions.prefixhexnode=yes log --template '{rev}\n' -r 'x5'
1839 $ hg --config experimental.revisions.prefixhexnode=yes log --template '{rev}\n' -r 'x8'
1842 2
1840 3
1843 $ hg --config experimental.revisions.prefixhexnode=yes log --template '{rev}\n' -r 'id(x)'
1841 $ hg --config experimental.revisions.prefixhexnode=yes log --template '{rev}\n' -r 'id(x)'
1844 $ hg --config experimental.revisions.prefixhexnode=yes log --template '{rev}\n' -r 'x'
1842 $ hg --config experimental.revisions.prefixhexnode=yes log --template '{rev}\n' -r 'x'
1845 abort: 00changelog.i@: ambiguous identifier!
1843 abort: 00changelog.i@: ambiguous identifier!
@@ -2096,7 +2094,6 b" itself isn't returned unless it is expli"
2096 2
2094 2
2097 $ log 'removes(a)'
2095 $ log 'removes(a)'
2098 2
2096 2
2099 6
2100 $ log 'roots(all())'
2097 $ log 'roots(all())'
2101 0
2098 0
2102 $ log 'reverse(2 or 3 or 4 or 5)'
2099 $ log 'reverse(2 or 3 or 4 or 5)'
@@ -2710,7 +2707,6 b' test sorting two sorted collections in d'
2710
2707
2711 $ log 'sort(outgoing() or reverse(removes(a)), rev)'
2708 $ log 'sort(outgoing() or reverse(removes(a)), rev)'
2712 2
2709 2
2713 6
2714 8
2710 8
2715 9
2711 9
2716
2712
@@ -2719,7 +2715,6 b' test sorting two sorted collections in d'
2719 $ log 'sort(outgoing() or reverse(removes(a)), -rev)'
2715 $ log 'sort(outgoing() or reverse(removes(a)), -rev)'
2720 9
2716 9
2721 8
2717 8
2722 6
2723 2
2718 2
2724
2719
2725 test empty sort key which is noop
2720 test empty sort key which is noop
@@ -100,7 +100,6 b' test intersecting something with an adds'
100 $ log 'parents(outgoing() or removes(a))'
100 $ log 'parents(outgoing() or removes(a))'
101 1
101 1
102 4
102 4
103 5
104 8
103 8
105
104
106 test that `or` operation combines elements in the right order:
105 test that `or` operation combines elements in the right order:
@@ -805,17 +804,17 b' test usage in revpair (with "+")'
805 (real pair)
804 (real pair)
806
805
807 $ hg diff -r 'tip^^' -r 'tip'
806 $ hg diff -r 'tip^^' -r 'tip'
808 diff -r 2326846efdab -r 24286f4ae135 .hgtags
807 diff -r 2326846efdab -r d2e607fcf9e4 .hgtags
809 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
808 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
810 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
809 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
811 @@ -0,0 +1,1 @@
810 @@ -0,0 +1,1 @@
812 +e0cc66ef77e8b6f711815af4e001a6594fde3ba5 1.0
811 +d5e6808a86077d6f5c1ff626d4352d01da7d2a1f 1.0
813 $ hg diff -r 'tip^^::tip'
812 $ hg diff -r 'tip^^::tip'
814 diff -r 2326846efdab -r 24286f4ae135 .hgtags
813 diff -r 2326846efdab -r d2e607fcf9e4 .hgtags
815 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
814 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
816 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
815 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
817 @@ -0,0 +1,1 @@
816 @@ -0,0 +1,1 @@
818 +e0cc66ef77e8b6f711815af4e001a6594fde3ba5 1.0
817 +d5e6808a86077d6f5c1ff626d4352d01da7d2a1f 1.0
819
818
820 (single rev)
819 (single rev)
821
820
@@ -829,13 +828,13 b' test usage in revpair (with "+")'
829 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
828 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
830 +++ b/.hgtags * (glob)
829 +++ b/.hgtags * (glob)
831 @@ -0,0 +1,1 @@
830 @@ -0,0 +1,1 @@
832 +e0cc66ef77e8b6f711815af4e001a6594fde3ba5 1.0
831 +d5e6808a86077d6f5c1ff626d4352d01da7d2a1f 1.0
833 $ hg diff -r 'tip^ or tip^'
832 $ hg diff -r 'tip^ or tip^'
834 diff -r d5d0dcbdc4d9 .hgtags
833 diff -r d5d0dcbdc4d9 .hgtags
835 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
834 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
836 +++ b/.hgtags * (glob)
835 +++ b/.hgtags * (glob)
837 @@ -0,0 +1,1 @@
836 @@ -0,0 +1,1 @@
838 +e0cc66ef77e8b6f711815af4e001a6594fde3ba5 1.0
837 +d5e6808a86077d6f5c1ff626d4352d01da7d2a1f 1.0
839
838
840 (no rev)
839 (no rev)
841
840
@@ -1231,59 +1230,59 b' test unknown reference:'
1231
1230
1232 issue4553: check that revset aliases override existing hash prefix
1231 issue4553: check that revset aliases override existing hash prefix
1233
1232
1234 $ hg log -qr e
1233 $ hg log -qr d5e
1235 6:e0cc66ef77e8
1234 6:d5e6808a8607
1236
1235
1237 $ hg log -qr e --config revsetalias.e="all()"
1236 $ hg log -qr d5e --config revsetalias.d5e="all()"
1238 0:2785f51eece5
1237 0:2785f51eece5
1239 1:d75937da8da0
1238 1:d75937da8da0
1240 2:5ed5505e9f1c
1239 2:5ed5505e9f1c
1241 3:8528aa5637f2
1240 3:8528aa5637f2
1242 4:2326846efdab
1241 4:2326846efdab
1243 5:904fa392b941
1242 5:904fa392b941
1244 6:e0cc66ef77e8
1243 6:d5e6808a8607
1245 7:013af1973af4
1244 7:586353d483b3
1246 8:d5d0dcbdc4d9
1245 8:d5d0dcbdc4d9
1247 9:24286f4ae135
1246 9:d2e607fcf9e4
1248
1247
1249 $ hg log -qr e: --config revsetalias.e="0"
1248 $ hg log -qr d5e: --config revsetalias.d5e="0"
1250 0:2785f51eece5
1249 0:2785f51eece5
1251 1:d75937da8da0
1250 1:d75937da8da0
1252 2:5ed5505e9f1c
1251 2:5ed5505e9f1c
1253 3:8528aa5637f2
1252 3:8528aa5637f2
1254 4:2326846efdab
1253 4:2326846efdab
1255 5:904fa392b941
1254 5:904fa392b941
1256 6:e0cc66ef77e8
1255 6:d5e6808a8607
1257 7:013af1973af4
1256 7:586353d483b3
1258 8:d5d0dcbdc4d9
1257 8:d5d0dcbdc4d9
1259 9:24286f4ae135
1258 9:d2e607fcf9e4
1260
1259
1261 $ hg log -qr :e --config revsetalias.e="9"
1260 $ hg log -qr :d5e --config revsetalias.d5e="9"
1262 0:2785f51eece5
1261 0:2785f51eece5
1263 1:d75937da8da0
1262 1:d75937da8da0
1264 2:5ed5505e9f1c
1263 2:5ed5505e9f1c
1265 3:8528aa5637f2
1264 3:8528aa5637f2
1266 4:2326846efdab
1265 4:2326846efdab
1267 5:904fa392b941
1266 5:904fa392b941
1268 6:e0cc66ef77e8
1267 6:d5e6808a8607
1269 7:013af1973af4
1268 7:586353d483b3
1270 8:d5d0dcbdc4d9
1269 8:d5d0dcbdc4d9
1271 9:24286f4ae135
1270 9:d2e607fcf9e4
1272
1271
1273 $ hg log -qr e:
1272 $ hg log -qr d5e:
1274 6:e0cc66ef77e8
1273 6:d5e6808a8607
1275 7:013af1973af4
1274 7:586353d483b3
1276 8:d5d0dcbdc4d9
1275 8:d5d0dcbdc4d9
1277 9:24286f4ae135
1276 9:d2e607fcf9e4
1278
1277
1279 $ hg log -qr :e
1278 $ hg log -qr :d5e
1280 0:2785f51eece5
1279 0:2785f51eece5
1281 1:d75937da8da0
1280 1:d75937da8da0
1282 2:5ed5505e9f1c
1281 2:5ed5505e9f1c
1283 3:8528aa5637f2
1282 3:8528aa5637f2
1284 4:2326846efdab
1283 4:2326846efdab
1285 5:904fa392b941
1284 5:904fa392b941
1286 6:e0cc66ef77e8
1285 6:d5e6808a8607
1287
1286
1288 issue2549 - correct optimizations
1287 issue2549 - correct optimizations
1289
1288
@@ -1471,7 +1470,7 b' tests for concatenation of strings/symbo'
1471 (check operator priority)
1470 (check operator priority)
1472
1471
1473 $ echo 'cat2n2($1, $2, $3, $4) = $1 ## $2 or $3 ## $4~2' >> .hg/hgrc
1472 $ echo 'cat2n2($1, $2, $3, $4) = $1 ## $2 or $3 ## $4~2' >> .hg/hgrc
1474 $ log "cat2n2(2785f5, 1eece5, 24286f, 4ae135)"
1473 $ log "cat2n2(2785f5, 1eece5, d2e607, fcf9e4)"
1475 0
1474 0
1476 4
1475 4
1477
1476
@@ -807,13 +807,13 b' Test files lists on merge commit:'
807 $ hg merge 10 -q
807 $ hg merge 10 -q
808 $ hg ci -m 'merge'
808 $ hg ci -m 'merge'
809 $ hg log -l1 -T '{files}\n'
809 $ hg log -l1 -T '{files}\n'
810 a fourth
810
811 $ hg log -l1 -T '{file_mods}\n'
811 $ hg log -l1 -T '{file_mods}\n'
812
812
813 $ hg log -l1 -T '{file_adds}\n'
813 $ hg log -l1 -T '{file_adds}\n'
814
814
815 $ hg log -l1 -T '{file_dels}\n'
815 $ hg log -l1 -T '{file_dels}\n'
816 a fourth
816
817
817
818 Test file copies dict:
818 Test file copies dict:
819
819
General Comments 0
You need to be logged in to leave comments. Login now