Mercurial > evolve
annotate tests/test-pick.t @ 6655:81fe0a498447 stable
topic: internal config option to fix hg pick behavior (issue6406)
After some consideration, hg pick was made to always use current topic (and
topic namespace), even if it's not set, in which case the resulting changeset
will not have any topic.
Previously the intended behavior was to only update topic if there was an
active topic, and not touch commit extras at all otherwise. That wasn't ideal,
since pick doesn't change active topic, and amending the just-picked commit
would unset its topic without clear user's intent to do so and to their
surprise.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 27 Jan 2024 17:36:39 -0300 |
parents | 50f55918b417 |
children | e2fbec28654c 195941260a67 |
rev | line source |
---|---|
6200
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
1 #testcases abortcontinuecommand abortcontinueflag |
4484
302cd64f71e1
tests: rename test-grab to test-pick
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4232
diff
changeset
|
2 Test for the pick command |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
3 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
4 $ cat >> $HGRCPATH <<EOF |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
5 > [alias] |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
6 > glog = log -G -T "{rev}:{node|short} {desc}\n" |
4686
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
7 > glf = log -GT "{rev}: {desc} ({files})\n" |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
8 > [extensions] |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
9 > EOF |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
10 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
11 |
6200
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
12 #if abortcontinueflag |
4800
fa534a8c5863
pick: added support for hg abort
Taapas Agrawal <taapas2897@gmail.com>
parents:
4687
diff
changeset
|
13 $ cat >> $HGRCPATH <<EOF |
fa534a8c5863
pick: added support for hg abort
Taapas Agrawal <taapas2897@gmail.com>
parents:
4687
diff
changeset
|
14 > [alias] |
fa534a8c5863
pick: added support for hg abort
Taapas Agrawal <taapas2897@gmail.com>
parents:
4687
diff
changeset
|
15 > abort = pick --abort |
6200
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
16 > continue = pick --continue |
4800
fa534a8c5863
pick: added support for hg abort
Taapas Agrawal <taapas2897@gmail.com>
parents:
4687
diff
changeset
|
17 > EOF |
fa534a8c5863
pick: added support for hg abort
Taapas Agrawal <taapas2897@gmail.com>
parents:
4687
diff
changeset
|
18 #endif |
fa534a8c5863
pick: added support for hg abort
Taapas Agrawal <taapas2897@gmail.com>
parents:
4687
diff
changeset
|
19 |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
20 $ mkcommit() { |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
21 > echo "$1" > "$1" |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
22 > hg add "$1" |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
23 > hg ci -m "add $1" |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
24 > } |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
25 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
26 $ hg init repo |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
27 $ cd repo |
4484
302cd64f71e1
tests: rename test-grab to test-pick
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4232
diff
changeset
|
28 $ hg help pick |
4915
5113b38cb677
evolve: use more often seen metavariables in command synopsis strings
Anton Shestakov <av6@dwimlabs.net>
parents:
4891
diff
changeset
|
29 hg pick [OPTION]... [-r] REV |
4048
d7034826c0a2
pick: rename the grab command to pick
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3527
diff
changeset
|
30 |
d7034826c0a2
pick: rename the grab command to pick
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3527
diff
changeset
|
31 aliases: grab |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
32 |
6079
0d8d805fadbb
pick: mention topic override when there's an active topic
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5970
diff
changeset
|
33 move a commit onto the working directory parent and update to it. |
0d8d805fadbb
pick: mention topic override when there's an active topic
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5970
diff
changeset
|
34 |
6655
81fe0a498447
topic: internal config option to fix hg pick behavior (issue6406)
Anton Shestakov <av6@dwimlabs.net>
parents:
6553
diff
changeset
|
35 The resulting changeset will have the current active topic. If there's no |
81fe0a498447
topic: internal config option to fix hg pick behavior (issue6406)
Anton Shestakov <av6@dwimlabs.net>
parents:
6553
diff
changeset
|
36 active topic set, the resulting changeset will also not have any topic. |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
37 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
38 options: |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
39 |
4391
054ff759f2fd
pick: add --tool for hg pick to specify mergetool
Sangeet Kumar Mishra <mail2sangeetmishra@gmail.com>
parents:
4232
diff
changeset
|
40 -r --rev REV revision to pick |
054ff759f2fd
pick: add --tool for hg pick to specify mergetool
Sangeet Kumar Mishra <mail2sangeetmishra@gmail.com>
parents:
4232
diff
changeset
|
41 -c --continue continue interrupted pick |
054ff759f2fd
pick: add --tool for hg pick to specify mergetool
Sangeet Kumar Mishra <mail2sangeetmishra@gmail.com>
parents:
4232
diff
changeset
|
42 -a --abort abort interrupted pick |
054ff759f2fd
pick: add --tool for hg pick to specify mergetool
Sangeet Kumar Mishra <mail2sangeetmishra@gmail.com>
parents:
4232
diff
changeset
|
43 -t --tool TOOL specify merge tool |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
44 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
45 (some details hidden, use --verbose to show complete help) |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
46 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
47 $ mkcommit a |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
48 $ mkcommit b |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
49 $ mkcommit c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
50 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
51 $ hg glog |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
52 @ 2:4538525df7e2 add c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
53 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
54 o 1:7c3bad9141dc add b |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
55 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
56 o 0:1f0dee641bb7 add a |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
57 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
58 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
59 Grabbing an ancestor |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
60 |
4053
ecbf61d90807
pick: replace `hg grab` invocation in test with `hg pick`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4052
diff
changeset
|
61 $ hg pick -r 7c3bad9141dc |
4049
25981fae92f9
pick: update command output to mention pick instead of grab
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4048
diff
changeset
|
62 abort: cannot pick an ancestor revision |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
63 [255] |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
64 |
3527
7b4d1bfb6b7d
grab: gracefully handle the case when we try to grab parent of wdir
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3526
diff
changeset
|
65 Grabbing the working directory parent |
7b4d1bfb6b7d
grab: gracefully handle the case when we try to grab parent of wdir
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3526
diff
changeset
|
66 |
4053
ecbf61d90807
pick: replace `hg grab` invocation in test with `hg pick`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4052
diff
changeset
|
67 $ hg pick -r . |
4049
25981fae92f9
pick: update command output to mention pick instead of grab
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4048
diff
changeset
|
68 abort: cannot pick an ancestor revision |
3527
7b4d1bfb6b7d
grab: gracefully handle the case when we try to grab parent of wdir
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3526
diff
changeset
|
69 [255] |
7b4d1bfb6b7d
grab: gracefully handle the case when we try to grab parent of wdir
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3526
diff
changeset
|
70 |
4484
302cd64f71e1
tests: rename test-grab to test-pick
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4232
diff
changeset
|
71 Specifying multiple revisions to pick |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
72 |
4053
ecbf61d90807
pick: replace `hg grab` invocation in test with `hg pick`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4052
diff
changeset
|
73 $ hg pick 1f0dee641bb7 -r 7c3bad9141dc |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
74 abort: specify just one revision |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
75 [255] |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
76 |
4484
302cd64f71e1
tests: rename test-grab to test-pick
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4232
diff
changeset
|
77 Specifying no revisions to pick |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
78 |
4053
ecbf61d90807
pick: replace `hg grab` invocation in test with `hg pick`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4052
diff
changeset
|
79 $ hg pick |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
80 abort: empty revision set |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
81 [255] |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
82 |
4484
302cd64f71e1
tests: rename test-grab to test-pick
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4232
diff
changeset
|
83 Continuing without interrupted pick |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
84 |
4053
ecbf61d90807
pick: replace `hg grab` invocation in test with `hg pick`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4052
diff
changeset
|
85 $ hg pick --continue |
4049
25981fae92f9
pick: update command output to mention pick instead of grab
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4048
diff
changeset
|
86 abort: no interrupted pick state exists |
6262
b4e1d34ad1e9
pick: use compat.StateError for missing state file
Anton Shestakov <av6@dwimlabs.net>
parents:
6200
diff
changeset
|
87 [20] |
6200
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
88 #if abortcontinuecommand |
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
89 $ hg continue |
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
90 abort: no operation in progress |
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
91 [20] |
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
92 #endif |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
93 |
4484
302cd64f71e1
tests: rename test-grab to test-pick
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4232
diff
changeset
|
94 Aborting without interrupted pick |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
95 |
4053
ecbf61d90807
pick: replace `hg grab` invocation in test with `hg pick`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4052
diff
changeset
|
96 $ hg pick --abort |
4049
25981fae92f9
pick: update command output to mention pick instead of grab
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4048
diff
changeset
|
97 abort: no interrupted pick state exists |
6262
b4e1d34ad1e9
pick: use compat.StateError for missing state file
Anton Shestakov <av6@dwimlabs.net>
parents:
6200
diff
changeset
|
98 [20] |
6200
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
99 #if abortcontinuecommand |
4800
fa534a8c5863
pick: added support for hg abort
Taapas Agrawal <taapas2897@gmail.com>
parents:
4687
diff
changeset
|
100 $ hg abort |
fa534a8c5863
pick: added support for hg abort
Taapas Agrawal <taapas2897@gmail.com>
parents:
4687
diff
changeset
|
101 abort: no operation in progress |
5666
e5d91fd1f319
tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents:
5275
diff
changeset
|
102 [20] |
4800
fa534a8c5863
pick: added support for hg abort
Taapas Agrawal <taapas2897@gmail.com>
parents:
4687
diff
changeset
|
103 #endif |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
104 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
105 Specifying both continue and revs |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
106 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
107 $ hg up 1f0dee641bb7 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
108 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
4053
ecbf61d90807
pick: replace `hg grab` invocation in test with `hg pick`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4052
diff
changeset
|
109 $ hg pick -r 4538525df7e2 --continue |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
110 abort: cannot specify both --continue and revision |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
111 [255] |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
112 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
113 Making new branch heads |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
114 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
115 $ mkcommit x |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
116 created new head |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
117 $ mkcommit y |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
118 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
119 $ hg glog |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
120 @ 4:d46dc301d92f add y |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
121 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
122 o 3:8e224524cd09 add x |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
123 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
124 | o 2:4538525df7e2 add c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
125 | | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
126 | o 1:7c3bad9141dc add b |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
127 |/ |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
128 o 0:1f0dee641bb7 add a |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
129 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
130 Grabbing a revision |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
131 |
4053
ecbf61d90807
pick: replace `hg grab` invocation in test with `hg pick`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4052
diff
changeset
|
132 $ hg pick 7c3bad9141dc |
4049
25981fae92f9
pick: update command output to mention pick instead of grab
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4048
diff
changeset
|
133 picking 1:7c3bad9141dc "add b" |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
134 1 new orphan changesets |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
135 $ hg glog |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
136 @ 5:7c15c05db6fa add b |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
137 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
138 o 4:d46dc301d92f add y |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
139 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
140 o 3:8e224524cd09 add x |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
141 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
142 | * 2:4538525df7e2 add c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
143 | | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
144 | x 1:7c3bad9141dc add b |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
145 |/ |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
146 o 0:1f0dee641bb7 add a |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
147 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
148 |
4484
302cd64f71e1
tests: rename test-grab to test-pick
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4232
diff
changeset
|
149 When pick does not create any changes |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
150 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
151 $ hg graft -r 4538525df7e2 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
152 grafting 2:4538525df7e2 "add c" |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
153 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
154 $ hg glog |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
155 @ 6:c4636a81ebeb add c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
156 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
157 o 5:7c15c05db6fa add b |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
158 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
159 o 4:d46dc301d92f add y |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
160 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
161 o 3:8e224524cd09 add x |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
162 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
163 | * 2:4538525df7e2 add c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
164 | | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
165 | x 1:7c3bad9141dc add b |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
166 |/ |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
167 o 0:1f0dee641bb7 add a |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
168 |
4053
ecbf61d90807
pick: replace `hg grab` invocation in test with `hg pick`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4052
diff
changeset
|
169 $ hg pick -r 4538525df7e2 |
4049
25981fae92f9
pick: update command output to mention pick instead of grab
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4048
diff
changeset
|
170 picking 2:4538525df7e2 "add c" |
25981fae92f9
pick: update command output to mention pick instead of grab
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4048
diff
changeset
|
171 note: picking 2:4538525df7e2 created no changes to commit |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
172 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
173 $ hg glog |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
174 @ 6:c4636a81ebeb add c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
175 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
176 o 5:7c15c05db6fa add b |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
177 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
178 o 4:d46dc301d92f add y |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
179 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
180 o 3:8e224524cd09 add x |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
181 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
182 o 0:1f0dee641bb7 add a |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
183 |
4891
a9929dd36405
pick: don't create any successors when there were no changes (issue6093)
Anton Shestakov <av6@dwimlabs.net>
parents:
4800
diff
changeset
|
184 |
a9929dd36405
pick: don't create any successors when there were no changes (issue6093)
Anton Shestakov <av6@dwimlabs.net>
parents:
4800
diff
changeset
|
185 there were no changes to commit, so there shouldn't be any predecessors of 6, |
a9929dd36405
pick: don't create any successors when there were no changes (issue6093)
Anton Shestakov <av6@dwimlabs.net>
parents:
4800
diff
changeset
|
186 and 2 should say it was pruned (issue6093) |
a9929dd36405
pick: don't create any successors when there were no changes (issue6093)
Anton Shestakov <av6@dwimlabs.net>
parents:
4800
diff
changeset
|
187 |
5275
417503ef667d
tests: add debugobsolete calls before many obslog calls
Martin von Zweigbergk <martinvonz@google.com>
parents:
4915
diff
changeset
|
188 $ hg debugobsolete |
417503ef667d
tests: add debugobsolete calls before many obslog calls
Martin von Zweigbergk <martinvonz@google.com>
parents:
4915
diff
changeset
|
189 7c3bad9141dcb46ff89abf5f61856facd56e476c 7c15c05db6fa1458a8a745f977f4d2426abde6a0 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '4', 'operation': 'pick', 'user': 'test'} |
417503ef667d
tests: add debugobsolete calls before many obslog calls
Martin von Zweigbergk <martinvonz@google.com>
parents:
4915
diff
changeset
|
190 4538525df7e2b9f09423636c61ef63a4cb872a2d 0 {7c3bad9141dcb46ff89abf5f61856facd56e476c} (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '0', 'operation': 'pick', 'user': 'test'} |
4891
a9929dd36405
pick: don't create any successors when there were no changes (issue6093)
Anton Shestakov <av6@dwimlabs.net>
parents:
4800
diff
changeset
|
191 $ hg olog --all --hidden -r 2+6 |
a9929dd36405
pick: don't create any successors when there were no changes (issue6093)
Anton Shestakov <av6@dwimlabs.net>
parents:
4800
diff
changeset
|
192 x 4538525df7e2 (2) add c |
a9929dd36405
pick: don't create any successors when there were no changes (issue6093)
Anton Shestakov <av6@dwimlabs.net>
parents:
4800
diff
changeset
|
193 pruned using pick by test (Thu Jan 01 00:00:00 1970 +0000) |
a9929dd36405
pick: don't create any successors when there were no changes (issue6093)
Anton Shestakov <av6@dwimlabs.net>
parents:
4800
diff
changeset
|
194 |
a9929dd36405
pick: don't create any successors when there were no changes (issue6093)
Anton Shestakov <av6@dwimlabs.net>
parents:
4800
diff
changeset
|
195 @ c4636a81ebeb (6) add c |
a9929dd36405
pick: don't create any successors when there were no changes (issue6093)
Anton Shestakov <av6@dwimlabs.net>
parents:
4800
diff
changeset
|
196 |
a9929dd36405
pick: don't create any successors when there were no changes (issue6093)
Anton Shestakov <av6@dwimlabs.net>
parents:
4800
diff
changeset
|
197 |
4484
302cd64f71e1
tests: rename test-grab to test-pick
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4232
diff
changeset
|
198 interrupted pick |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
199 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
200 $ hg up d46dc301d92f |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
201 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
202 $ echo foo > c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
203 $ hg ci -Aqm "foo to c" |
4053
ecbf61d90807
pick: replace `hg grab` invocation in test with `hg pick`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4052
diff
changeset
|
204 $ hg pick -r c4636a81ebeb |
4049
25981fae92f9
pick: update command output to mention pick instead of grab
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4048
diff
changeset
|
205 picking 6:c4636a81ebeb "add c" |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
206 merging c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
207 warning: conflicts while merging c! (edit, then use 'hg resolve --mark') |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
208 unresolved merge conflicts (see hg help resolve) |
5666
e5d91fd1f319
tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents:
5275
diff
changeset
|
209 [240] |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
210 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
211 $ echo foobar > c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
212 $ hg resolve --all --mark |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
213 (no more unresolved files) |
4052
73e73471d6c6
pick: replace "grabstate" with "pickstate"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4049
diff
changeset
|
214 continue: hg pick --continue |
6200
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
215 #if abortcontinuecommand |
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
216 $ hg continue --dry-run |
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
217 pick in progress, will be resumed |
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
218 #endif |
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
219 $ hg continue |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
220 $ hg glog |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
221 @ 8:44e155eb95c7 add c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
222 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
223 o 7:2ccc03d1d096 foo to c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
224 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
225 | o 5:7c15c05db6fa add b |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
226 |/ |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
227 o 4:d46dc301d92f add y |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
228 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
229 o 3:8e224524cd09 add x |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
230 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
231 o 0:1f0dee641bb7 add a |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
232 |
3526
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
233 |
4484
302cd64f71e1
tests: rename test-grab to test-pick
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4232
diff
changeset
|
234 When interrupted pick results in no changes to commit |
3526
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
235 |
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
236 $ hg up d46dc301d92f |
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
237 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
238 $ echo bar > c |
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
239 $ hg add c |
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
240 $ hg ci -m "foo to c" |
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
241 created new head |
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
242 |
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
243 $ hg up 44e155eb95c7 |
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
244 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
245 |
4053
ecbf61d90807
pick: replace `hg grab` invocation in test with `hg pick`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4052
diff
changeset
|
246 $ hg pick 4e04628911f6 |
4049
25981fae92f9
pick: update command output to mention pick instead of grab
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4048
diff
changeset
|
247 picking 9:4e04628911f6 "foo to c" |
3526
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
248 merging c |
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
249 warning: conflicts while merging c! (edit, then use 'hg resolve --mark') |
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
250 unresolved merge conflicts (see hg help resolve) |
5666
e5d91fd1f319
tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents:
5275
diff
changeset
|
251 [240] |
3526
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
252 $ echo foobar > c |
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
253 $ hg resolve -m |
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
254 (no more unresolved files) |
4052
73e73471d6c6
pick: replace "grabstate" with "pickstate"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4049
diff
changeset
|
255 continue: hg pick --continue |
3526
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
256 |
6200
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
257 $ hg continue |
4049
25981fae92f9
pick: update command output to mention pick instead of grab
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4048
diff
changeset
|
258 note: picking 9:4e04628911f6 created no changes to commit |
3526
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
259 |
4053
ecbf61d90807
pick: replace `hg grab` invocation in test with `hg pick`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4052
diff
changeset
|
260 Testing the abort functionality of hg pick |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
261 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
262 $ echo foo > b |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
263 $ hg ci -Aqm "foo to b" |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
264 $ hg glog -r .^:: |
3526
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
265 @ 10:c437988de89f foo to b |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
266 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
267 o 8:44e155eb95c7 add c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
268 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
269 ~ |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
270 |
4053
ecbf61d90807
pick: replace `hg grab` invocation in test with `hg pick`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4052
diff
changeset
|
271 $ hg pick -r 7c15c05db6fa |
4049
25981fae92f9
pick: update command output to mention pick instead of grab
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4048
diff
changeset
|
272 picking 5:7c15c05db6fa "add b" |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
273 merging b |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
274 warning: conflicts while merging b! (edit, then use 'hg resolve --mark') |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
275 unresolved merge conflicts (see hg help resolve) |
5666
e5d91fd1f319
tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents:
5275
diff
changeset
|
276 [240] |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
277 |
6200
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
278 #if abortcontinuecommand |
4800
fa534a8c5863
pick: added support for hg abort
Taapas Agrawal <taapas2897@gmail.com>
parents:
4687
diff
changeset
|
279 $ hg abort --dry-run |
fa534a8c5863
pick: added support for hg abort
Taapas Agrawal <taapas2897@gmail.com>
parents:
4687
diff
changeset
|
280 pick in progress, will be aborted |
fa534a8c5863
pick: added support for hg abort
Taapas Agrawal <taapas2897@gmail.com>
parents:
4687
diff
changeset
|
281 #endif |
fa534a8c5863
pick: added support for hg abort
Taapas Agrawal <taapas2897@gmail.com>
parents:
4687
diff
changeset
|
282 $ hg abort |
6128
10ccdee05ec0
pick: show abort message after pick is aborted for consistency
Anton Shestakov <av6@dwimlabs.net>
parents:
6079
diff
changeset
|
283 pick aborted |
10ccdee05ec0
pick: show abort message after pick is aborted for consistency
Anton Shestakov <av6@dwimlabs.net>
parents:
6079
diff
changeset
|
284 working directory is now at c437988de89f |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
285 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
286 $ hg glog |
3526
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
287 @ 10:c437988de89f foo to b |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
288 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
289 o 8:44e155eb95c7 add c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
290 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
291 o 7:2ccc03d1d096 foo to c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
292 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
293 | o 5:7c15c05db6fa add b |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
294 |/ |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
295 o 4:d46dc301d92f add y |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
296 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
297 o 3:8e224524cd09 add x |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
298 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
299 o 0:1f0dee641bb7 add a |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
300 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
301 |
4484
302cd64f71e1
tests: rename test-grab to test-pick
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4232
diff
changeset
|
302 Trying to pick a public changeset |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
303 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
304 $ hg phase -r 7c15c05db6fa -p |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
305 |
4053
ecbf61d90807
pick: replace `hg grab` invocation in test with `hg pick`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4052
diff
changeset
|
306 $ hg pick -r 7c15c05db6fa |
4049
25981fae92f9
pick: update command output to mention pick instead of grab
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4048
diff
changeset
|
307 abort: cannot pick public changesets: 7c15c05db6fa |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
308 (see 'hg help phases' for details) |
5970
65d4e47d7f26
rewriteutil: use precheck from core if recent enough
Martin von Zweigbergk <martinvonz@google.com>
parents:
5666
diff
changeset
|
309 [10] |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
310 |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
311 $ hg glog |
3526
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
312 @ 10:c437988de89f foo to b |
3453
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
313 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
314 o 8:44e155eb95c7 add c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
315 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
316 o 7:2ccc03d1d096 foo to c |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
317 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
318 | o 5:7c15c05db6fa add b |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
319 |/ |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
320 o 4:d46dc301d92f add y |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
321 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
322 o 3:8e224524cd09 add x |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
323 | |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
324 o 0:1f0dee641bb7 add a |
32ed5b6fadd3
grab: add a command to grab a commit and update to it
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
325 |
4484
302cd64f71e1
tests: rename test-grab to test-pick
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4232
diff
changeset
|
326 Checking phase preservation while picking secret changeset |
3474
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
327 |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
328 In case of merge conflicts |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
329 |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
330 $ hg phase -r 7c15c05db6fa -s -f |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
331 |
4053
ecbf61d90807
pick: replace `hg grab` invocation in test with `hg pick`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4052
diff
changeset
|
332 $ hg pick -r 7c15c05db6fa |
4049
25981fae92f9
pick: update command output to mention pick instead of grab
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4048
diff
changeset
|
333 picking 5:7c15c05db6fa "add b" |
3474
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
334 merging b |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
335 warning: conflicts while merging b! (edit, then use 'hg resolve --mark') |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
336 unresolved merge conflicts (see hg help resolve) |
5666
e5d91fd1f319
tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents:
5275
diff
changeset
|
337 [240] |
3474
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
338 |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
339 $ echo bar > b |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
340 $ hg resolve -m |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
341 (no more unresolved files) |
4052
73e73471d6c6
pick: replace "grabstate" with "pickstate"
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4049
diff
changeset
|
342 continue: hg pick --continue |
3474
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
343 |
6200
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
344 $ hg continue |
3474
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
345 $ hg phase -r . |
3526
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
346 11: secret |
3474
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
347 |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
348 No merge conflicts |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
349 |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
350 $ hg up d46dc301d92f |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
351 0 files updated, 0 files merged, 3 files removed, 0 files unresolved |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
352 $ echo foo > l |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
353 $ hg add l |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
354 $ hg ci -qm "added l" --secret |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
355 |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
356 $ hg phase -r . |
3526
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
357 12: secret |
3474
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
358 |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
359 $ hg glog |
3526
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
360 @ 12:508d572e7053 added l |
3474
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
361 | |
3526
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
362 | o 11:10427de9e26e add b |
3474
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
363 | | |
3526
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
364 | o 10:c437988de89f foo to b |
3474
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
365 | | |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
366 | o 8:44e155eb95c7 add c |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
367 | | |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
368 | o 7:2ccc03d1d096 foo to c |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
369 |/ |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
370 o 4:d46dc301d92f add y |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
371 | |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
372 o 3:8e224524cd09 add x |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
373 | |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
374 o 0:1f0dee641bb7 add a |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
375 |
3526
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
376 $ hg up 10427de9e26e |
3474
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
377 3 files updated, 0 files merged, 1 files removed, 0 files unresolved |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
378 |
4053
ecbf61d90807
pick: replace `hg grab` invocation in test with `hg pick`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4052
diff
changeset
|
379 $ hg pick -r 508d572e7053 |
4049
25981fae92f9
pick: update command output to mention pick instead of grab
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4048
diff
changeset
|
380 picking 12:508d572e7053 "added l" |
3474
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
381 |
05fe5239fca2
tests: add a test showing grabbing of secret changeset turn it into draft
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3473
diff
changeset
|
382 $ hg phase -r . |
3526
df20ddc79064
grab: move the initialization of pctx variable outside of if-else
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3522
diff
changeset
|
383 13: secret |
6553
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
384 |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
385 Pick rewrites node hashes in commit description |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
386 |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
387 $ echo 'hg pick rewrites hashes 1' > l |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
388 $ hg ci -m '1705aa17bfed is my parent' |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
389 $ echo 'hg pick rewrites hashes 2' > l |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
390 $ hg ci -m 'f9ed1703aa00 is my parent' |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
391 |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
392 $ hg glog -r .^^:: |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
393 @ 15:e3cb66090723 f9ed1703aa00 is my parent |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
394 | |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
395 o 14:f9ed1703aa00 1705aa17bfed is my parent |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
396 | |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
397 o 13:1705aa17bfed added l |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
398 | |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
399 ~ |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
400 |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
401 $ hg up -q c437988de89f |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
402 $ hg pick 13 |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
403 picking 13:1705aa17bfed "added l" |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
404 2 new orphan changesets |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
405 $ hg pick 14 |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
406 picking 14:f9ed1703aa00 "1705aa17bfed is my parent" |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
407 $ hg pick 15 |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
408 picking 15:e3cb66090723 "f9ed1703aa00 is my parent" |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
409 |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
410 $ hg glog -r .^^:: |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
411 @ 18:5825531d1322 7a6997f82fbe is my parent |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
412 | |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
413 o 17:7a6997f82fbe fb6281ea03e8 is my parent |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
414 | |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
415 o 16:fb6281ea03e8 added l |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
416 | |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
417 ~ |
50f55918b417
pick: update commit message hashes like other rewrite commands
Matt Harbison <matt_harbison@yahoo.com>
parents:
6262
diff
changeset
|
418 |
4485
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
419 $ cd .. |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
420 |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
421 Check pick behavior regarding working copy branch (issue6089) |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
422 ------------------------------------------------------------- |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
423 |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
424 The branch of the picked changeset should be preserved, and the working copy updated |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
425 |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
426 $ hg init issue6089 |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
427 $ cd issue6089 |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
428 |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
429 $ touch a |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
430 $ hg add a |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
431 $ hg ci -m 'first commit on default' |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
432 |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
433 $ hg branch foo |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
434 marked working directory as branch foo |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
435 (branches are permanent and global, did you want a bookmark?) |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
436 $ touch b |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
437 $ hg add b |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
438 $ hg ci -m 'first commit on foo' |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
439 |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
440 $ hg up default |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
441 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
442 $ echo test > a |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
443 $ hg ci -m 'second commit on default' |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
444 $ hg log -G --template '{node|short}: {branch}\n' --rev 'all()+wdir()' |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
445 o ffffffffffff: default |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
446 | |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
447 @ 5f07cbf7d111: default |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
448 | |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
449 | o 96bb2057779e: foo |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
450 |/ |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
451 o d03a6bcc83cd: default |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
452 |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
453 |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
454 $ hg pick 1 |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
455 picking 1:96bb2057779e "first commit on foo" |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
456 $ hg log --template '{branch}\n' -r tip |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
457 foo |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
458 $ hg branch |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
459 foo |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
460 $ hg log -G --template '{node|short}: {branch}\n' --rev 'all()+wdir()' |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
461 o ffffffffffff: foo |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
462 | |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
463 @ 5344a77549bd: foo |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
464 | |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
465 o 5f07cbf7d111: default |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
466 | |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
467 o d03a6bcc83cd: default |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
468 |
e3785a8d0712
pick: update working dir branch (issue6089)
Manuel Jacob <me@manueljacob.de>
parents:
4484
diff
changeset
|
469 $ cd .. |
4686
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
470 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
471 Check that pick doesn't drop files after conflicts occur (issue6037) |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
472 -------------------------------------------------------------------- |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
473 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
474 $ hg init issue6037 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
475 $ cd issue6037 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
476 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
477 $ echo apple > a |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
478 $ hg ci -qAm 'apple' |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
479 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
480 $ echo apricot > a |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
481 $ echo banana > b |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
482 $ hg ci -qAm 'apricot and banana' |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
483 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
484 $ echo avocado > a |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
485 $ hg ci -m 'avocado' |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
486 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
487 $ hg glf |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
488 @ 2: avocado (a) |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
489 | |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
490 o 1: apricot and banana (a b) |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
491 | |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
492 o 0: apple (a) |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
493 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
494 Now let's change order of 1 and 2 using pick command |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
495 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
496 $ hg up -r 0 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
497 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
498 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
499 We avoid merge conflict here just to make the test shorter |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
500 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
501 $ hg pick -r 2 --tool :other |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
502 picking 2:f08a1e4a33c4 "avocado" |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
503 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
504 Now we pick revision 1 that touches two files (a and b), merge conflict is expected |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
505 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
506 $ hg pick -r 1 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
507 picking 1:892e123ebf62 "apricot and banana" |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
508 merging a |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
509 warning: conflicts while merging a! (edit, then use 'hg resolve --mark') |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
510 unresolved merge conflicts (see hg help resolve) |
5666
e5d91fd1f319
tests: update with more detailed exit codes
Martin von Zweigbergk <martinvonz@google.com>
parents:
5275
diff
changeset
|
511 [240] |
4686
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
512 $ hg resolve -t :other a |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
513 (no more unresolved files) |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
514 continue: hg pick --continue |
6200
ceab1399302c
pick: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents:
6128
diff
changeset
|
515 $ hg continue |
4686
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
516 |
4687
313565dd75e3
pick: remove transaction on the whole command (issue6037)
Anton Shestakov <av6@dwimlabs.net>
parents:
4686
diff
changeset
|
517 Demonstrate that b was not forgotten and is definitely included in 4 |
4686
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
518 |
4687
313565dd75e3
pick: remove transaction on the whole command (issue6037)
Anton Shestakov <av6@dwimlabs.net>
parents:
4686
diff
changeset
|
519 $ hg status b -A |
313565dd75e3
pick: remove transaction on the whole command (issue6037)
Anton Shestakov <av6@dwimlabs.net>
parents:
4686
diff
changeset
|
520 C b |
4686
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
521 $ hg glf |
4687
313565dd75e3
pick: remove transaction on the whole command (issue6037)
Anton Shestakov <av6@dwimlabs.net>
parents:
4686
diff
changeset
|
522 @ 4: apricot and banana (a b) |
4686
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
523 | |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
524 o 3: avocado (a) |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
525 | |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
526 o 0: apple (a) |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
527 |
f1466f5ffbf5
tests: demonstrate hg pick forgetting files after conflicts
Anton Shestakov <av6@dwimlabs.net>
parents:
4491
diff
changeset
|
528 $ cd .. |