Mercurial > evolve
annotate tests/test-evolve-content-divergent-corner-cases.t @ 5501:1896d6bc574b stable
split: demonstrate that discard after more than one commit is misbehaving
The `assert` that this patch removes was introduced in 9242d0b5f74d, when we
didn't have the test that this patch adds. Without the `assert` we can actually
see the incorrect behavior. With it, the test would throw an AssertionError
just before "forgetting c", when hg split is handling the second discard
action.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 22 Aug 2020 07:18:55 +0800 |
parents | e8660b28bfee |
children | e6e92835d42d 3b7df91c2ba7 |
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 |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
82 working directory is now at 98ab969ac8fb |
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 |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
84 @ 4:98ab969ac8fb@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'} |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
91 593c57f2117e33dd0884382f02789d948f548557 98ab969ac8fbe315e6d2c24a8eb5eab5b81e4242 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
92 8374d2ddc3a4d48428c3d2f80e4fc86f13736f96 98ab969ac8fbe315e6d2c24a8eb5eab5b81e4242 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
93 $ hg obslog --all |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
94 @ 98ab969ac8fb (4) divergent |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
95 |\ amended(content) from 593c57f2117e using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
96 | | amended(content) from 8374d2ddc3a4 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
97 | | |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
98 x | 593c57f2117e (2) divergent |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
99 | | rewritten(description, content) from 5f6d8a4bf34a using prune by test (Thu Jan 01 00:00:00 1970 +0000) |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
100 | | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
101 | x 8374d2ddc3a4 (3) divergent |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
102 |/ rewritten(description, content) from 5f6d8a4bf34a using prune by test (Thu Jan 01 00:00:00 1970 +0000) |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
103 | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
104 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
|
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 |/ |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
135 | o 4:98ab969ac8fb@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 |/ |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
151 | o 4:98ab969ac8fb@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 |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
160 working directory is now at 6b3776664a25 |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
161 |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
162 $ hg log -G |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
163 @ 8:6b3776664a25@default(draft) add cdivergent1 [] |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
164 | |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
165 | o 4:98ab969ac8fb@default(draft) divergent [] |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
166 |/ |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
167 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
|
168 |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
169 $ hg debugobsolete |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
170 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
|
171 5f6d8a4bf34ab274ccc9f631c2536964b8a3666d 593c57f2117e33dd0884382f02789d948f548557 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '9', 'operation': 'prune', 'user': 'test'} |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
172 593c57f2117e33dd0884382f02789d948f548557 98ab969ac8fbe315e6d2c24a8eb5eab5b81e4242 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
173 8374d2ddc3a4d48428c3d2f80e4fc86f13736f96 98ab969ac8fbe315e6d2c24a8eb5eab5b81e4242 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
174 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
|
175 48819a83561596ef0aeac4082eaaa8afe4320f3a e3ff64ce8d4ce33b40d9f367a8ec472fec588ca3 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '9', 'operation': 'prune', 'user': 'test'} |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
176 e3ff64ce8d4ce33b40d9f367a8ec472fec588ca3 6b3776664a258aa4c7e13f90df20ae9170995217 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '0', 'operation': 'evolve', 'user': 'test'} |
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
177 b2ae71172042972a8e8d2bc11e2b2fe4e0c3aa49 6b3776664a258aa4c7e13f90df20ae9170995217 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '1', 'operation': 'evolve', 'user': 'test'} |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
178 $ hg obslog --all |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
179 @ 6b3776664a25 (8) add cdivergent1 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
180 |\ reworded(description) from b2ae71172042 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
181 | | rewritten from e3ff64ce8d4c using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
182 | | |
5293
13376ca93fa3
evolve: always create commit when resolving divergence
Martin von Zweigbergk <martinvonz@google.com>
parents:
5276
diff
changeset
|
183 x | b2ae71172042 (7) add _c |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
184 | | amended(content) from 48819a835615 using prune by test (Thu Jan 01 00:00:00 1970 +0000) |
5293
13376ca93fa3
evolve: always create commit when resolving divergence
Martin von Zweigbergk <martinvonz@google.com>
parents:
5276
diff
changeset
|
185 | | |
13376ca93fa3
evolve: always create commit when resolving divergence
Martin von Zweigbergk <martinvonz@google.com>
parents:
5276
diff
changeset
|
186 | x e3ff64ce8d4c (6) add cdivergent1 |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
187 |/ rewritten(description, content) from 48819a835615 using prune by test (Thu Jan 01 00:00:00 1970 +0000) |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
188 | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
189 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
|
190 |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
191 |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
192 $ cd .. |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
193 |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
194 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
|
195 |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
196 $ hg init test2 |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
197 $ cd test2 |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
198 $ 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
|
199 |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
200 $ hg up .^ |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
201 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
|
202 $ 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
|
203 $ 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
|
204 adding bdivergent11 |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
205 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
|
206 |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
207 $ hg up .^ |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
208 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
|
209 $ 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
|
210 $ 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
|
211 adding bdivergent22 |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
212 created new head |
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
213 |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
214 $ hg log -G |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
215 @ 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
|
216 | |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
217 | 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
|
218 |/ |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
219 | 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
|
220 |/ |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
221 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
|
222 |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
223 |
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
224 $ hg prune -s 6b096fb45070 37445b16603b |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
225 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
|
226 $ hg prune -s 05a6b6a9e633 37445b16603b --hidden |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
227 1 changesets pruned |
3013
945a0989e41b
packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3000
diff
changeset
|
228 2 new content-divergent changesets |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
229 $ 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
|
230 @ 3:6b096fb45070@default(draft) bdivergent [content-divergent] |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
231 | |
3799
037ccbf41c6d
tests: make sure we don't result in commit messages conflict
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3798
diff
changeset
|
232 | * 2:05a6b6a9e633@default(draft) bdivergent [content-divergent] |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
233 |/ |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
234 o 0:135f39f4bd78@default(draft) add _a [] |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
235 |
3798
7c05ee4a8cc7
tests: don't use mkcommit shell function in test-divergent.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3787
diff
changeset
|
236 |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
237 $ cat >$TESTTMP/test_extension.py << EOF |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
238 > from mercurial import merge |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
239 > origupdate = merge.update |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
240 > def newupdate(*args, **kwargs): |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
241 > return origupdate(*args, **kwargs) |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
242 > merge.update = newupdate |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
243 > EOF |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
244 $ cat >> $HGRCPATH << EOF |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
245 > [extensions] |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
246 > testextension=$TESTTMP/test_extension.py |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
247 > EOF |
4580
3ef96578da43
evolve: use --all by default (BC)
Anton Shestakov <av6@dwimlabs.net>
parents:
4576
diff
changeset
|
248 $ hg evolve |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
249 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
|
250 (do you want to use --content-divergent) |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
251 [2] |
3154
406992d0d611
evolve: rename --contentdivergent flag to --content-divergent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3013
diff
changeset
|
252 $ hg evolve --content-divergent |
4580
3ef96578da43
evolve: use --all by default (BC)
Anton Shestakov <av6@dwimlabs.net>
parents:
4576
diff
changeset
|
253 merge:[2] bdivergent |
3ef96578da43
evolve: use --all by default (BC)
Anton Shestakov <av6@dwimlabs.net>
parents:
4576
diff
changeset
|
254 with: [3] bdivergent |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
255 base: [1] add _b |
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
256 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
257 working directory is now at b87e0354d5cb |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
258 |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
259 $ hg log -G |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
260 @ 4:b87e0354d5cb@default(draft) bdivergent [] |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
261 | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
262 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
|
263 |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
264 $ hg debugobsolete |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
265 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
|
266 37445b16603b50165d5eb80735fb986c72a2dac1 05a6b6a9e633802d2bdd06e6d292982a767d930e 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '9', 'operation': 'prune', 'user': 'test'} |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
267 05a6b6a9e633802d2bdd06e6d292982a767d930e b87e0354d5cb081210298429d8b51de9871155a2 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
268 6b096fb450709a194b21fb9b192fe9b1572c4af0 b87e0354d5cb081210298429d8b51de9871155a2 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
269 $ hg obslog --all |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
270 @ b87e0354d5cb (4) bdivergent |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
271 |\ amended(content) from 05a6b6a9e633 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
272 | | amended(content) from 6b096fb45070 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
273 | | |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
274 x | 05a6b6a9e633 (2) bdivergent |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
275 | | rewritten(description, content) from 37445b16603b using prune by test (Thu Jan 01 00:00:00 1970 +0000) |
5276
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 6b096fb45070 (3) bdivergent |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
278 |/ rewritten(description, content) from 37445b16603b using prune by test (Thu Jan 01 00:00:00 1970 +0000) |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
279 | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
280 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
|
281 |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
282 |
1630
35c666ef724e
evolve: Fix crush when reading docstring
Juntao Li <juntaoli@fb.com>
parents:
1536
diff
changeset
|
283 $ cd .. |
4481
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
284 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
285 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
|
286 ------------------------------------------------------------------------------ |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
287 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
288 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
|
289 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
|
290 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
|
291 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
292 $ hg init localside |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
293 $ cd localside |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
294 $ 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
|
295 > echo $ch > $ch; |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
296 > hg add $ch; |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
297 > 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
|
298 > done; |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
299 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
300 $ hg glog |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
301 @ 4:8d71eadcc9df added e |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
302 | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
303 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
|
304 | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
305 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
|
306 | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
307 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
|
308 | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
309 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
|
310 () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
311 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
312 $ echo ee > e |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
313 $ 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
|
314 $ hg up 1 -q |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
315 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
316 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
|
317 $ echo dd > d |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
318 $ echo ee > e |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
319 $ hg add d e |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
320 $ 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
|
321 created new head |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
322 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
323 Lets create divergence |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
324 $ 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
|
325 1 changesets pruned |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
326 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
|
327 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
328 Making obsolete resolution parent |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
329 $ hg prune 3 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
330 1 changesets pruned |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
331 1 new orphan changesets |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
332 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
333 $ hg glog |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
334 @ 6:de4ea3103326 updated e |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
335 | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
336 | * 5:ff6f7cd76a7c updated e |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
337 | | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
338 | 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
|
339 | | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
340 | 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
|
341 |/ () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
342 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
|
343 | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
344 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
|
345 () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
346 |
4991
2928f35023a1
evolve: make sure divergence resolution doesn't undo changes (issue6203)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
347 $ 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
|
348 > c |
2928f35023a1
evolve: make sure divergence resolution doesn't undo changes (issue6203)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4676
diff
changeset
|
349 > EOF |
4481
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
350 merge:[5] updated e |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
351 with: [6] updated e |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
352 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
|
353 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
|
354 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
|
355 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
|
356 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
|
357 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
|
358 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
359 working directory is now at 51ee71efed61 |
4481
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
360 |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
361 $ hg glog -l1 |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
362 @ 9:51ee71efed61 updated e |
4481
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
363 | () [default] draft |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
364 ~ |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
365 |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
366 $ hg debugobsolete |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
367 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
|
368 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
|
369 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
|
370 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
|
371 de4ea3103326293994c634101e780724346ee89f a2465d1d56d1aee8ed90d2292978456d2be6f7b9 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '4', 'operation': 'evolve', 'user': 'test'} |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
372 0ceb21ca2557a61433f097e4d64024e37cae2c10 51ee71efed6170064a7155a9a35e56af0292a203 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
373 a2465d1d56d1aee8ed90d2292978456d2be6f7b9 51ee71efed6170064a7155a9a35e56af0292a203 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '0', 'operation': 'evolve', 'user': 'test'} |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
374 $ hg obslog --all |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
375 @ 51ee71efed61 (9) updated e |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
376 |\ amended(content) from 0ceb21ca2557 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
377 | | rewritten from a2465d1d56d1 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
378 | | |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
379 x | 0ceb21ca2557 (7) updated e |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
380 | | rebased(parent) from ff6f7cd76a7c using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
5276
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 a2465d1d56d1 (8) updated e |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
383 | | rebased(parent) from de4ea3103326 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
5276
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 de4ea3103326 (6) updated e |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
386 | | rewritten(description, parent, content) from 8d71eadcc9df using prune by test (Thu Jan 01 00:00:00 1970 +0000) |
5276
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 | ff6f7cd76a7c (5) updated e |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
389 |/ rewritten(description, content) from 8d71eadcc9df using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
390 | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
391 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
|
392 |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
393 |
4481
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3846
diff
changeset
|
394 $ cd .. |
4493
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
395 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
396 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
|
397 --------------------------------------------------------- |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
398 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
399 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
|
400 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
401 $ 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
|
402 $ 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
|
403 $ 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
|
404 $ 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
|
405 $ 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
|
406 $ 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
|
407 $ 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
|
408 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
409 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
|
410 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
411 $ 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
|
412 $ 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
|
413 $ 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
|
414 $ hg amend |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
415 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
416 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
|
417 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
418 $ 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
|
419 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
|
420 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
|
421 (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
|
422 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
|
423 (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
|
424 $ 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
|
425 $ hg amend |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
426 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
|
427 $ 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
|
428 @ 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
|
429 | () [default] draft |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
430 | * 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
|
431 |/ () [default] draft |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
432 | 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
|
433 |/ () [default] draft |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
434 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
|
435 () [default] draft |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
436 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
437 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
|
438 |
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
|
439 $ hg evolve --content-divergent --update |
4580
3ef96578da43
evolve: use --all by default (BC)
Anton Shestakov <av6@dwimlabs.net>
parents:
4576
diff
changeset
|
440 merge:[2] delete a |
3ef96578da43
evolve: use --all by default (BC)
Anton Shestakov <av6@dwimlabs.net>
parents:
4576
diff
changeset
|
441 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
|
442 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
|
443 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
444 working directory is now at b1badc7ab394 |
4493
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
445 $ hg glog |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
446 @ 4:b1badc7ab394 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
|
447 | () [default] draft |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
448 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
|
449 () [default] draft |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
450 |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
451 $ 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
|
452 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
|
453 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
|
454 --- a/a |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
455 +++ /dev/null |
32446b7a6e7c
test: add test for content-divergence with file removal
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4481
diff
changeset
|
456 @@ -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
|
457 -a |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
458 |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
459 $ hg debugobsolete |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
460 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
|
461 dff6e52f5e419381c070159c8038ac948f59283f 92ecd58f9b05d6c0a1c3833a79359eea4b0268ff 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'amend', 'user': 'test'} |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
462 0825dcee2670349e749f1df45857fca34f61e350 b1badc7ab394c2b9ed21e2961de43c71c2e2288f 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
463 92ecd58f9b05d6c0a1c3833a79359eea4b0268ff b1badc7ab394c2b9ed21e2961de43c71c2e2288f 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'evolve', 'user': 'test'} |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
464 $ hg obslog --all |
5297
a73cdef2e33f
evolve: rename `evolve_source_*` to `divergence_source_*`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5296
diff
changeset
|
465 @ b1badc7ab394 (4) delete a |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
466 |\ amended(content) from 0825dcee2670 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
467 | | amended(content) from 92ecd58f9b05 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
468 | | |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
469 x | 0825dcee2670 (2) delete a |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
470 | | amended(content) from dff6e52f5e41 using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
5276
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 92ecd58f9b05 (3) delete a |
5301
e8660b28bfee
obslog: makes --origin flag the default
Anton Shestakov <av6@dwimlabs.net>
parents:
5297
diff
changeset
|
473 |/ amended(content) from dff6e52f5e41 using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
5276
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
474 | |
c834fdb87f90
tests: add more verification of output to divergence tests
Martin von Zweigbergk <martinvonz@google.com>
parents:
5079
diff
changeset
|
475 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
|
476 |