Mercurial > evolve
annotate tests/test-evolve-list.t @ 4516:f54bb6eaf5e6 mercurial-4.4
test-compat: merge mercurial-4.5 into mercurial-4.4
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 11 Apr 2019 22:44:53 +0200 |
parents | a2fdbece7ce1 3caa4a459439 |
children |
rev | line source |
---|---|
1634
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
1 Set up some configs |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
2 $ cat >> $HGRCPATH <<EOF |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
3 > [extensions] |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
4 > rebase= |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
5 > EOF |
1806
9f42f819267b
evolve: move the extensions to 'hgext3rd'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1646
diff
changeset
|
6 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH |
1634
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
7 |
4471
3caa4a459439
tests: use current instability names everywhere
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3373
diff
changeset
|
8 Test listing orphan changesets |
1634
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
9 $ hg init r2 |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
10 $ cd r2 |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
11 $ echo a > a && hg ci -Am a |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
12 adding a |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
13 $ echo b > b && hg ci -Am b |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
14 adding b |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
15 $ echo c > c && hg ci -Am c |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
16 adding c |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
17 $ hg up 0 |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
18 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
19 $ echo a >> a && hg ci --amend -m a |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
20 $ hg evolve --list |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
21 d2ae7f538514: b |
3373
3ff0da45d4c7
evolve: use compat.TROUBLES to show troubles in user interface
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
22 orphan: cb9a9f314b8b (obsolete parent) |
1634
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
23 |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
24 177f92b77385: c |
2834
38db1466c6fb
log: unstable was renamed into orphan
Boris Feld <boris.feld@octobus.net>
parents:
2479
diff
changeset
|
25 orphan: d2ae7f538514 (orphan parent) |
1634
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
26 |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
27 $ cd .. |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
28 |
4471
3caa4a459439
tests: use current instability names everywhere
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3373
diff
changeset
|
29 Test listing phase-divergent changesets |
1634
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
30 $ hg init r3 |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
31 $ cd r3 |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
32 $ echo a > a && hg ci -Am a |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
33 adding a |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
34 $ echo b > b && hg ci --amend -m ab |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
35 $ hg phase --public --rev 0 --hidden |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
36 $ hg evolve --list |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
37 88cc282e27fc: ab |
3373
3ff0da45d4c7
evolve: use compat.TROUBLES to show troubles in user interface
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
38 phase-divergent: cb9a9f314b8b (immutable precursor) |
1634
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
39 |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
40 $ cd .. |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
41 |
4471
3caa4a459439
tests: use current instability names everywhere
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3373
diff
changeset
|
42 Test listing content-divergent changesets |
1634
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
43 $ hg init r1 |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
44 $ cd r1 |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
45 $ echo a > a && hg ci -Am a |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
46 adding a |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
47 $ hg up 0 |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
48 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
49 $ echo b > b && hg ci -Am b |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
50 adding b |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
51 $ hg up 0 |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
52 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
53 $ echo c > c && hg ci -Am c |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
54 adding c |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
55 created new head |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
56 $ hg up 0 |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
57 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
58 $ echo d > d && hg ci -Am d |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
59 adding d |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
60 created new head |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
61 $ hg rebase -s 1 -d 2 |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
62 rebasing 1:d2ae7f538514 "b" |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
63 $ hg rebase -s 1 -d 3 --hidden --config experimental.allowdivergence=True |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
64 rebasing 1:d2ae7f538514 "b" |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
65 $ hg evolve --list |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
66 c882616e9d84: b |
3373
3ff0da45d4c7
evolve: use compat.TROUBLES to show troubles in user interface
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
67 content-divergent: a922b3733e98 (draft) (precursor d2ae7f538514) |
1634
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
68 |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
69 a922b3733e98: b |
3373
3ff0da45d4c7
evolve: use compat.TROUBLES to show troubles in user interface
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
70 content-divergent: c882616e9d84 (draft) (precursor d2ae7f538514) |
1646
7e1b49cda66c
list: report the phase for divergent commits
timeless@gmail.com
parents:
1634
diff
changeset
|
71 |
2479
df9233aa4bac
evolve: fix --rev with --list
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
1806
diff
changeset
|
72 $ hg evolve --list --rev c882616e9d84 |
df9233aa4bac
evolve: fix --rev with --list
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
1806
diff
changeset
|
73 c882616e9d84: b |
3373
3ff0da45d4c7
evolve: use compat.TROUBLES to show troubles in user interface
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
74 content-divergent: a922b3733e98 (draft) (precursor d2ae7f538514) |
2479
df9233aa4bac
evolve: fix --rev with --list
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
1806
diff
changeset
|
75 |
1646
7e1b49cda66c
list: report the phase for divergent commits
timeless@gmail.com
parents:
1634
diff
changeset
|
76 $ hg phase -p a922b3733e98 |
7e1b49cda66c
list: report the phase for divergent commits
timeless@gmail.com
parents:
1634
diff
changeset
|
77 $ hg evolve --list |
7e1b49cda66c
list: report the phase for divergent commits
timeless@gmail.com
parents:
1634
diff
changeset
|
78 c882616e9d84: b |
3373
3ff0da45d4c7
evolve: use compat.TROUBLES to show troubles in user interface
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3013
diff
changeset
|
79 content-divergent: a922b3733e98 (public) (precursor d2ae7f538514) |
1634
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
80 |
9ae4e79a28f3
evolve--list: initial implementation
Kostia Balytskyi <ikostia@fb.com>
parents:
diff
changeset
|
81 $ cd .. |