Mercurial > evolve
annotate tests/test-evolve-content-divergent-corner-cases.t @ 5276:c834fdb87f90
tests: add more verification of output to divergence tests
It's not obvious what the obsmarkers should look like in these tests
and adding them highlights a bug that happens when commit we create to
resolve the divergence doesn't get created because it would be
empty. I also added a few graphlog calls to check that the
divergence-resolution commit is in the right place (has right
parentage).
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 01 May 2020 07:43:15 -0700 |
parents | 1f92a6aa40d6 |
children | 13376ca93fa3 |
rev | line source |
---|---|
4481
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
1 ======================================================== |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
2 Tests the resolution of content divergence: corner cases |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
3 ======================================================== |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
4 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
5 This file intend to cover cases that are specific enough to not fit in the |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
6 other cases. |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
7 |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
8 $ cat >> $HGRCPATH <<EOF |
4481
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
9 > [alias] |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
10 > glog = log -GT "{rev}:{node|short} {desc|firstline}\n ({bookmarks}) [{branch}] {phase}" |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
11 > [defaults] |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
12 > amend=-d "0 0" |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
13 > fold=-d "0 0" |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
14 > [web] |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
15 > push_ssl = false |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
16 > allow_push = * |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
17 > [phases] |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
18 > publish = False |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
19 > [diff] |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
20 > git = 1 |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
21 > unified = 0 |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
22 > [ui] |
4625
a4fde4e3e763
templatekw: add `instabilities` alias for `troubles`
Matt Harbison <matt_harbison@yahoo.com>
parents:
4580
diff
changeset
|
23 > logtemplate = {rev}:{node|short}@{branch}({phase}) {desc|firstline} [{instabilities}]\n |
5079
1f92a6aa40d6
evolve: add pre-check logic for content-divergence in rewriteutil.precheck()
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4991
diff
changeset
|
24 > [experimental] |
1f92a6aa40d6
evolve: add pre-check logic for content-divergence in rewriteutil.precheck()
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4991
diff
changeset
|
25 > evolution.allowdivergence = True |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
26 > [extensions] |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
27 > EOF |
1806
9f42f819267b
evolve: move the extensions to 'hgext3rd'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1630
diff
changeset
|
28 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
29 $ mkcommit() { |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
30 > echo "$1" > "$1" |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
31 > hg add "$1" |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
32 > hg ci -m "add $1" |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
33 > } |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
34 |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
35 $ mkcommits() { |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
36 > for i in $@; do mkcommit $i ; done |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
37 > } |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
38 |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
39 Basic test of divergence: two divergent changesets with the same parents |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
40 With --all --any we dedupe the divergent and solve the divergence once |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
41 |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
42 $ hg init test1 |
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
43 $ cd test1 |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
44 $ echo a > a |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
45 $ hg ci -Aqm "added a" |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
46 $ echo b > b |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
47 $ hg ci -Aqm "added b" |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
48 |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
49 $ hg up .^ |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
50 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
51 $ echo bdivergent > bdivergent1 |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
52 $ hg ci -Am "divergent" |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
53 adding bdivergent1 |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
54 created new head |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
55 |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
56 $ hg up .^ |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
57 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
58 $ echo bdivergent > bdivergent2 |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
59 $ hg ci -Am "divergent" |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
60 adding bdivergent2 |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
61 created new head |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
62 |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
63 $ hg prune -s 8374d2ddc3a4 "desc('added b')" |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
64 1 changesets pruned |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
65 $ hg prune -s 593c57f2117e "desc('added b')" --hidden |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
66 1 changesets pruned |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
67 2 new content-divergent changesets |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
68 |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
69 $ hg log -G |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
70 @ 3:8374d2ddc3a4@default(draft) divergent [content-divergent] |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
71 | |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
72 | * 2:593c57f2117e@default(draft) divergent [content-divergent] |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
73 |/ |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
74 o 0:9092f1db7931@default(draft) added a [] |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
75 |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
76 |
4576
96ce1030d2fb
tests: add --update to hg evolve to reduce test changes for the next patch
Anton Shestakov <av6@dwimlabs.net>
parents:
4493
diff
changeset
|
77 $ hg evolve --all --any --content-divergent --update |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
78 merge:[2] divergent |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
79 with: [3] divergent |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
80 base: [1] added b |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
81 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3799
diff
changeset
|
82 working directory is now at 45bf1312f454 |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
83 $ hg log -G |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3799
diff
changeset
|
84 @ 4:45bf1312f454@default(draft) divergent [] |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
85 | |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
86 o 0:9092f1db7931@default(draft) added a [] |
1467
5c385b812500
evolve: dedupe divergents when running evolve --all --any or evolve --rev
Laurent Charignon <lcharignon@fb.com>
parents:
diff
changeset
|
87 |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
88 $ hg debugobsolete |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
89 5f6d8a4bf34ab274ccc9f631c2536964b8a3666d 8374d2ddc3a4d48428c3d2f80e4fc86f13736f96 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '9', 'operation': 'prune', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
90 5f6d8a4bf34ab274ccc9f631c2536964b8a3666d 593c57f2117e33dd0884382f02789d948f548557 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '9', 'operation': 'prune', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
91 593c57f2117e33dd0884382f02789d948f548557 45bf1312f45468b76158b33f8426e6530c8b35b1 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
92 8374d2ddc3a4d48428c3d2f80e4fc86f13736f96 45bf1312f45468b76158b33f8426e6530c8b35b1 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
93 $ hg obslog --all |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
94 @ 45bf1312f454 (4) divergent |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
95 |\ |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
96 x | 593c57f2117e (2) divergent |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
97 | | amended(content) as 45bf1312f454 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
98 | | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
99 | x 8374d2ddc3a4 (3) divergent |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
100 |/ amended(content) as 45bf1312f454 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
101 | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
102 x 5f6d8a4bf34a (1) added b |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
103 rewritten(description, content) as 593c57f2117e using prune by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
104 rewritten(description, content) as 8374d2ddc3a4 using prune by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
105 |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
106 |
1536
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
107 Test divergence resolution when it yields to an empty commit (issue4950) |
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
108 cdivergent2 contains the same content than cdivergent1 and they are divergent |
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
109 versions of the revision _c |
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
110 |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
111 $ hg up .^ |
1536
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
112 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
113 $ mkcommit _c |
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
114 created new head |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
115 |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
116 $ hg up .^ |
1536
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
117 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
118 $ mkcommit cdivergent1 |
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
119 created new head |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
120 |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
121 $ hg up .^ |
1536
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
122 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
123 $ echo "cdivergent1" > cdivergent1 |
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
124 $ hg add cdivergent1 |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
125 $ hg ci -m "add _c" |
1536
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
126 created new head |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
127 |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
128 $ hg log -G |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
129 @ 7:b2ae71172042@default(draft) add _c [] |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
130 | |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
131 | o 6:e3ff64ce8d4c@default(draft) add cdivergent1 [] |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
132 |/ |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
133 | o 5:48819a835615@default(draft) add _c [] |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
134 |/ |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3799
diff
changeset
|
135 | o 4:45bf1312f454@default(draft) divergent [] |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
136 |/ |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
137 o 0:9092f1db7931@default(draft) added a [] |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
138 |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
139 |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
140 $ hg prune -s b2ae71172042 48819a835615 |
1536
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
141 1 changesets pruned |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
142 $ hg prune -s e3ff64ce8d4c 48819a835615 --hidden |
1536
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
143 1 changesets pruned |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
144 2 new content-divergent changesets |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
145 |
1536
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
146 $ hg log -G |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
147 @ 7:b2ae71172042@default(draft) add _c [content-divergent] |
1536
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
148 | |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
149 | * 6:e3ff64ce8d4c@default(draft) add cdivergent1 [content-divergent] |
1536
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
150 |/ |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3799
diff
changeset
|
151 | o 4:45bf1312f454@default(draft) divergent [] |
1536
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
152 |/ |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
153 o 0:9092f1db7931@default(draft) added a [] |
1536
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
154 |
3154
406992d0d611
evolve: rename --contentdivergent flag to --content-divergent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
155 $ hg evolve --all --any --content-divergent |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
156 merge:[6] add cdivergent1 |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
157 with: [7] add _c |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
158 base: [5] add _c |
1536
9afe9e0191a1
evolve: evolve --divergent failed when merge had nothing to do (issue4950)
Laurent Charignon <lcharignon@fb.com>
parents:
1467
diff
changeset
|
159 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
160 nothing changed |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
161 working directory is now at e3ff64ce8d4c |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
162 |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
163 $ hg log -G |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
164 @ 6:e3ff64ce8d4c@default(draft) add cdivergent1 [] |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
165 | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
166 | o 4:45bf1312f454@default(draft) divergent [] |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
167 |/ |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
168 o 0:9092f1db7931@default(draft) added a [] |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
169 |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
170 $ hg debugobsolete |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
171 5f6d8a4bf34ab274ccc9f631c2536964b8a3666d 8374d2ddc3a4d48428c3d2f80e4fc86f13736f96 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '9', 'operation': 'prune', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
172 5f6d8a4bf34ab274ccc9f631c2536964b8a3666d 593c57f2117e33dd0884382f02789d948f548557 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '9', 'operation': 'prune', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
173 593c57f2117e33dd0884382f02789d948f548557 45bf1312f45468b76158b33f8426e6530c8b35b1 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
174 8374d2ddc3a4d48428c3d2f80e4fc86f13736f96 45bf1312f45468b76158b33f8426e6530c8b35b1 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
175 48819a83561596ef0aeac4082eaaa8afe4320f3a b2ae71172042972a8e8d2bc11e2b2fe4e0c3aa49 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'prune', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
176 48819a83561596ef0aeac4082eaaa8afe4320f3a e3ff64ce8d4ce33b40d9f367a8ec472fec588ca3 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '9', 'operation': 'prune', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
177 b2ae71172042972a8e8d2bc11e2b2fe4e0c3aa49 e3ff64ce8d4ce33b40d9f367a8ec472fec588ca3 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '1', 'operation': 'evolve', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
178 BROKEN: We should have created a new commit as successor instead of reusing |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
179 revision 6 |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
180 $ hg obslog --all |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
181 @ e3ff64ce8d4c (6) add cdivergent1 |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
182 |\ |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
183 | x b2ae71172042 (7) add _c |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
184 |/ reworded(description) as e3ff64ce8d4c using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
185 | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
186 x 48819a835615 (5) add _c |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
187 amended(content) as b2ae71172042 using prune by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
188 rewritten(description, content) as e3ff64ce8d4c using prune by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
189 |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
190 |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
191 $ cd .. |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
192 |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
193 Test None docstring issue of evolve divergent, which caused hg crush |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
194 |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
195 $ hg init test2 |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
196 $ cd test2 |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
197 $ mkcommits _a _b |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
198 |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
199 $ hg up .^ |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
200 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
201 $ echo bdivergent > bdivergent11 |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
202 $ hg ci -Am "bdivergent" |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
203 adding bdivergent11 |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
204 created new head |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
205 |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
206 $ hg up .^ |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
207 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
208 $ echo bdivergent > bdivergent22 |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
209 $ hg ci -Am "bdivergent" |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
210 adding bdivergent22 |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
211 created new head |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
212 |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
213 $ hg log -G |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
214 @ 3:6b096fb45070@default(draft) bdivergent [] |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
215 | |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
216 | o 2:05a6b6a9e633@default(draft) bdivergent [] |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
217 |/ |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
218 | o 1:37445b16603b@default(draft) add _b [] |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
219 |/ |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
220 o 0:135f39f4bd78@default(draft) add _a [] |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
221 |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
222 |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
223 $ hg prune -s 6b096fb45070 37445b16603b |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
224 1 changesets pruned |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
225 $ hg prune -s 05a6b6a9e633 37445b16603b --hidden |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
226 1 changesets pruned |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
227 2 new content-divergent changesets |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
228 $ hg log -G |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
229 @ 3:6b096fb45070@default(draft) bdivergent [content-divergent] |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
230 | |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
231 | * 2:05a6b6a9e633@default(draft) bdivergent [content-divergent] |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
232 |/ |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
233 o 0:135f39f4bd78@default(draft) add _a [] |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
234 |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
235 |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
236 $ cat >$TESTTMP/test_extension.py << EOF |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
237 > from mercurial import merge |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
238 > origupdate = merge.update |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
239 > def newupdate(*args, **kwargs): |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
240 > return origupdate(*args, **kwargs) |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
241 > merge.update = newupdate |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
242 > EOF |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
243 $ cat >> $HGRCPATH << EOF |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
244 > [extensions] |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
245 > testextension=$TESTTMP/test_extension.py |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
246 > EOF |
4580
3ef96578da43
evolve: use --all by default (BC)
Anton Shestakov <av6@dwimlabs.net>
parents:
4576
diff
changeset
|
247 $ hg evolve |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
248 nothing to evolve on current working copy parent |
3154
406992d0d611
evolve: rename --contentdivergent flag to --content-divergent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
249 (do you want to use --content-divergent) |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
250 [2] |
3154
406992d0d611
evolve: rename --contentdivergent flag to --content-divergent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
251 $ hg evolve --content-divergent |
4580
3ef96578da43
evolve: use --all by default (BC)
Anton Shestakov <av6@dwimlabs.net>
parents:
4576
diff
changeset
|
252 merge:[2] bdivergent |
3ef96578da43
evolve: use --all by default (BC)
Anton Shestakov <av6@dwimlabs.net>
parents:
4576
diff
changeset
|
253 with: [3] bdivergent |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
254 base: [1] add _b |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
255 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3799
diff
changeset
|
256 working directory is now at 73ff357d3975 |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
257 |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
258 $ hg log -G |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
259 @ 4:73ff357d3975@default(draft) bdivergent [] |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
260 | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
261 o 0:135f39f4bd78@default(draft) add _a [] |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
262 |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
263 $ hg debugobsolete |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
264 37445b16603b50165d5eb80735fb986c72a2dac1 6b096fb450709a194b21fb9b192fe9b1572c4af0 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '9', 'operation': 'prune', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
265 37445b16603b50165d5eb80735fb986c72a2dac1 05a6b6a9e633802d2bdd06e6d292982a767d930e 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '9', 'operation': 'prune', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
266 05a6b6a9e633802d2bdd06e6d292982a767d930e 73ff357d3975b9f319b59fd5853abc3c8294ae89 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
267 6b096fb450709a194b21fb9b192fe9b1572c4af0 73ff357d3975b9f319b59fd5853abc3c8294ae89 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
268 $ hg obslog --all |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
269 @ 73ff357d3975 (4) bdivergent |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
270 |\ |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
271 x | 05a6b6a9e633 (2) bdivergent |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
272 | | amended(content) as 73ff357d3975 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
273 | | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
274 | x 6b096fb45070 (3) bdivergent |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
275 |/ amended(content) as 73ff357d3975 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
276 | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
277 x 37445b16603b (1) add _b |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
278 rewritten(description, content) as 05a6b6a9e633 using prune by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
279 rewritten(description, content) as 6b096fb45070 using prune by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
280 |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
281 |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
282 $ cd .. |
4481
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
283 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
284 Test to make sure that evolve don't fall into unrecoverable state (issue6053) |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
285 ------------------------------------------------------------------------------ |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
286 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
287 It happened when two divergent csets has different parent (need relocation) |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
288 and resolution parent is obsolete. So this issue triggered when during |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
289 relocation we hit conflicts. So lets make the repo as described. |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
290 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
291 $ hg init localside |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
292 $ cd localside |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
293 $ for ch in a b c d e; do |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
294 > echo $ch > $ch; |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
295 > hg add $ch; |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
296 > hg ci -m "added "$ch; |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
297 > done; |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
298 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
299 $ hg glog |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
300 @ 4:8d71eadcc9df added e |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
301 | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
302 o 3:9150fe93bec6 added d |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
303 | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
304 o 2:155349b645be added c |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
305 | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
306 o 1:5f6d8a4bf34a added b |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
307 | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
308 o 0:9092f1db7931 added a |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
309 () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
310 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
311 $ echo ee > e |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
312 $ hg amend -m "updated e" |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
313 $ hg up 1 -q |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
314 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
315 To make sure we hit conflict while relocating |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
316 $ echo dd > d |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
317 $ echo ee > e |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
318 $ hg add d e |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
319 $ hg ci -m "updated e" |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
320 created new head |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
321 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
322 Lets create divergence |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
323 $ hg prune 4 -s . --hidden |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
324 1 changesets pruned |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
325 2 new content-divergent changesets |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
326 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
327 Making obsolete resolution parent |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
328 $ hg prune 3 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
329 1 changesets pruned |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
330 1 new orphan changesets |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
331 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
332 $ hg glog |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
333 @ 6:de4ea3103326 updated e |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
334 | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
335 | * 5:ff6f7cd76a7c updated e |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
336 | | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
337 | x 3:9150fe93bec6 added d |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
338 | | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
339 | o 2:155349b645be added c |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
340 |/ () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
341 o 1:5f6d8a4bf34a added b |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
342 | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
343 o 0:9092f1db7931 added a |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
344 () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
345 |
4991
2928f35023a1
evolve: make sure divergence resolution doesn't undo changes (issue6203)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
346 $ hg evolve --content-divergent --any --update --config ui.interactive=true <<EOF |
2928f35023a1
evolve: make sure divergence resolution doesn't undo changes (issue6203)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
347 > c |
2928f35023a1
evolve: make sure divergence resolution doesn't undo changes (issue6203)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
348 > EOF |
4481
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
349 merge:[5] updated e |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
350 with: [6] updated e |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
351 base: [4] added e |
4991
2928f35023a1
evolve: make sure divergence resolution doesn't undo changes (issue6203)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
352 rebasing "divergent" content-divergent changeset ff6f7cd76a7c on 155349b645be |
2928f35023a1
evolve: make sure divergence resolution doesn't undo changes (issue6203)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
353 rebasing "other" content-divergent changeset de4ea3103326 on 155349b645be |
2928f35023a1
evolve: make sure divergence resolution doesn't undo changes (issue6203)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
354 file 'd' was deleted in local but was modified in other. |
2928f35023a1
evolve: make sure divergence resolution doesn't undo changes (issue6203)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
355 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
2928f35023a1
evolve: make sure divergence resolution doesn't undo changes (issue6203)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
356 What do you want to do? c |
2928f35023a1
evolve: make sure divergence resolution doesn't undo changes (issue6203)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
357 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
2928f35023a1
evolve: make sure divergence resolution doesn't undo changes (issue6203)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
358 working directory is now at eb6357cd41b6 |
4481
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
359 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
360 $ hg glog -l1 |
4991
2928f35023a1
evolve: make sure divergence resolution doesn't undo changes (issue6203)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
361 @ 9:eb6357cd41b6 updated e |
4481
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
362 | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
363 ~ |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
364 |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
365 $ hg debugobsolete |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
366 8d71eadcc9dfb21a924e75a5796c2f011bdc55a4 ff6f7cd76a7c97d938e8fe87f0fc816b66929435 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '9', 'operation': 'amend', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
367 8d71eadcc9dfb21a924e75a5796c2f011bdc55a4 de4ea3103326293994c634101e780724346ee89f 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '13', 'operation': 'prune', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
368 9150fe93bec603cd88d05cda9f6ff13420cb53e9 0 {155349b645beebee15325a9a22dd0c9ef8fbbbd3} (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '0', 'operation': 'prune', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
369 ff6f7cd76a7c97d938e8fe87f0fc816b66929435 0ceb21ca2557a61433f097e4d64024e37cae2c10 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '4', 'operation': 'evolve', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
370 de4ea3103326293994c634101e780724346ee89f a2465d1d56d1aee8ed90d2292978456d2be6f7b9 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '4', 'operation': 'evolve', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
371 0ceb21ca2557a61433f097e4d64024e37cae2c10 eb6357cd41b6a6ec2f12e81cf96eaeeb54b057d2 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
372 a2465d1d56d1aee8ed90d2292978456d2be6f7b9 eb6357cd41b6a6ec2f12e81cf96eaeeb54b057d2 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '0', 'operation': 'evolve', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
373 $ hg obslog --all |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
374 @ eb6357cd41b6 (9) updated e |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
375 |\ |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
376 x | 0ceb21ca2557 (7) updated e |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
377 | | amended(content) as eb6357cd41b6 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
378 | | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
379 | x a2465d1d56d1 (8) updated e |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
380 | | rewritten as eb6357cd41b6 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
381 | | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
382 | x de4ea3103326 (6) updated e |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
383 | | rebased(parent) as a2465d1d56d1 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
384 | | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
385 x | ff6f7cd76a7c (5) updated e |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
386 |/ rebased(parent) as 0ceb21ca2557 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
387 | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
388 x 8d71eadcc9df (4) added e |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
389 rewritten(description, parent, content) as de4ea3103326 using prune by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
390 rewritten(description, content) as ff6f7cd76a7c using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
391 |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
392 |
4481
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
393 $ cd .. |
4493
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
394 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
395 Check that canceling of file deletion are merge correctly |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
396 --------------------------------------------------------- |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
397 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
398 File addition/deletion tend to have special processing. So we better test them directory |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
399 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
400 $ hg init non-public |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
401 $ cd non-public |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
402 $ echo a > a |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
403 $ echo b > b |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
404 $ echo c > c |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
405 $ echo d > d |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
406 $ hg ci -Aqm initial |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
407 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
408 oops, we meant to delete just 'a', but we deleted 'b' and 'c' too |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
409 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
410 $ hg rm a b c |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
411 $ hg ci -m 'delete a' |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
412 $ hg revert -r .^ b |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
413 $ hg amend |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
414 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
415 create some content divergence |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
416 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
417 $ hg co dff6e52f5e41 --hidden |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
418 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
419 updated to hidden changeset dff6e52f5e41 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
420 (hidden revision 'dff6e52f5e41' was rewritten as: 0825dcee2670) |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
421 working directory parent is obsolete! (dff6e52f5e41) |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
422 (use 'hg evolve' to update to its successor: 0825dcee2670) |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
423 $ hg revert -r .^ c |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
424 $ hg amend |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
425 2 new content-divergent changesets |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
426 $ hg glog --hidden |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
427 @ 3:92ecd58f9b05 delete a |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
428 | () [default] draft |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
429 | * 2:0825dcee2670 delete a |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
430 |/ () [default] draft |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
431 | x 1:dff6e52f5e41 delete a |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
432 |/ () [default] draft |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
433 o 0:75d2b02c4a5c initial |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
434 () [default] draft |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
435 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
436 Resolve the divergence, only "a" should be removed |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
437 |
4576
96ce1030d2fb
tests: add --update to hg evolve to reduce test changes for the next patch
Anton Shestakov <av6@dwimlabs.net>
parents:
4493
diff
changeset
|
438 $ hg evolve --content-divergent --update |
4580
3ef96578da43
evolve: use --all by default (BC)
Anton Shestakov <av6@dwimlabs.net>
parents:
4576
diff
changeset
|
439 merge:[2] delete a |
3ef96578da43
evolve: use --all by default (BC)
Anton Shestakov <av6@dwimlabs.net>
parents:
4576
diff
changeset
|
440 with: [3] delete a |
4493
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
441 base: [1] delete a |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
442 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
443 working directory is now at 7ca6a9fafcf6 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
444 $ hg glog |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
445 @ 4:7ca6a9fafcf6 delete a |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
446 | () [default] draft |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
447 o 0:75d2b02c4a5c initial |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
448 () [default] draft |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
449 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
450 $ hg diff --change . |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
451 diff --git a/a b/a |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
452 deleted file mode 100644 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
453 --- a/a |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
454 +++ /dev/null |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
455 @@ -1,1 +0,0 @@ |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
456 -a |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
457 |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
458 $ hg debugobsolete |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
459 dff6e52f5e419381c070159c8038ac948f59283f 0825dcee2670349e749f1df45857fca34f61e350 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'amend', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
460 dff6e52f5e419381c070159c8038ac948f59283f 92ecd58f9b05d6c0a1c3833a79359eea4b0268ff 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'amend', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
461 0825dcee2670349e749f1df45857fca34f61e350 7ca6a9fafcf619820b754070ac0b447651005422 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
462 92ecd58f9b05d6c0a1c3833a79359eea4b0268ff 7ca6a9fafcf619820b754070ac0b447651005422 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
463 $ hg obslog --all |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
464 @ 7ca6a9fafcf6 (4) delete a |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
465 |\ |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
466 x | 0825dcee2670 (2) delete a |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
467 | | amended(content) as 7ca6a9fafcf6 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
468 | | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
469 | x 92ecd58f9b05 (3) delete a |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
470 |/ amended(content) as 7ca6a9fafcf6 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
471 | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
472 x dff6e52f5e41 (1) delete a |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
473 amended(content) as 0825dcee2670 using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
474 amended(content) as 92ecd58f9b05 using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
475 |