Mercurial > evolve
annotate tests/test-topic-stack-complex.t @ 3277:0a6954bd6502 stable
tests: add a test showing traceback on `hg stack` in case of split
The traceback will be fixed in the next patch.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 11 Dec 2017 23:33:50 +0530 |
parents | |
children | e4c0332ecee4 |
rev | line source |
---|---|
3277
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
1 Testing `hg stack` on complex cases when we have multiple successors because of |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
2 divergence, split etc. |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
3 $ . "$TESTDIR/testlib/topic_setup.sh" |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
4 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
5 Setup |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
6 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
7 $ cat << EOF >> $HGRCPATH |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
8 > [experimental] |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
9 > evolution = all |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
10 > [ui] |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
11 > interactive = True |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
12 > [extensions] |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
13 > show = |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
14 > EOF |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
15 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
16 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
17 $ hg init test |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
18 $ cd test |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
19 $ echo foo > foo |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
20 $ hg add foo |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
21 $ hg ci -m "Added foo" |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
22 $ hg phase -r . --public |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
23 $ hg topic foo |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
24 marked working directory as topic: foo |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
25 $ echo a > a |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
26 $ echo b > b |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
27 $ hg ci -Aqm "Added a and b" |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
28 $ echo c > c |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
29 $ echo d > d |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
30 $ hg ci -Aqm "Added c and d" |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
31 $ echo e > e |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
32 $ echo f > f |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
33 $ hg ci -Aqm "Added e and f" |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
34 $ hg show work |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
35 @ f1d3 (foo) Added e and f |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
36 o 8e82 (foo) Added c and d |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
37 o 002b (foo) Added a and b |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
38 o f360 Added foo |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
39 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
40 Testing in case of split within the topic |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
41 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
42 $ hg stack |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
43 ### topic: foo |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
44 ### target: default (branch) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
45 t3@ Added e and f (current) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
46 t2: Added c and d |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
47 t1: Added a and b |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
48 t0^ Added foo (base) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
49 $ hg prev |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
50 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
51 [2] Added c and d |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
52 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
53 $ echo 0 > num |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
54 $ cat > editor.sh << '__EOF__' |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
55 > NUM=$(cat num) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
56 > NUM=`expr "$NUM" + 1` |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
57 > echo "$NUM" > num |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
58 > echo "split$NUM" > "$1" |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
59 > __EOF__ |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
60 $ export HGEDITOR="\"sh\" \"editor.sh\"" |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
61 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
62 $ hg split << EOF |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
63 > y |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
64 > y |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
65 > n |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
66 > y |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
67 > EOF |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
68 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
69 adding c |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
70 adding d |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
71 diff --git a/c b/c |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
72 new file mode 100644 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
73 examine changes to 'c'? [Ynesfdaq?] y |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
74 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
75 @@ -0,0 +1,1 @@ |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
76 +c |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
77 record change 1/2 to 'c'? [Ynesfdaq?] y |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
78 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
79 diff --git a/d b/d |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
80 new file mode 100644 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
81 examine changes to 'd'? [Ynesfdaq?] n |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
82 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
83 Done splitting? [yN] y |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
84 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
85 $ hg stack |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
86 ### topic: foo |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
87 ### target: default (branch) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
88 t4$ Added e and f (unstable) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
89 t3@ split2 (current) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
90 t2: split1 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
91 t1: Added a and b |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
92 t0^ Added foo (base) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
93 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
94 $ hg show work |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
95 @ 5cce (foo) split2 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
96 o f26c (foo) split1 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
97 | o f1d3 (foo) Added e and f |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
98 | x 8e82 (foo) Added c and d |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
99 |/ |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
100 o 002b (foo) Added a and b |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
101 o f360 Added foo |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
102 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
103 $ hg prev |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
104 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
105 [4] split1 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
106 $ echo foo > c |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
107 $ hg diff |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
108 diff -r f26c1b9addde c |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
109 --- a/c Thu Jan 01 00:00:00 1970 +0000 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
110 +++ b/c Thu Jan 01 00:00:00 1970 +0000 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
111 @@ -1,1 +1,1 @@ |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
112 -c |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
113 +foo |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
114 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
115 $ hg amend |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
116 1 new orphan changesets |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
117 $ hg show work |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
118 @ 7d94 (foo) split1 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
119 | o 5cce (foo) split2 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
120 | x f26c (foo) split1 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
121 |/ |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
122 | o f1d3 (foo) Added e and f |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
123 | x 8e82 (foo) Added c and d |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
124 |/ |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
125 o 002b (foo) Added a and b |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
126 o f360 Added foo |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
127 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
128 $ hg stack |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
129 ### topic: foo (2 heads) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
130 ### target: default (branch), 2 behind |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
131 ** unknown exception encountered, please report by visiting |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
132 ** https://mercurial-scm.org/wiki/BugTracker |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
133 ** Python 2.7.12 (default, Jul 18 2016, 15:04:44) [GCC 4.8.4] |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
134 ** Mercurial Distributed SCM (version 4.4.2+379-6812f5c492c7) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
135 ** Extensions loaded: rebase, topic, show, evolve |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
136 Traceback (most recent call last): |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
137 File "/tmp/hgtests.d2IKdr/install/bin/hg", line 41, in <module> |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
138 dispatch.run() |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
139 File "/tmp/hgtests.d2IKdr/install/lib/python/mercurial/dispatch.py", line 88, in run |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
140 status = (dispatch(req) or 0) & 255 |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
141 File "/tmp/hgtests.d2IKdr/install/lib/python/mercurial/dispatch.py", line 177, in dispatch |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
142 ret = _runcatch(req) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
143 File "/tmp/hgtests.d2IKdr/install/lib/python/mercurial/dispatch.py", line 318, in _runcatch |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
144 return _callcatch(ui, _runcatchfunc) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
145 File "/tmp/hgtests.d2IKdr/install/lib/python/mercurial/dispatch.py", line 326, in _callcatch |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
146 return scmutil.callcatch(ui, func) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
147 File "/tmp/hgtests.d2IKdr/install/lib/python/mercurial/scmutil.py", line 154, in callcatch |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
148 return func() |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
149 File "/tmp/hgtests.d2IKdr/install/lib/python/mercurial/dispatch.py", line 308, in _runcatchfunc |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
150 return _dispatch(req) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
151 File "/tmp/hgtests.d2IKdr/install/lib/python/mercurial/dispatch.py", line 912, in _dispatch |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
152 cmdpats, cmdoptions) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
153 File "/tmp/hgtests.d2IKdr/install/lib/python/mercurial/dispatch.py", line 667, in runcommand |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
154 ret = _runcommand(ui, options, cmd, d) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
155 File "/tmp/hgtests.d2IKdr/install/lib/python/mercurial/dispatch.py", line 920, in _runcommand |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
156 return cmdfunc() |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
157 File "/tmp/hgtests.d2IKdr/install/lib/python/mercurial/dispatch.py", line 909, in <lambda> |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
158 d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
159 File "/tmp/hgtests.d2IKdr/install/lib/python/mercurial/util.py", line 1188, in check |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
160 return func(*args, **kwargs) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
161 File "/home/pulkit/repo/mutable-history/hgext3rd/topic/__init__.py", line 663, in cmdstack |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
162 return stack.showstack(ui, repo, branch=branch, topic=topic, opts=opts) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
163 File "/home/pulkit/repo/mutable-history/hgext3rd/topic/stack.py", line 288, in showstack |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
164 p1 = repo[_singlesuccessor(repo, p1)] |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
165 File "/home/pulkit/repo/mutable-history/hgext3rd/topic/evolvebits.py", line 92, in _singlesuccessor |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
166 raise MultipleSuccessorsError(newer) |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
167 hgext3rd.topic.evolvebits.MultipleSuccessorsError |
0a6954bd6502
tests: add a test showing traceback on `hg stack` in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
168 [1] |