Mercurial > evolve
annotate docs/from-mq.rst @ 6934:dd518437d4e0 stable
tests: introduce a compat-branches blacklist file
The idea behind this file is to have an easy and obvious mechanism for skipping
some tests on compatibility branches without modifying the test files
themselves or touching .gitlab-ci.yml.
Obviously, each compatibility branch can have different set of tests, and so
the contents of this file can be different on different branches.
This concept had actually existed in core for a long time, see
tests/blacklists/ directory.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 16 Nov 2024 17:59:53 +0400 |
parents | 87006dcf2bb7 |
children |
rev | line source |
---|---|
519
9825c7da5b54
ensure all file have a copyright notice
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
517
diff
changeset
|
1 .. Copyright 2011 Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
9825c7da5b54
ensure all file have a copyright notice
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
517
diff
changeset
|
2 .. Logilab SA <contact@logilab.fr> |
527
b81193ef3488
docs: add missing blank line after Copyright notice
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
519
diff
changeset
|
3 |
1287
6f2c1574eda8
docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents:
655
diff
changeset
|
4 ----------------------------------- |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
5 From MQ To Evolve, The Refugee Book |
1287
6f2c1574eda8
docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents:
655
diff
changeset
|
6 ----------------------------------- |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
7 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
8 Cheat sheet |
1287
6f2c1574eda8
docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents:
655
diff
changeset
|
9 ----------- |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
10 |
228
5a17c0d41a00
proof-read documentation and docstrings
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
227
diff
changeset
|
11 ============================== ============================================ |
5a17c0d41a00
proof-read documentation and docstrings
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
227
diff
changeset
|
12 mq command new equivalent |
5a17c0d41a00
proof-read documentation and docstrings
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
227
diff
changeset
|
13 ============================== ============================================ |
5a17c0d41a00
proof-read documentation and docstrings
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
227
diff
changeset
|
14 qseries ``log`` |
5a17c0d41a00
proof-read documentation and docstrings
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
227
diff
changeset
|
15 qnew ``commit`` |
5a17c0d41a00
proof-read documentation and docstrings
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
227
diff
changeset
|
16 qrefresh ``amend`` |
642
f8c75459e8bd
doc: updates mq refugee book
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
538
diff
changeset
|
17 qrefresh --exclude ``uncommit`` |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
18 qpop ``update`` or ``previous`` |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
19 qpush ``update`` or ``next`` sometimes ``evolve`` or ``pick`` |
373
8c92f65e0dcc
doc: fix weird quote in from-mq.rst
Patrick Mezard <patrick@mezard.eu>
parents:
366
diff
changeset
|
20 qrm ``prune`` |
538
63fd2a62cec4
doc improvement
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
527
diff
changeset
|
21 qfold ``fold`` |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
22 qdiff ``pdiff`` |
642
f8c75459e8bd
doc: updates mq refugee book
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
538
diff
changeset
|
23 qrecord ``record`` |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
24 qimport ``import`` |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
25 |
228
5a17c0d41a00
proof-read documentation and docstrings
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
227
diff
changeset
|
26 qfinish -- |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
27 qcommit -- |
232
adb7e29cb2bd
docs: proof-read and review
Benoit Allard <benoit@aeteurope.nl>
parents:
228
diff
changeset
|
28 ============================== ============================================ |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
29 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
30 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
31 Replacement details |
1287
6f2c1574eda8
docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents:
655
diff
changeset
|
32 ------------------- |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
33 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
34 hg qseries |
1287
6f2c1574eda8
docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents:
655
diff
changeset
|
35 `````````` |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
36 |
357
b398e9c2dbd1
doc: English proofreading
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
325
diff
changeset
|
37 All your work in progress is now in real changesets all the time. |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
38 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
39 You can use the standard ``log`` command to display them. You can use the |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
40 ``draft()`` (or ``secret()``) revset to display unfinished work only, and |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
41 use templates to have the same kind of compact that the output of |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
42 ``qseries`` has. |
228
5a17c0d41a00
proof-read documentation and docstrings
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
227
diff
changeset
|
43 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
44 This will result in something like |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
45 |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
46 .. code-block:: ini |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
47 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
48 [alias] |
208
05d6e3e36980
docs: fix broken alias for qseries
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
182
diff
changeset
|
49 wip = log -r 'not public()' --template='{rev}:{node|short} {desc|firstline}\n' |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
50 |
5797
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
51 Using the topic extension provides another way of looking at your |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
52 work in progress. Topic branches are lightweight branches which |
5798
87006dcf2bb7
doc: change topic phrase 'disappear' to 'fade out'
Chuck Tuffli <chuck@tuffli.net>
parents:
5797
diff
changeset
|
53 fade out when changes are finalized. Although the underlying |
5797
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
54 mechanics are different, both queues and topics help users |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
55 organize and share their unfinished work. The topic extension |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
56 provides the ``stack`` command. Similar to ``qseries``, ``stack`` |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
57 lists all changesets in a topic as well as other related |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
58 information. |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
59 |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
60 .. code-block:: console |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
61 |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
62 $ hg stack |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
63 |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
64 Installing the evolve extension also installs the topic extension. To enable |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
65 it, add the following to your `hgrc` config: |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
66 |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
67 .. code-block:: ini |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
68 |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
69 [extensions] |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
70 topic = |
aad3ee70a0bb
doc: document stack as a substitue for MQ's qseries
Chuck Tuffli <chuck@tuffli.net>
parents:
5724
diff
changeset
|
71 |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
72 hg qnew |
1287
6f2c1574eda8
docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents:
655
diff
changeset
|
73 ``````` |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
74 |
228
5a17c0d41a00
proof-read documentation and docstrings
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
227
diff
changeset
|
75 With evolve you handle standard changesets without an additional overlay. |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
76 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
77 Standard changeset are created using ``hg commit`` as usual |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
78 |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
79 .. code-block:: console |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
80 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
81 $ hg commit |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
82 |
357
b398e9c2dbd1
doc: English proofreading
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
325
diff
changeset
|
83 If you want to keep the "WIP is not pushed" behavior, you want to |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
84 set your changeset in the secret phase using the ``phase`` command. |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
85 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
86 Note that you only need it for the first commit you want to be secret. Later |
655
dd5765ae91c3
doc: fix grammar, spelling, punctuation
Greg Ward <greg@gerg.ca>
parents:
642
diff
changeset
|
87 commits will inherit their parent's phase. |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
88 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
89 If you always want your new commit to be in the secret phase, your should |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
90 consider updating your configuration |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
91 |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
92 .. code-block:: ini |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
93 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
94 [phases] |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
95 new-commit = secret |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
96 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
97 hg qref |
1287
6f2c1574eda8
docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents:
655
diff
changeset
|
98 ``````` |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
99 |
228
5a17c0d41a00
proof-read documentation and docstrings
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
227
diff
changeset
|
100 A new command from evolution will allow you to rewrite the changeset you are |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
101 currently on. Just call |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
102 |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
103 .. code-block:: console |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
104 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
105 $ hg amend |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
106 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
107 This command takes the same options as ``commit``, plus the switch ``-e`` (``--edit``) |
182
33b9cb1ce659
docs: polishing of from-mq.
Arne Babenhauserheide <bab@draketo.de>
parents:
161
diff
changeset
|
108 to edit the commit message in an editor. |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
109 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
110 |
500
4387e62bd4f4
Doc: several update
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
492
diff
changeset
|
111 .. -c is very confusig |
4387e62bd4f4
Doc: several update
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
492
diff
changeset
|
112 .. |
517
0bc0c9edcb15
evolve: usual syntax/grammar errors/long lines cleanup
Patrick Mezard <patrick@mezard.eu>
parents:
500
diff
changeset
|
113 .. The amend command also has a -c switch which allows you to make an |
500
4387e62bd4f4
Doc: several update
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
492
diff
changeset
|
114 .. explicit amending commit before rewriting a changeset.:: |
4387e62bd4f4
Doc: several update
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
492
diff
changeset
|
115 .. |
4387e62bd4f4
Doc: several update
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
492
diff
changeset
|
116 .. $ hg record -m 'feature A' |
517
0bc0c9edcb15
evolve: usual syntax/grammar errors/long lines cleanup
Patrick Mezard <patrick@mezard.eu>
parents:
500
diff
changeset
|
117 .. # oups, I forgot some stuff |
500
4387e62bd4f4
Doc: several update
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
492
diff
changeset
|
118 .. $ hg record babar.py |
1654 | 119 .. $ hg amend -c .^ # .^ refer to "working directory parent, here 'feature A' |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
120 |
642
f8c75459e8bd
doc: updates mq refugee book
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
538
diff
changeset
|
121 .. note: refresh is an alias for amend |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
122 |
642
f8c75459e8bd
doc: updates mq refugee book
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
538
diff
changeset
|
123 hg qref --exclude |
1287
6f2c1574eda8
docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents:
655
diff
changeset
|
124 ````````````````` |
325
43a686709ded
doc: readme and uncommit reference
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
232
diff
changeset
|
125 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
126 To remove changes from your current commit use |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
127 |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
128 .. code-block:: console |
325
43a686709ded
doc: readme and uncommit reference
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
232
diff
changeset
|
129 |
43a686709ded
doc: readme and uncommit reference
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
232
diff
changeset
|
130 $ hg uncommit not-ready.txt |
43a686709ded
doc: readme and uncommit reference
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
232
diff
changeset
|
131 |
43a686709ded
doc: readme and uncommit reference
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
232
diff
changeset
|
132 |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
133 hg qpop |
1287
6f2c1574eda8
docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents:
655
diff
changeset
|
134 ``````` |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
135 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
136 To emulate the behavior of ``qpop`` use |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
137 |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
138 .. code-block:: console |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
139 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
140 $ hg previous |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
141 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
142 If you need to go back to an arbitrary commit you can use |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
143 |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
144 .. code-block:: console |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
145 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
146 $ hg update |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
147 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
148 .. note:: previous and update allow movement with working directory |
655
dd5765ae91c3
doc: fix grammar, spelling, punctuation
Greg Ward <greg@gerg.ca>
parents:
642
diff
changeset
|
149 changes applied, and gracefully merge them. |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
150 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
151 .. note:: Previous versions of the documentation recommended |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
152 the deprecated gdown command |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
153 |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
154 hg qpush |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
155 ```````` |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
156 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
157 The following command emulates the behavior of ``hg qpush`` |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
158 |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
159 .. code-block:: console |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
160 |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
161 $ hg next |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
162 |
182
33b9cb1ce659
docs: polishing of from-mq.
Arne Babenhauserheide <bab@draketo.de>
parents:
161
diff
changeset
|
163 When you rewrite changesets, descendants of rewritten changesets are marked as |
4618
803d32f4e498
docs: change `unstable` references to `orphan`
Matt Harbison <matt_harbison@yahoo.com>
parents:
3599
diff
changeset
|
164 "orphan". You need to rewrite them on top of the new version of their |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
165 ancestor. |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
166 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
167 The evolution extension adds a command to rewrite "orphan" changesets |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
168 |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
169 .. code-block:: console |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
170 |
492
7ecd41520dae
rename `stabilize` to `evolve`
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
377
diff
changeset
|
171 $ hg evolve |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
172 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
173 You can also reorder a changeset using |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
174 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
175 .. code-block:: console |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
176 |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
177 $ hg pick OLD_VERSION |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
178 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
179 or |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
180 |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
181 .. code-block:: console |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
182 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
183 $ hg rebase -r REVSET_FOR_OLD_VERSION -d . |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
184 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
185 note: using ``pick`` allows you to choose the changeset you want next as the ``--move`` |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
186 option of ``qpush`` does. |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
187 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
188 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
189 hg qrm |
1287
6f2c1574eda8
docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents:
655
diff
changeset
|
190 `````` |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
191 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
192 evolution introduces a new command to mark a changeset as "not wanted anymore". |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
193 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
194 .. code-block:: console |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
195 |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
196 $ hg prune REVSET |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
197 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
198 hg qfold |
1287
6f2c1574eda8
docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents:
655
diff
changeset
|
199 ```````` |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
200 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
201 The following command emulates the behavior of ``qfold`` |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
202 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
203 .. code-block:: console |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
204 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
205 $ hg fold FIRST::LAST |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
206 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
207 hg qdiff |
1287
6f2c1574eda8
docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents:
655
diff
changeset
|
208 ```````` |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
209 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
210 ``pdiff`` is an alias for ``hg diff -r .^`` It works like ``qdiff``, but outside MQ. |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
211 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
212 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
213 hg qimport |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
214 `````````` |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
215 |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
216 To import a new patch, use |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
217 |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
218 .. code-block:: console |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
219 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
220 $ hg import NEW_CHANGES.patch |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
221 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
222 hg qfinish |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
223 `````````` |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
224 |
5724
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
225 This is not necessary anymore. If you want to control the |
0257716d1f22
doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents:
4618
diff
changeset
|
226 mutability of changesets, see the ``phase`` feature. |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
227 |
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
228 hg qcommit |
1287
6f2c1574eda8
docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents:
655
diff
changeset
|
229 `````````` |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
230 |
182
33b9cb1ce659
docs: polishing of from-mq.
Arne Babenhauserheide <bab@draketo.de>
parents:
161
diff
changeset
|
231 If you really need to send patches through versioned mq patches, you should |
161
4e3f25ba5401
More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
232 look at the qsync extension. |