annotate docs/from-mq.rst @ 5740:35b883a4ff5a stable 10.2.0

packaging: update the debian changelog
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 31 Jan 2021 17:08:40 +0800
parents 0257716d1f22
children aad3ee70a0bb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
51 hg qnew
1287
6f2c1574eda8 docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents: 655
diff changeset
52 ```````
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
53
228
5a17c0d41a00 proof-read documentation and docstrings
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents: 227
diff changeset
54 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
55
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
56 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
57
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
58 .. code-block:: console
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
59
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
60 $ hg commit
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
61
357
b398e9c2dbd1 doc: English proofreading
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 325
diff changeset
62 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
63 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
64
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
65 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
66 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
67
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
68 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
69 consider updating your configuration
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
70
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
71 .. code-block:: ini
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
72
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
73 [phases]
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
74 new-commit = secret
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
75
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
76 hg qref
1287
6f2c1574eda8 docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents: 655
diff changeset
77 ```````
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
78
228
5a17c0d41a00 proof-read documentation and docstrings
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents: 227
diff changeset
79 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
80 currently on. Just call
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
81
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
82 .. code-block:: console
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
83
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
84 $ hg amend
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
85
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
86 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
87 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
88
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
89
500
4387e62bd4f4 Doc: several update
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 492
diff changeset
90 .. -c is very confusig
4387e62bd4f4 Doc: several update
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 492
diff changeset
91 ..
517
0bc0c9edcb15 evolve: usual syntax/grammar errors/long lines cleanup
Patrick Mezard <patrick@mezard.eu>
parents: 500
diff changeset
92 .. 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
93 .. explicit amending commit before rewriting a changeset.::
4387e62bd4f4 Doc: several update
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 492
diff changeset
94 ..
4387e62bd4f4 Doc: several update
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 492
diff changeset
95 .. $ hg record -m 'feature A'
517
0bc0c9edcb15 evolve: usual syntax/grammar errors/long lines cleanup
Patrick Mezard <patrick@mezard.eu>
parents: 500
diff changeset
96 .. # oups, I forgot some stuff
500
4387e62bd4f4 Doc: several update
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 492
diff changeset
97 .. $ hg record babar.py
1654
d1c5d80b2ace Spelling: directory
timeless@gmail.com
parents: 1287
diff changeset
98 .. $ 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
99
642
f8c75459e8bd doc: updates mq refugee book
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 538
diff changeset
100 .. 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
101
642
f8c75459e8bd doc: updates mq refugee book
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 538
diff changeset
102 hg qref --exclude
1287
6f2c1574eda8 docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents: 655
diff changeset
103 `````````````````
325
43a686709ded doc: readme and uncommit reference
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 232
diff changeset
104
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
105 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
106
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
107 .. code-block:: console
325
43a686709ded doc: readme and uncommit reference
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 232
diff changeset
108
43a686709ded doc: readme and uncommit reference
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 232
diff changeset
109 $ hg uncommit not-ready.txt
43a686709ded doc: readme and uncommit reference
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 232
diff changeset
110
43a686709ded doc: readme and uncommit reference
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 232
diff changeset
111
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
112 hg qpop
1287
6f2c1574eda8 docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents: 655
diff changeset
113 ```````
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
114
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
115 To emulate the behavior of ``qpop`` use
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
116
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
117 .. code-block:: console
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
118
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
119 $ hg previous
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
120
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
121 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
122
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
123 .. code-block:: console
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
124
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
125 $ hg update
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
126
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
127 .. 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
128 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
129
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
130 .. note:: Previous versions of the documentation recommended
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
131 the deprecated gdown command
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
132
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
133 hg qpush
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
134 ````````
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 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
137
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
138 .. code-block:: console
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
139
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
140 $ hg next
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
141
182
33b9cb1ce659 docs: polishing of from-mq.
Arne Babenhauserheide <bab@draketo.de>
parents: 161
diff changeset
142 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
143 "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
144 ancestor.
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
145
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
146 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
147
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
148 .. code-block:: console
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
149
492
7ecd41520dae rename `stabilize` to `evolve`
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 377
diff changeset
150 $ hg evolve
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
151
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
152 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
153
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
154 .. code-block:: console
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
155
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
156 $ hg pick OLD_VERSION
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
157
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
158 or
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
159
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
160 .. code-block:: console
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
161
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
162 $ 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
163
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
164 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
165 option of ``qpush`` does.
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
166
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
167
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
168 hg qrm
1287
6f2c1574eda8 docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents: 655
diff changeset
169 ``````
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
170
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
171 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
172
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
173 .. code-block:: console
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
174
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
175 $ hg prune REVSET
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
176
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
177 hg qfold
1287
6f2c1574eda8 docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents: 655
diff changeset
178 ````````
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
179
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
180 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
181
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
182 .. code-block:: console
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
183
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
184 $ hg fold FIRST::LAST
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
185
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
186 hg qdiff
1287
6f2c1574eda8 docs: fix slightly unconventional .rst markup
Greg Ward <greg@gerg.ca>
parents: 655
diff changeset
187 ````````
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
188
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
189 ``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
190
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 hg qimport
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
193 ``````````
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
194
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
195 To import a new patch, use
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
196
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
197 .. code-block:: console
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
198
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
199 $ hg import NEW_CHANGES.patch
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 hg qfinish
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
202 ``````````
161
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
203
5724
0257716d1f22 doc: update MQ To Evolve refugee book
Chuck Tuffli <chuck@tuffli.net>
parents: 4618
diff changeset
204 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
205 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
206
4e3f25ba5401 More doc and index with sphynx
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff changeset
207 hg qcommit
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
182
33b9cb1ce659 docs: polishing of from-mq.
Arne Babenhauserheide <bab@draketo.de>
parents: 161
diff changeset
210 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
211 look at the qsync extension.