annotate tests/test-prev-next.t @ 6791:2ef4e26c4bc0 stable

topic: add more branchcache entries to test-topic-flow-publish-flag.t It seems these new entries started appearing after the recent-ish refactoring of branchcache in core. Now the server and the client have the same branch cache data on disk, which is probably for the best. The actual output with changeset hashes is: branch2-base:c0155e8ec55a9b46d415d5b13a319d0c80e26e9d o double//slash branch2-immutable:c0155e8ec55a9b46d415d5b13a319d0c80e26e9d o double//slash branch2-served:256a2cb64fd8ada4ff18d57606d212f094cb50fb o double//slash c0155e8ec55a is public, so it's correct to be in "base" and "immutable" repo views. 256a2cb64fd8 is draft (without topic), so it's expected to be in the "served" view.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 13 Jun 2024 15:45:02 +0400
parents e959390490c2
children faea18a26188
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
892
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
1 $ cat >> $HGRCPATH <<EOF
3547
78abffad8626 next: prompt user to choose a children in case of ambiguity
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3546
diff changeset
2 > [ui]
78abffad8626 next: prompt user to choose a children in case of ambiguity
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3546
diff changeset
3 > interactive = True
892
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
4 > [extensions]
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
5 > EOF
1806
9f42f819267b evolve: move the extensions to 'hgext3rd'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 1756
diff changeset
6 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH
892
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
7
3196
94e5235e95f5 evolve: make prev/next respect --quiet flag (issue5742)
Martin von Zweigbergk <martinvonz@google.com>
parents: 3013
diff changeset
8 hg prev & next move to parent/child
2737
66278c4d9c07 prev: stop creating a repository at the root of 'test-repo.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2443
diff changeset
9 $ hg init test-repo
66278c4d9c07 prev: stop creating a repository at the root of 'test-repo.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2443
diff changeset
10 $ cd test-repo
892
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
11 $ touch a
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
12 $ hg add a
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
13 $ hg commit -m 'added a'
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
14 $ touch b
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
15 $ hg add b
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
16 $ hg commit -m 'added b'
3196
94e5235e95f5 evolve: make prev/next respect --quiet flag (issue5742)
Martin von Zweigbergk <martinvonz@google.com>
parents: 3013
diff changeset
17 $ hg prev
94e5235e95f5 evolve: make prev/next respect --quiet flag (issue5742)
Martin von Zweigbergk <martinvonz@google.com>
parents: 3013
diff changeset
18 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
94e5235e95f5 evolve: make prev/next respect --quiet flag (issue5742)
Martin von Zweigbergk <martinvonz@google.com>
parents: 3013
diff changeset
19 [0] added a
94e5235e95f5 evolve: make prev/next respect --quiet flag (issue5742)
Martin von Zweigbergk <martinvonz@google.com>
parents: 3013
diff changeset
20 $ hg next
94e5235e95f5 evolve: make prev/next respect --quiet flag (issue5742)
Martin von Zweigbergk <martinvonz@google.com>
parents: 3013
diff changeset
21 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
94e5235e95f5 evolve: make prev/next respect --quiet flag (issue5742)
Martin von Zweigbergk <martinvonz@google.com>
parents: 3013
diff changeset
22 [1] added b
94e5235e95f5 evolve: make prev/next respect --quiet flag (issue5742)
Martin von Zweigbergk <martinvonz@google.com>
parents: 3013
diff changeset
23
94e5235e95f5 evolve: make prev/next respect --quiet flag (issue5742)
Martin von Zweigbergk <martinvonz@google.com>
parents: 3013
diff changeset
24 hg prev & next respect --quiet
94e5235e95f5 evolve: make prev/next respect --quiet flag (issue5742)
Martin von Zweigbergk <martinvonz@google.com>
parents: 3013
diff changeset
25 $ hg prev -q
94e5235e95f5 evolve: make prev/next respect --quiet flag (issue5742)
Martin von Zweigbergk <martinvonz@google.com>
parents: 3013
diff changeset
26 $ hg next -q
94e5235e95f5 evolve: make prev/next respect --quiet flag (issue5742)
Martin von Zweigbergk <martinvonz@google.com>
parents: 3013
diff changeset
27
94e5235e95f5 evolve: make prev/next respect --quiet flag (issue5742)
Martin von Zweigbergk <martinvonz@google.com>
parents: 3013
diff changeset
28 hg prev -B should move active bookmark
892
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
29 $ hg bookmark mark
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
30 $ hg bookmarks
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
31 * mark 1:6e742c9127b3
1160
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
32 $ hg prev -B
892
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
33 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
34 [0] added a
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
35 $ hg bookmarks
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
36 * mark 0:a154386e50d1
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
37
1160
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
38 hg next -B should move active bookmark
1500
b4dfafda72c2 next: add support for --dry-run
timeless@mozdev.org
parents: 1487
diff changeset
39 $ hg next -B --dry-run
3546
d197e6f0d0e3 next: show changeset hash in `--dry-run` instead of rev numbers
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3501
diff changeset
40 hg update 6e742c9127b3;
d197e6f0d0e3 next: show changeset hash in `--dry-run` instead of rev numbers
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3501
diff changeset
41 hg bookmark mark -r 6e742c9127b3;
1500
b4dfafda72c2 next: add support for --dry-run
timeless@mozdev.org
parents: 1487
diff changeset
42 [1] added b
1160
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
43 $ hg next -B
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
44 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
45 [1] added b
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
46 $ hg bookmarks
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
47 * mark 1:6e742c9127b3
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
48
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
49 hg prev should unset active bookmark
1500
b4dfafda72c2 next: add support for --dry-run
timeless@mozdev.org
parents: 1487
diff changeset
50 $ hg prev --dry-run
3552
7e8b2c9edf36 prev: show changeset hash in --dry-run instead of rev numbers
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3551
diff changeset
51 hg update a154386e50d1;
1500
b4dfafda72c2 next: add support for --dry-run
timeless@mozdev.org
parents: 1487
diff changeset
52 [0] added a
1160
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
53 $ hg prev
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
54 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
55 [0] added a
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
56 $ hg bookmarks
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
57 mark 1:6e742c9127b3
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
58
892
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
59 hg next should move active bookmark
1160
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
60 $ hg bookmark mark2
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
61 $ hg bookmarks
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
62 mark 1:6e742c9127b3
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
63 * mark2 0:a154386e50d1
2396
c1485ebdd6b9 color: update the shorttemplate to use colors
Boris Feld <boris.feld@octobus.net>
parents: 1806
diff changeset
64 $ hg next --dry-run --color=debug
3546
d197e6f0d0e3 next: show changeset hash in `--dry-run` instead of rev numbers
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3501
diff changeset
65 hg update 6e742c9127b3;
2396
c1485ebdd6b9 color: update the shorttemplate to use colors
Boris Feld <boris.feld@octobus.net>
parents: 1806
diff changeset
66 [[evolve.rev|1]] added b
892
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
67 $ hg next
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
68 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
69 [1] added b
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
70 $ hg bookmarks
1160
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
71 mark 1:6e742c9127b3
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
72 mark2 0:a154386e50d1
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
73
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
74 $ hg bookmark -d mark2
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
75 $ hg bookmark mark
892
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
76
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
77 hg next/prev should not interfere with inactive bookmarks
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
78 $ touch c
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
79 $ hg add c
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
80 $ hg commit -m 'added c'
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
81 $ hg bookmark -r2 no-move
1160
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
82 $ hg prev -B
892
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
83 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
84 [1] added b
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
85 $ hg bookmarks
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
86 * mark 1:6e742c9127b3
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
87 no-move 2:4e26ef31f919
1160
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
88 $ hg next -B
892
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
89 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
90 [2] added c
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
91 $ hg bookmarks
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
92 * mark 2:4e26ef31f919
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
93 no-move 2:4e26ef31f919
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
94 $ hg up 1
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
95 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
964
c768f7666106 test: update to output change introduced by future 3.1
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 892
diff changeset
96 (leaving bookmark mark)
1160
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
97 $ hg next -B
892
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
98 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
99 [2] added c
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
100 $ hg bookmarks
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
101 mark 2:4e26ef31f919
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
102 no-move 2:4e26ef31f919
1160
e29a813f6af5 Make next/prev only move bookmarks optionally
Ryan McElroy <rmcelroy@fb.com>
parents: 964
diff changeset
103 $ hg prev -B
892
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
104 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
105 [1] added b
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
106 $ hg bookmarks
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
107 mark 2:4e26ef31f919
947fb5b1915b evolve: active bookmark should move when using prev/next (#37)
Olle Lundberg <geek@nerd.sh>
parents:
diff changeset
108 no-move 2:4e26ef31f919
1427
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
109
2738
3f27fe80be26 prev: issue a proper error when reaching repository root
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2737
diff changeset
110 test prev on root
3f27fe80be26 prev: issue a proper error when reaching repository root
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2737
diff changeset
111
3f27fe80be26 prev: issue a proper error when reaching repository root
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2737
diff changeset
112 $ hg up null
3f27fe80be26 prev: issue a proper error when reaching repository root
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2737
diff changeset
113 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
3f27fe80be26 prev: issue a proper error when reaching repository root
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2737
diff changeset
114 $ hg prev
3f27fe80be26 prev: issue a proper error when reaching repository root
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2737
diff changeset
115 already at repository root
3f27fe80be26 prev: issue a proper error when reaching repository root
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2737
diff changeset
116 [1]
3f27fe80be26 prev: issue a proper error when reaching repository root
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2737
diff changeset
117 $ hg up 1
3f27fe80be26 prev: issue a proper error when reaching repository root
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2737
diff changeset
118 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
1427
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
119
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
120 Behavior with local modification
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
121 --------------------------------
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
122
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
123 $ echo foo > modified-bar
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
124 $ hg add modified-bar
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
125 $ hg prev
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
126 abort: uncommitted changes
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
127 (do you want --merge?)
5714
b3d9e6c805d6 tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents: 5710
diff changeset
128 [20]
1427
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
129 $ hg prev --merge
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
130 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
131 [0] added a
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
132 $ hg next
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
133 abort: uncommitted changes
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
134 (do you want --merge?)
5714
b3d9e6c805d6 tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents: 5710
diff changeset
135 [20]
1427
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
136 $ hg next --merge
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
137 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
138 [1] added b
fcc467ca740e next/prev: require --merge to move with uncommitted changes
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1185
diff changeset
139
1445
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
140 Behavior with aspiring children
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
141 -------------------------------
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
142
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
143 $ hg revert --all
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
144 forgetting modified-bar
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
145 $ hg log -G
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
146 o changeset: 2:4e26ef31f919
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
147 | bookmark: mark
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
148 | bookmark: no-move
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
149 | tag: tip
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
150 | user: test
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
151 | date: Thu Jan 01 00:00:00 1970 +0000
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
152 | summary: added c
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
153 |
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
154 @ changeset: 1:6e742c9127b3
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
155 | user: test
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
156 | date: Thu Jan 01 00:00:00 1970 +0000
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
157 | summary: added b
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
158 |
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
159 o changeset: 0:a154386e50d1
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
160 user: test
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
161 date: Thu Jan 01 00:00:00 1970 +0000
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
162 summary: added a
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
163
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
164
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
165 no children of any kind
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
166
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
167 $ hg next
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
168 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
169 [2] added c
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
170 $ hg next
1447
09206bdc2db4 next: reword error output
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1445
diff changeset
171 no children
1445
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
172 [1]
1487
ee5391999f2d next: properly report no children when --evolve is used
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1449
diff changeset
173 $ hg next --evolve
ee5391999f2d next: properly report no children when --evolve is used
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1449
diff changeset
174 no children
ee5391999f2d next: properly report no children when --evolve is used
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1449
diff changeset
175 [1]
2396
c1485ebdd6b9 color: update the shorttemplate to use colors
Boris Feld <boris.feld@octobus.net>
parents: 1806
diff changeset
176 $ hg prev --dry-run --color=debug
3552
7e8b2c9edf36 prev: show changeset hash in --dry-run instead of rev numbers
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3551
diff changeset
177 hg update 6e742c9127b3;
2396
c1485ebdd6b9 color: update the shorttemplate to use colors
Boris Feld <boris.feld@octobus.net>
parents: 1806
diff changeset
178 [[evolve.rev|1]] added b
1445
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
179 $ hg prev
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
180 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
181 [1] added b
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
182
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
183 some aspiring children
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
184
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
185 $ hg amend -m 'added b (2)'
3013
945a0989e41b packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3000
diff changeset
186 1 new orphan changesets
4237
9e64a7d09895 next: explicitly specify --no-evolve in the tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4181
diff changeset
187 $ hg next --no-evolve
1447
09206bdc2db4 next: reword error output
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1445
diff changeset
188 no children
1449
9be1cadf7a07 next: add a --evolve option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1448
diff changeset
189 (1 unstable changesets to be evolved here, do you want --evolve?)
1445
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
190 [1]
1500
b4dfafda72c2 next: add support for --dry-run
timeless@mozdev.org
parents: 1487
diff changeset
191 $ hg next --evolve --dry-run
b4dfafda72c2 next: add support for --dry-run
timeless@mozdev.org
parents: 1487
diff changeset
192 move:[2] added c
b4dfafda72c2 next: add support for --dry-run
timeless@mozdev.org
parents: 1487
diff changeset
193 atop:[3] added b (2)
b4dfafda72c2 next: add support for --dry-run
timeless@mozdev.org
parents: 1487
diff changeset
194 hg rebase -r 4e26ef31f919 -d 9ad178109a19
2443
6a23a55f77d2 next: prevent a color related crash when evolve
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2396
diff changeset
195
6a23a55f77d2 next: prevent a color related crash when evolve
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2396
diff changeset
196 (add color output for smoke testing)
6a23a55f77d2 next: prevent a color related crash when evolve
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2396
diff changeset
197
6a23a55f77d2 next: prevent a color related crash when evolve
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2396
diff changeset
198 $ hg next --evolve --color debug
3501
7c8150697810 color: add some colors to evolve command itself
Boris Feld <boris.feld@octobus.net>
parents: 3488
diff changeset
199 [evolve.operation|move:][[evolve.rev|2]] added c
2443
6a23a55f77d2 next: prevent a color related crash when evolve
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2396
diff changeset
200 atop:[[evolve.rev|3]] added b (2)
4613
30a544904238 messages: standardize on "working copy is now at" including "is"
Martin von Zweigbergk <martinvonz@google.com>
parents: 4576
diff changeset
201 [ ui.status|working directory is now at [evolve.node|e3b6d5df389b]]
1445
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
202
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
203 next with ambiguity
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
204
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
205 $ hg prev
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
206 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
207 [3] added b (2)
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
208 $ echo d > d
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
209 $ hg add d
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
210 $ hg commit -m 'added d'
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
211 created new head
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
212 $ hg prev
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
213 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
214 [3] added b (2)
3547
78abffad8626 next: prompt user to choose a children in case of ambiguity
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3546
diff changeset
215 $ hg next <<EOF
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
216 > 2
3547
78abffad8626 next: prompt user to choose a children in case of ambiguity
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3546
diff changeset
217 > EOF
78abffad8626 next: prompt user to choose a children in case of ambiguity
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3546
diff changeset
218 ambiguous next changeset, choose one to update:
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
219 1: [e3b6d5df389b] added c
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
220 2: [9df671ccd2c7] added d
3547
78abffad8626 next: prompt user to choose a children in case of ambiguity
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3546
diff changeset
221 q: quit the prompt
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
222 enter the index of the revision you want to select: 2
3547
78abffad8626 next: prompt user to choose a children in case of ambiguity
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3546
diff changeset
223 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1445
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
224 [5] added d
3547
78abffad8626 next: prompt user to choose a children in case of ambiguity
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3546
diff changeset
225
78abffad8626 next: prompt user to choose a children in case of ambiguity
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3546
diff changeset
226 $ hg prev
78abffad8626 next: prompt user to choose a children in case of ambiguity
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3546
diff changeset
227 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
78abffad8626 next: prompt user to choose a children in case of ambiguity
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3546
diff changeset
228 [3] added b (2)
1445
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
229
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
230 next with ambiguity in aspiring children
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
231
5962
b68789e8c535 tests: spell out hg commands for readability
Anton Shestakov <av6@dwimlabs.net>
parents: 5935
diff changeset
232 $ hg amend -m 'added b (3)'
3013
945a0989e41b packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3000
diff changeset
233 2 new orphan changesets
4237
9e64a7d09895 next: explicitly specify --no-evolve in the tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4181
diff changeset
234 $ hg next --no-evolve
1447
09206bdc2db4 next: reword error output
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1445
diff changeset
235 no children
1449
9be1cadf7a07 next: add a --evolve option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1448
diff changeset
236 (2 unstable changesets to be evolved here, do you want --evolve?)
1445
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
237 [1]
3549
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
238 $ hg next --evolve <<EOF
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
239 > 1
3549
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
240 > EOF
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
241 ambiguous next (unstable) changeset, choose one to evolve and update:
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
242 1: [e3b6d5df389b] added c
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
243 2: [9df671ccd2c7] added d
3549
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
244 q: quit the prompt
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
245 enter the index of the revision you want to select: 1
3549
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
246 move:[4] added c
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
247 atop:[6] added b (3)
4613
30a544904238 messages: standardize on "working copy is now at" including "is"
Martin von Zweigbergk <martinvonz@google.com>
parents: 4576
diff changeset
248 working directory is now at 5ce67c2407b0
3549
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
249
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
250 $ hg log -GT "{rev}:{node|short} {desc}\n"
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
251 @ 7:5ce67c2407b0 added c
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
252 |
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
253 o 6:d7f119adc759 added b (3)
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
254 |
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
255 | * 5:9df671ccd2c7 added d
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
256 | |
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
257 | x 3:9ad178109a19 added b (2)
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
258 |/
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
259 o 0:a154386e50d1 added a
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
260
802441114400 next: prompt user to choose child in ambiguity in `hg next --evolve`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3547
diff changeset
261
6360
e959390490c2 branching: merge with stable
Anton Shestakov <av6@dwimlabs.net>
parents: 6317
diff changeset
262 $ hg prev
e959390490c2 branching: merge with stable
Anton Shestakov <av6@dwimlabs.net>
parents: 6317
diff changeset
263 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
e959390490c2 branching: merge with stable
Anton Shestakov <av6@dwimlabs.net>
parents: 6317
diff changeset
264 [6] added b (3)
e959390490c2 branching: merge with stable
Anton Shestakov <av6@dwimlabs.net>
parents: 6317
diff changeset
265 $ hg next --evolve <<EOF
e959390490c2 branching: merge with stable
Anton Shestakov <av6@dwimlabs.net>
parents: 6317
diff changeset
266 > 2
e959390490c2 branching: merge with stable
Anton Shestakov <av6@dwimlabs.net>
parents: 6317
diff changeset
267 > EOF
e959390490c2 branching: merge with stable
Anton Shestakov <av6@dwimlabs.net>
parents: 6317
diff changeset
268 ambiguous next changeset, choose one to update:
e959390490c2 branching: merge with stable
Anton Shestakov <av6@dwimlabs.net>
parents: 6317
diff changeset
269 1: [5ce67c2407b0] added c
e959390490c2 branching: merge with stable
Anton Shestakov <av6@dwimlabs.net>
parents: 6317
diff changeset
270 2: [9df671ccd2c7] added d
e959390490c2 branching: merge with stable
Anton Shestakov <av6@dwimlabs.net>
parents: 6317
diff changeset
271 q: quit the prompt
e959390490c2 branching: merge with stable
Anton Shestakov <av6@dwimlabs.net>
parents: 6317
diff changeset
272 enter the index of the revision you want to select: 2
1445
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
273 move:[5] added d
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
274 atop:[6] added b (3)
6fd6c98f9f70 next: add extensive testing to the 'next' command
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 1427
diff changeset
275 working directory is now at 47ea25be8aea
1742
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
276
3551
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
277 prev with multiple parents
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
278
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
279 $ hg log -GT "{rev}:{node|short} {desc}\n"
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
280 @ 8:47ea25be8aea added d
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
281 |
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
282 | o 7:5ce67c2407b0 added c
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
283 |/
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
284 o 6:d7f119adc759 added b (3)
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
285 |
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
286 o 0:a154386e50d1 added a
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
287
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
288 $ hg merge -r 5ce67c2407b0
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
289 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
290 (branch merge, don't forget to commit)
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
291 $ hg ci -m "merge commit"
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
292
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
293 $ hg prev <<EOF
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
294 > q
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
295 > EOF
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
296 multiple parents, choose one to update:
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
297 1: [47ea25be8aea] added d
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
298 2: [5ce67c2407b0] added c
3551
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
299 q: quit the prompt
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
300 enter the index of the revision you want to select: q
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
301 [8] added d
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
302 [7] added c
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
303 multiple parents, explicitly update to one
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
304 [1]
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
305
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
306 $ hg prev --config ui.interactive=False
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
307 [8] added d
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
308 [7] added c
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
309 multiple parents, explicitly update to one
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
310 [1]
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
311
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
312 $ hg prev <<EOF
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
313 > 2
3551
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
314 > EOF
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
315 multiple parents, choose one to update:
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
316 1: [47ea25be8aea] added d
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
317 2: [5ce67c2407b0] added c
3551
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
318 q: quit the prompt
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
319 enter the index of the revision you want to select: 2
3551
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
320 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
321 [7] added c
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
322
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
323 $ hg log -GT "{rev}:{node|short} {desc}\n"
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
324 o 9:a4b8c25a87d3 merge commit
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
325 |\
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
326 | o 8:47ea25be8aea added d
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
327 | |
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
328 @ | 7:5ce67c2407b0 added c
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
329 |/
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
330 o 6:d7f119adc759 added b (3)
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
331 |
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
332 o 0:a154386e50d1 added a
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
333
ce346c6165c6 prev: prompt user to choose parent in case of multiple parents
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3549
diff changeset
334
2737
66278c4d9c07 prev: stop creating a repository at the root of 'test-repo.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2443
diff changeset
335 $ cd ..
66278c4d9c07 prev: stop creating a repository at the root of 'test-repo.t'
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 2443
diff changeset
336
1742
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
337 prev and next should lock properly against other commands
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
338
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
339 $ hg init repo
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
340 $ cd repo
5710
f65b2a978a1e tests: make sure test-prev-next.t hits lock warning timeout every time
Anton Shestakov <av6@dwimlabs.net>
parents: 4712
diff changeset
341 $ cat >> .hg/hgrc << EOF
f65b2a978a1e tests: make sure test-prev-next.t hits lock warning timeout every time
Anton Shestakov <av6@dwimlabs.net>
parents: 4712
diff changeset
342 > [ui]
f65b2a978a1e tests: make sure test-prev-next.t hits lock warning timeout every time
Anton Shestakov <av6@dwimlabs.net>
parents: 4712
diff changeset
343 > timeout.warn = 0
f65b2a978a1e tests: make sure test-prev-next.t hits lock warning timeout every time
Anton Shestakov <av6@dwimlabs.net>
parents: 4712
diff changeset
344 > EOF
3486
bee9fee8f36b test: explicitly run HGEDITOR shell command with `sh`
Matt Harbison <matt_harbison@yahoo.com>
parents: 3232
diff changeset
345 $ HGEDITOR="sh ${TESTDIR}/fake-editor.sh"
1742
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
346 $ echo hi > foo
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
347 $ hg ci -Am 'one'
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
348 adding foo
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
349 $ echo bye > foo
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
350 $ hg ci -Am 'two'
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
351
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
352 $ hg amend --edit &
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
353 $ sleep 1
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
354 $ hg prev
1743
299cdaa24fa5 merge with stable
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 1742
diff changeset
355 waiting for lock on working directory of $TESTTMP/repo held by process '*' on host '*' (glob)
4395
610999a1bae1 test: wider time matching in prev/next lock testing
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4294
diff changeset
356 got lock after (\d+) seconds (re)
1742
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
357 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
358 [0] one
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
359 $ wait
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
360
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
361 $ hg amend --edit &
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
362 $ sleep 1
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
363 $ hg next --evolve
1743
299cdaa24fa5 merge with stable
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 1742
diff changeset
364 waiting for lock on working directory of $TESTTMP/repo held by process '*' on host '*' (glob)
3013
945a0989e41b packaging: merge stable back into default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3000
diff changeset
365 1 new orphan changesets
4397
d2c1e6d61658 test: wider another time matching in prev/next lock testing
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4395
diff changeset
366 got lock after (\d+) seconds (re)
1742
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
367 move:[2] two
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
368 atop:[3] one
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6108
diff changeset
369 working directory is now at ab3a85718ec9
1742
970a4c13ebc3 evolve: lock the working copy early in next and prev (issue5244)
Simon Farnsworth <simonfar@fb.com>
parents: 1500
diff changeset
370 $ wait
3778
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
371
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
372 testing next --evolve when working directory is dirty
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
373
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
374 $ hg log -GT "{rev}:{node|short} {desc|firstline}"
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6108
diff changeset
375 @ 4:ab3a85718ec9 two
3778
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
376 |
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
377 o 3:c741983992fc one
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
378
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
379
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
380 $ hg up .^
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
381 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
382
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
383 $ echo foobar > bar
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
384 $ hg add bar
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
385 $ hg amend
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
386 1 new orphan changesets
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
387
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
388 $ echo babar > bar
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
389
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
390 $ hg next --evolve
1bf0d353f999 tests: add test of `hg next --evolve` with dirty working directory
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3552
diff changeset
391 abort: uncommitted changes
4240
323b3dac5bba next: improve the message for dirty working copy with --evolve
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4237
diff changeset
392 (use `hg amend`, `hg revert` or `hg shelve`)
5714
b3d9e6c805d6 tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents: 5710
diff changeset
393 [20]
3780
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
394
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
395 $ cd ..
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
396
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
397 Testing that `next` and `prev` respects `commands.update.check=noconflict`
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
398
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
399 $ hg init noconflict
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
400 $ cd noconflict
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
401 $ echo "[commands]" >> .hg/hgrc
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
402 $ echo "update.check=noconflict" >> .hg/hgrc
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
403
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
404 $ echo hi > wat
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
405 $ hg ci -Aqm "added wat"
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
406 $ echo hi > foo
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
407 $ hg ci -Aqm "added foo"
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
408 $ echo hi > bar
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
409 $ hg ci -Aqm "added bar"
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
410
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
411 testing for `hg prev`
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
412
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
413 $ echo bar > wat
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
414 $ hg prev
3781
e73a73b27f3e prev: respect `commands.update.check` config option in `hg prev` (issue5808)
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3780
diff changeset
415 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
e73a73b27f3e prev: respect `commands.update.check` config option in `hg prev` (issue5808)
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3780
diff changeset
416 [1] added foo
3780
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
417 $ hg diff
3781
e73a73b27f3e prev: respect `commands.update.check` config option in `hg prev` (issue5808)
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3780
diff changeset
418 diff -r cf959ce4e1ff wat
3780
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
419 --- a/wat Thu Jan 01 00:00:00 1970 +0000
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
420 +++ b/wat Thu Jan 01 00:00:00 1970 +0000
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
421 @@ -1,1 +1,1 @@
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
422 -hi
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
423 +bar
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
424
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
425 testing for `hg next`
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
426
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
427 $ hg next
3782
27cf636b2f4d next: respect `commands.update.check` config option in `hg next` (issue5808)
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3781
diff changeset
428 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
27cf636b2f4d next: respect `commands.update.check` config option in `hg next` (issue5808)
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3781
diff changeset
429 [2] added bar
3780
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
430 $ hg diff
3782
27cf636b2f4d next: respect `commands.update.check` config option in `hg next` (issue5808)
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3781
diff changeset
431 diff -r ac3de1218820 wat
3780
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
432 --- a/wat Thu Jan 01 00:00:00 1970 +0000
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
433 +++ b/wat Thu Jan 01 00:00:00 1970 +0000
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
434 @@ -1,1 +1,1 @@
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
435 -hi
9da11755d615 tests: add test demonstrating issue5808
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3779
diff changeset
436 +bar
3783
313484606461 tests: add tests for conflicts while respecting commands.update.check
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3782
diff changeset
437
313484606461 tests: add tests for conflicts while respecting commands.update.check
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3782
diff changeset
438 test that we dont end up in merge conflicts
313484606461 tests: add tests for conflicts while respecting commands.update.check
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3782
diff changeset
439
313484606461 tests: add tests for conflicts while respecting commands.update.check
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3782
diff changeset
440 $ echo bar > bar
313484606461 tests: add tests for conflicts while respecting commands.update.check
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3782
diff changeset
441 $ hg prev
313484606461 tests: add tests for conflicts while respecting commands.update.check
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3782
diff changeset
442 abort: conflicting changes
3784
838fc71ddb9c next-prev: replace the error hint to mention about `--merge` flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3783
diff changeset
443 (do you want --merge?)
5841
7dfb3b267070 branching: merge stable into default (preserving test changes on default)
Anton Shestakov <av6@dwimlabs.net>
parents: 5822
diff changeset
444 [20]
3783
313484606461 tests: add tests for conflicts while respecting commands.update.check
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3782
diff changeset
445
313484606461 tests: add tests for conflicts while respecting commands.update.check
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3782
diff changeset
446 $ echo hi > bar
313484606461 tests: add tests for conflicts while respecting commands.update.check
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3782
diff changeset
447 $ hg prev
313484606461 tests: add tests for conflicts while respecting commands.update.check
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3782
diff changeset
448 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
313484606461 tests: add tests for conflicts while respecting commands.update.check
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3782
diff changeset
449 [1] added foo
313484606461 tests: add tests for conflicts while respecting commands.update.check
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3782
diff changeset
450 $ echo bar > bar
313484606461 tests: add tests for conflicts while respecting commands.update.check
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3782
diff changeset
451 $ hg add bar
313484606461 tests: add tests for conflicts while respecting commands.update.check
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3782
diff changeset
452
313484606461 tests: add tests for conflicts while respecting commands.update.check
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3782
diff changeset
453 $ hg next
313484606461 tests: add tests for conflicts while respecting commands.update.check
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3782
diff changeset
454 abort: conflicting changes
3784
838fc71ddb9c next-prev: replace the error hint to mention about `--merge` flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3783
diff changeset
455 (do you want --merge?)
5841
7dfb3b267070 branching: merge stable into default (preserving test changes on default)
Anton Shestakov <av6@dwimlabs.net>
parents: 5822
diff changeset
456 [20]
3812
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
457
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
458 Test that --merge still works fine with commands.update.check set
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
459
4475
256b28ce03e3 next: clarify tests related to `commands.update.check` test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4398
diff changeset
460 $ hg config commands.update.check
256b28ce03e3 next: clarify tests related to `commands.update.check` test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4398
diff changeset
461 noconflict
3812
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
462 $ echo hi > bar
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
463 $ echo bar >> bar
4475
256b28ce03e3 next: clarify tests related to `commands.update.check` test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4398
diff changeset
464 $ hg next
256b28ce03e3 next: clarify tests related to `commands.update.check` test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4398
diff changeset
465 abort: conflicting changes
256b28ce03e3 next: clarify tests related to `commands.update.check` test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4398
diff changeset
466 (do you want --merge?)
5841
7dfb3b267070 branching: merge stable into default (preserving test changes on default)
Anton Shestakov <av6@dwimlabs.net>
parents: 5822
diff changeset
467 [20]
3812
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
468 $ hg next --merge
3813
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
469 merging bar
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
470 warning: conflicts while merging bar! (edit, then use 'hg resolve --mark')
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
471 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
472 use 'hg resolve' to retry unresolved file merges
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
473 [2] added bar
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
474
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
475 $ echo babar > bar
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
476 $ hg resolve -m
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
477 (no more unresolved files)
3812
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
478
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
479 Testing --merge works with other values of commands.update.check also
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
480
4475
256b28ce03e3 next: clarify tests related to `commands.update.check` test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4398
diff changeset
481 $ hg prev --config commands.update.check=abort
256b28ce03e3 next: clarify tests related to `commands.update.check` test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4398
diff changeset
482 abort: uncommitted changes
256b28ce03e3 next: clarify tests related to `commands.update.check` test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4398
diff changeset
483 (do you want --merge?)
5714
b3d9e6c805d6 tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents: 5710
diff changeset
484 [20]
3812
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
485 $ hg prev --merge --config commands.update.check=abort
4181
ab3581bc0637 branching: preserve the expected output on default
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4168
diff changeset
486 file 'bar' was deleted in other [destination] but was modified in local [working copy].
4711
88c8ef4d703c tests: update output for shorted prompts from Mercurial
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4613
diff changeset
487 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
88c8ef4d703c tests: update output for shorted prompts from Mercurial
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4613
diff changeset
488 What do you want to do?
3813
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
489 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
490 use 'hg resolve' to retry unresolved file merges
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
491 [1] added foo
3812
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
492
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
493 $ hg revert --all
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
494 forgetting bar
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
495 reverting wat
3813
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
496 $ hg resolve -m
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
497 (no more unresolved files)
3812
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
498
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
499 $ echo bar > bar
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
500 $ hg add bar
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
501
4475
256b28ce03e3 next: clarify tests related to `commands.update.check` test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4398
diff changeset
502 $ hg next --config commands.update.check=abort
256b28ce03e3 next: clarify tests related to `commands.update.check` test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4398
diff changeset
503 abort: uncommitted changes
256b28ce03e3 next: clarify tests related to `commands.update.check` test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4398
diff changeset
504 (do you want --merge?)
5714
b3d9e6c805d6 tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents: 5710
diff changeset
505 [20]
3812
25dfa95c37fd next-prev: add tests showing --merge not respected in some cases
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3784
diff changeset
506 $ hg next --merge --config commands.update.check=abort
3813
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
507 merging bar
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
508 warning: conflicts while merging bar! (edit, then use 'hg resolve --mark')
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
509 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
510 use 'hg resolve' to retry unresolved file merges
27e7ed2d13a6 next-prev: always respect the --merge flag
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3812
diff changeset
511 [2] added bar
4251
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
512
4252
a07cd1d076bb next: solve the issue of `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4251
diff changeset
513 Add test which shows that now `next` command does not get confused by split:
a07cd1d076bb next: solve the issue of `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4251
diff changeset
514 ----------------------------------------------------------------------------
4251
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
515 $ cd ..
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
516 $ mkdir nextconfused
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
517 $ cd nextconfused
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
518 $ hg init
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
519 $ echo firstline > a
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
520 $ hg add a
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
521 $ hg ci -qm A
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
522 $ echo bbbbb > b
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
523 $ echo secondline >> a
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
524 $ hg add b
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
525 $ hg ci -qm B
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
526 $ echo ccccc > c
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
527 $ hg add c
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
528 $ hg ci -qm C
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
529 $ hg log -GT "{rev}:{node|short} {desc}\n"
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
530 @ 2:fdc998261dcb C
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
531 |
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
532 o 1:cc0edb0cc2b1 B
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
533 |
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
534 o 0:cae96ff49c84 A
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
535
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
536 $ hg up 1
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
537 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
538 $ hg split << EOF
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
539 > y
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
540 > y
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
541 > n
4294
8974a05a49fa split: rework the prompt to be more standard
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4293
diff changeset
542 > Y
4251
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
543 > y
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
544 > y
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
545 > EOF
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
546 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
547 reverting a
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
548 adding b
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
549 diff --git a/a b/a
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
550 1 hunks, 1 lines changed
4712
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4711
diff changeset
551 examine changes to 'a'?
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4711
diff changeset
552 (enter ? for help) [Ynesfdaq?] y
4251
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
553
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
554 @@ -1,1 +1,2 @@
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
555 firstline
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
556 +secondline
4712
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4711
diff changeset
557 record change 1/2 to 'a'?
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4711
diff changeset
558 (enter ? for help) [Ynesfdaq?] y
4251
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
559
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
560 diff --git a/b b/b
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
561 new file mode 100644
4712
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4711
diff changeset
562 examine changes to 'b'?
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4711
diff changeset
563 (enter ? for help) [Ynesfdaq?] n
4251
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
564
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
565 created new head
4294
8974a05a49fa split: rework the prompt to be more standard
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4293
diff changeset
566 continue splitting? [Ycdq?] Y
4251
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
567 diff --git a/b b/b
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
568 new file mode 100644
4712
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4711
diff changeset
569 examine changes to 'b'?
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4711
diff changeset
570 (enter ? for help) [Ynesfdaq?] y
4251
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
571
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
572 @@ -0,0 +1,1 @@
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
573 +bbbbb
4712
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4711
diff changeset
574 record this change to 'b'?
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4711
diff changeset
575 (enter ? for help) [Ynesfdaq?] y
4251
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
576
5925
e5250f24eed7 split: adjust "no more change to split" to use plural form
Anton Shestakov <av6@dwimlabs.net>
parents: 5914
diff changeset
577 no more changes to split
4251
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
578 1 new orphan changesets
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
579
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
580 $ hg up 3 -q
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
581 $ hg log -GT "{rev}:{node|short} {desc}\n"
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
582 o 4:279f6cab32b5 B
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
583 |
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
584 |
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
585 | new desc
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
586 @ 3:a9f74d07e45c B
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
587 |
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
588 |
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
589 | new desc
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
590 | * 2:fdc998261dcb C
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
591 | |
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
592 | x 1:cc0edb0cc2b1 B
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
593 |/
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
594 o 0:cae96ff49c84 A
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
595
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
596 $ hg ci --amend -m "B modified"
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
597 1 new orphan changesets
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
598 $ hg log -GT "{rev}:{node|short} {desc}\n"
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
599 @ 5:64ab03d3110c B modified
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
600 |
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
601 | * 4:279f6cab32b5 B
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
602 | |
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
603 | |
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
604 | | new desc
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
605 | x 3:a9f74d07e45c B
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
606 |/
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
607 |
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
608 | new desc
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
609 | * 2:fdc998261dcb C
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
610 | |
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
611 | x 1:cc0edb0cc2b1 B
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
612 |/
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
613 o 0:cae96ff49c84 A
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
614
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
615 $ hg next --evolve << EOF
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
616 > q
a5ec7652c4f4 next: add test which shows that `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4240
diff changeset
617 > EOF
4252
a07cd1d076bb next: solve the issue of `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4251
diff changeset
618 move:[4] B
a07cd1d076bb next: solve the issue of `next` get confused by split
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4251
diff changeset
619 atop:[5] B modified
4613
30a544904238 messages: standardize on "working copy is now at" including "is"
Martin von Zweigbergk <martinvonz@google.com>
parents: 4576
diff changeset
620 working directory is now at 1b434459c7e7
5916
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
621
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
622 $ cd ..
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
623
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
624 Testing --merge and --evolve flags: 1 child, 1 aspchild, dirty working copy
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
625
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
626 $ hg init next-dirty-evolve
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
627 $ cd next-dirty-evolve
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
628
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
629 $ echo apple > a
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
630 $ hg ci -qAm apple
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
631 $ echo banana > b
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
632 $ hg ci -qAm banana
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
633 $ echo coconut > c
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
634 $ hg ci -qAm coconut
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
635
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
636 $ hg prev
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
637 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
638 [1] banana
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
639 $ echo blueberry > b
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
640 $ hg ci --amend -m blueberry
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
641 1 new orphan changesets
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
642
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
643 $ echo durian > d
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
644 $ hg ci -qAm durian
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
645 $ hg log -GT "{rev} {desc}\n"
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
646 @ 4 durian
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
647 |
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
648 o 3 blueberry
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
649 |
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
650 | * 2 coconut
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
651 | |
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
652 | x 1 banana
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
653 |/
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
654 o 0 apple
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
655
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
656
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
657 $ hg up 'desc("blueberry")'
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
658 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
659 $ echo avocado > a
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
660
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
661 $ hg next --no-merge --evolve --dry-run
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
662 abort: uncommitted changes
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
663 (use `hg amend`, `hg revert` or `hg shelve`)
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
664 [20]
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
665 $ hg next --no-merge --no-evolve --dry-run
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
666 abort: uncommitted changes
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
667 (do you want --merge?)
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
668 [20]
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
669 $ hg next --merge --no-evolve --dry-run
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
670 hg update db0dc1f00682;
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
671 [4] durian
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
672 $ hg next --merge --evolve --dry-run
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
673 abort: uncommitted changes
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
674 (use `hg amend`, `hg revert` or `hg shelve`)
126b9be3482d tests: demonstrate current behavior of hg next with --merge and --evolve
Anton Shestakov <av6@dwimlabs.net>
parents: 5841
diff changeset
675 [20]