author | Pierre-Yves David <pierre-yves.david@octobus.net> |
Tue, 10 Dec 2019 19:58:51 +0100 | |
branch | stable |
changeset 4997 | e989d109ca9c |
parent 4996 | 6061995cfad0 |
child 4998 | 88b816a9d990 |
permissions | -rw-r--r-- |
4849
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
1 |
Content divergence and trying to relocate a node on top of itself (issue5958) |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
2 |
https://bz.mercurial-scm.org/show_bug.cgi?id=5958 |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
3 |
|
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
4 |
$ . $TESTDIR/testlib/common.sh |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
5 |
|
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
6 |
$ cat << EOF >> $HGRCPATH |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
7 |
> [extensions] |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
8 |
> rebase = |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
9 |
> evolve = |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
10 |
> EOF |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
11 |
|
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
12 |
$ hg init issue5958 |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
13 |
$ cd issue5958 |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
14 |
|
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
15 |
$ echo hi > r0 |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
16 |
$ hg ci -qAm 'add r0' |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
17 |
$ echo hi > foo.txt |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
18 |
$ hg ci -qAm 'add foo.txt' |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
19 |
$ hg metaedit -r . -d '0 2' |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
20 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
21 |
|
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
22 |
(Make changes in unrelated files so that we don't have any merge conflicts |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
23 |
during the rebase, but the two touched revisions aren't identical) |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
24 |
|
4995
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
25 |
date: updated on both side to the same value |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
26 |
|
4849
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
27 |
$ echo hi > bar.txt |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
28 |
$ hg add -q bar.txt |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
29 |
$ hg amend -q |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
30 |
$ hg metaedit -r 1 -d '0 1' --hidden |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
31 |
2 new content-divergent changesets |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
32 |
$ hg log -r tip |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
33 |
changeset: 4:c17bf400a278 |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
34 |
tag: tip |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
35 |
parent: 0:a24ed8ad918c |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
36 |
user: test |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
37 |
date: Wed Dec 31 23:59:59 1969 -0000 |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
38 |
instability: content-divergent |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
39 |
summary: add foo.txt |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
40 |
|
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
41 |
$ echo hi > baz.txt |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
42 |
$ hg add -q baz.txt |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
43 |
$ hg amend -q |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
44 |
$ hg rebase -qr tip -d 4 |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
45 |
$ hg log -G |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
46 |
@ changeset: 6:08bc7ba82799 |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
47 |
| tag: tip |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
48 |
| parent: 4:c17bf400a278 |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
49 |
| user: test |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
50 |
| date: Wed Dec 31 23:59:58 1969 -0000 |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
51 |
| instability: content-divergent |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
52 |
| summary: add foo.txt |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
53 |
| |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
54 |
* changeset: 4:c17bf400a278 |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
55 |
| parent: 0:a24ed8ad918c |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
56 |
| user: test |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
57 |
| date: Wed Dec 31 23:59:59 1969 -0000 |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
58 |
| instability: content-divergent |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
59 |
| summary: add foo.txt |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
60 |
| |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
61 |
o changeset: 0:a24ed8ad918c |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
62 |
user: test |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
63 |
date: Thu Jan 01 00:00:00 1970 +0000 |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
64 |
summary: add r0 |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
65 |
|
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
66 |
$ hg obslog -a -r . |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
67 |
@ 08bc7ba82799 (6) add foo.txt |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
68 |
| |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
69 |
| * c17bf400a278 (4) add foo.txt |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
70 |
| | |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
71 |
x | 1d1fc409af98 (5) add foo.txt |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
72 |
| | rewritten(parent, content) as 08bc7ba82799 using rebase by test (Thu Jan 01 00:00:00 1970 +0000) |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
73 |
| | |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
74 |
x | a25dd7af6cf6 (3) add foo.txt |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
75 |
| | rewritten(content) as 1d1fc409af98 using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
76 |
| | |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
77 |
x | 0065551bd38f (2) add foo.txt |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
78 |
|/ rewritten(content) as a25dd7af6cf6 using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
79 |
| |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
80 |
x cc71ffbc7c00 (1) add foo.txt |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
81 |
rewritten(date) as 0065551bd38f using metaedit by test (Thu Jan 01 00:00:00 1970 +0000) |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
82 |
rewritten(date) as c17bf400a278 using metaedit by test (Thu Jan 01 00:00:00 1970 +0000) |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
83 |
|
4994
8b6e2565aaf3
test: highlight data handling when solving divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4850
diff
changeset
|
84 |
$ hg evolve --list --rev . |
8b6e2565aaf3
test: highlight data handling when solving divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4850
diff
changeset
|
85 |
08bc7ba82799: add foo.txt |
8b6e2565aaf3
test: highlight data handling when solving divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4850
diff
changeset
|
86 |
content-divergent: c17bf400a278 (draft) (precursor cc71ffbc7c00) |
8b6e2565aaf3
test: highlight data handling when solving divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4850
diff
changeset
|
87 |
|
8b6e2565aaf3
test: highlight data handling when solving divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4850
diff
changeset
|
88 |
$ hg log --hidden -r cc71ffbc7c00 -T '{rev} {node|short} {date|isodate}: {join(obsfate, "; ")}\n' |
8b6e2565aaf3
test: highlight data handling when solving divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4850
diff
changeset
|
89 |
1 cc71ffbc7c00 1970-01-01 00:00 +0000: date-changed using metaedit as 4:c17bf400a278; date-changed using metaedit as 2:0065551bd38f |
8b6e2565aaf3
test: highlight data handling when solving divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4850
diff
changeset
|
90 |
$ hg log -r 'desc("add foo.txt")' -T '{rev} {node|short} {date|isodate}: {join(obsfate, "; ")}\n' |
8b6e2565aaf3
test: highlight data handling when solving divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4850
diff
changeset
|
91 |
4 c17bf400a278 1969-12-31 23:59 -0000: |
8b6e2565aaf3
test: highlight data handling when solving divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4850
diff
changeset
|
92 |
6 08bc7ba82799 1969-12-31 23:59 -0000: |
4850
6d898fa6e5c3
evolve: check that relocating makes sense in _solvedivergent() (issue5958)
Anton Shestakov <av6@dwimlabs.net>
parents:
4849
diff
changeset
|
93 |
$ hg evolve --content-divergent |
4849
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
94 |
merge:[6] add foo.txt |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
95 |
with: [4] add foo.txt |
b9b6f421688a
tests: demonstrate content divergence causing "relocate node on top of itself"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
96 |
base: [1] add foo.txt |
4850
6d898fa6e5c3
evolve: check that relocating makes sense in _solvedivergent() (issue5958)
Anton Shestakov <av6@dwimlabs.net>
parents:
4849
diff
changeset
|
97 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
6d898fa6e5c3
evolve: check that relocating makes sense in _solvedivergent() (issue5958)
Anton Shestakov <av6@dwimlabs.net>
parents:
4849
diff
changeset
|
98 |
1 new orphan changesets |
6d898fa6e5c3
evolve: check that relocating makes sense in _solvedivergent() (issue5958)
Anton Shestakov <av6@dwimlabs.net>
parents:
4849
diff
changeset
|
99 |
working directory is now at 2372e6d39855 |
4994
8b6e2565aaf3
test: highlight data handling when solving divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4850
diff
changeset
|
100 |
$ hg log -r 'desc("add foo.txt")' -T '{rev} {node|short} {date|isodate}: {join(obsfate, "; ")}\n' |
8b6e2565aaf3
test: highlight data handling when solving divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4850
diff
changeset
|
101 |
4 c17bf400a278 1969-12-31 23:59 -0000: rewritten using evolve as 7:2372e6d39855 |
8b6e2565aaf3
test: highlight data handling when solving divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4850
diff
changeset
|
102 |
7 2372e6d39855 1970-01-01 00:00 +0000: |
8b6e2565aaf3
test: highlight data handling when solving divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4850
diff
changeset
|
103 |
7 bb2424887202 1969-12-31 23:59 +0000: (false !) |
4995
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
104 |
|
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
105 |
date: updated one one side to an older value |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
106 |
|
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
107 |
$ hg evolve -r . |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
108 |
move:[7] add foo.txt |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
109 |
atop:[0] add r0 |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
110 |
working directory is now at 2b9788beff53 |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
111 |
$ hg update --hidden --rev 'predecessors(.)' |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
112 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
113 |
updated to hidden changeset 2372e6d39855 |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
114 |
(hidden revision '2372e6d39855' was rewritten as: 2b9788beff53) |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
115 |
working directory parent is obsolete! (2372e6d39855) |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
116 |
(use 'hg evolve' to update to its successor: 2b9788beff53) |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
117 |
$ hg amend --date "0 2" |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
118 |
1 new orphan changesets |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
119 |
2 new content-divergent changesets |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
120 |
$ hg rebase -r . -d 0 |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
121 |
rebasing 9:88085147662e "add foo.txt" (tip) |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
122 |
$ hg log -G |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
123 |
@ changeset: 10:873d828420d8 |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
124 |
| tag: tip |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
125 |
| parent: 0:a24ed8ad918c |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
126 |
| user: test |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
127 |
| date: Wed Dec 31 23:59:58 1969 -0000 |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
128 |
| instability: content-divergent |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
129 |
| summary: add foo.txt |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
130 |
| |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
131 |
| * changeset: 8:2b9788beff53 |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
132 |
|/ parent: 0:a24ed8ad918c |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
133 |
| user: test |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
134 |
| date: Thu Jan 01 00:00:00 1970 +0000 |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
135 |
| instability: content-divergent |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
136 |
| summary: add foo.txt |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
137 |
| |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
138 |
o changeset: 0:a24ed8ad918c |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
139 |
user: test |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
140 |
date: Thu Jan 01 00:00:00 1970 +0000 |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
141 |
summary: add r0 |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
142 |
|
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
143 |
$ hg evolve --list -r . |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
144 |
873d828420d8: add foo.txt |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
145 |
content-divergent: 2b9788beff53 (draft) (precursor 2372e6d39855) |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
146 |
|
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
147 |
$ hg log -r 2372e6d39855+873d828420d8+2b9788beff53 --hidden -T '{rev} {node|short} {date|isodate}: {join(obsfate, "; ")}\n' |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
148 |
7 2372e6d39855 1970-01-01 00:00 +0000: date-changed using amend as 9:88085147662e; rebased using evolve as 8:2b9788beff53 |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
149 |
10 873d828420d8 1969-12-31 23:59 -0000: |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
150 |
8 2b9788beff53 1970-01-01 00:00 +0000: |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
151 |
$ hg evolve --content-divergent |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
152 |
merge:[8] add foo.txt |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
153 |
with: [10] add foo.txt |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
154 |
base: [7] add foo.txt |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
155 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
156 |
working directory is now at bb2424887202 |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
157 |
$ hg log -r . --hidden -T '{rev} {node|short} {date|isodate}: {join(obsfate, "; ")}\n' |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
158 |
11 bb2424887202 1970-01-01 00:00 +0000: |
d31d39ea0fe4
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4994
diff
changeset
|
159 |
11 bb2424887202 1969-12-31 23:59 +0000: (false !) |
4996
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
160 |
|
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
161 |
date: updated one side to an newer value |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
162 |
|
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
163 |
$ hg update --hidden --rev 'predecessors(.)' |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
164 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
165 |
updated to hidden changeset 873d828420d8 |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
166 |
(hidden revision '873d828420d8' was rewritten as: bb2424887202) |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
167 |
working directory parent is obsolete! (873d828420d8) |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
168 |
(use 'hg evolve' to update to its successor: bb2424887202) |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
169 |
$ hg amend --date "120 0" |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
170 |
2 new content-divergent changesets |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
171 |
$ hg log -G |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
172 |
@ changeset: 12:902e190ef559 |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
173 |
| tag: tip |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
174 |
| parent: 0:a24ed8ad918c |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
175 |
| user: test |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
176 |
| date: Thu Jan 01 00:02:00 1970 +0000 |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
177 |
| instability: content-divergent |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
178 |
| summary: add foo.txt |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
179 |
| |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
180 |
| * changeset: 11:bb2424887202 |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
181 |
|/ parent: 0:a24ed8ad918c |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
182 |
| user: test |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
183 |
| date: Thu Jan 01 00:00:00 1970 +0000 |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
184 |
| instability: content-divergent |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
185 |
| summary: add foo.txt |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
186 |
| |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
187 |
o changeset: 0:a24ed8ad918c |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
188 |
user: test |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
189 |
date: Thu Jan 01 00:00:00 1970 +0000 |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
190 |
summary: add r0 |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
191 |
|
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
192 |
$ hg evolve --list -r . |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
193 |
902e190ef559: add foo.txt |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
194 |
content-divergent: bb2424887202 (draft) (precursor 873d828420d8) |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
195 |
|
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
196 |
$ hg up bb2424887202 |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
197 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
198 |
$ hg log -r 873d828420d8+bb2424887202+902e190ef559 --hidden -T '{rev} {node|short} {date|isodate}: {join(obsfate, "; ")}\n' |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
199 |
10 873d828420d8 1969-12-31 23:59 -0000: date-changed using evolve as 11:bb2424887202; date-changed using amend as 12:902e190ef559 |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
200 |
11 bb2424887202 1970-01-01 00:00 +0000: |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
201 |
12 902e190ef559 1970-01-01 00:02 +0000: |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
202 |
$ hg evolve --content-divergent |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
203 |
merge:[11] add foo.txt |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
204 |
with: [12] add foo.txt |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
205 |
base: [10] add foo.txt |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
206 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
207 |
nothing changed |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
208 |
$ hg log -r . --hidden -T '{rev} {node|short} {date|isodate}: {join(obsfate, "; ")}\n' |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
209 |
11 bb2424887202 1970-01-01 00:00 +0000: |
6061995cfad0
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4995
diff
changeset
|
210 |
13 bb2424887202 1970-01-01 00:02 +0000: (false !) |
4997
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
211 |
|
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
212 |
date: updated each side to a different value, newer should win |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
213 |
|
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
214 |
$ hg amend --date "235 0" |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
215 |
$ hg update --hidden --rev 'predecessors(.)' |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
216 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
217 |
updated to hidden changeset bb2424887202 |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
218 |
(hidden revision 'bb2424887202' was rewritten as: 48132e92d706) |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
219 |
working directory parent is obsolete! (bb2424887202) |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
220 |
(use 'hg evolve' to update to its successor: 48132e92d706) |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
221 |
$ hg amend --date "784 0" |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
222 |
2 new content-divergent changesets |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
223 |
$ hg log -G |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
224 |
@ changeset: 14:694c3cf6b929 |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
225 |
| tag: tip |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
226 |
| parent: 0:a24ed8ad918c |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
227 |
| user: test |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
228 |
| date: Thu Jan 01 00:13:04 1970 +0000 |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
229 |
| instability: content-divergent |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
230 |
| summary: add foo.txt |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
231 |
| |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
232 |
| * changeset: 13:48132e92d706 |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
233 |
|/ parent: 0:a24ed8ad918c |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
234 |
| user: test |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
235 |
| date: Thu Jan 01 00:03:55 1970 +0000 |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
236 |
| instability: content-divergent |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
237 |
| summary: add foo.txt |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
238 |
| |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
239 |
o changeset: 0:a24ed8ad918c |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
240 |
user: test |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
241 |
date: Thu Jan 01 00:00:00 1970 +0000 |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
242 |
summary: add r0 |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
243 |
|
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
244 |
$ hg evolve --list -r . |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
245 |
694c3cf6b929: add foo.txt |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
246 |
content-divergent: 48132e92d706 (draft) (precursor bb2424887202) |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
247 |
|
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
248 |
$ hg log -r bb2424887202+48132e92d706+694c3cf6b929 --hidden -T '{rev} {node|short} {date|isodate}: {join(obsfate, "; ")}\n' |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
249 |
11 bb2424887202 1970-01-01 00:00 +0000: date-changed using amend as 14:694c3cf6b929; date-changed using amend as 13:48132e92d706 |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
250 |
13 48132e92d706 1970-01-01 00:03 +0000: |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
251 |
14 694c3cf6b929 1970-01-01 00:13 +0000: |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
252 |
$ hg evolve --content-divergent |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
253 |
merge:[13] add foo.txt |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
254 |
with: [14] add foo.txt |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
255 |
base: [12] add foo.txt |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
256 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
257 |
working directory is now at a24ed8ad918c |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
258 |
$ hg log -r . --hidden -T '{rev} {node|short} {date|isodate}: {join(obsfate, "; ")}\n' |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
259 |
0 a24ed8ad918c 1970-01-01 00:00 +0000: |
e989d109ca9c
test: add test for content divergence involving a date update
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4996
diff
changeset
|
260 |
16 bb2424887202 1970-01-01 00:13 +0000: (false !) |