comparison docs/evolve-faq.rst @ 500:4387e62bd4f4 stable

Doc: several update
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Fri, 24 Aug 2012 12:47:12 +0200
parents 7ecd41520dae
children 0bc0c9edcb15
comparison
equal deleted inserted replaced
499:a9c27df23129 500:4387e62bd4f4
17 changeset combining working-directory parent changes and parent. It 17 changeset combining working-directory parent changes and parent. It
18 will work on any `draft` or `secret` changeset. It will not work on 18 will work on any `draft` or `secret` changeset. It will not work on
19 `public` changesets. 19 `public` changesets.
20 20
21 To understand what the result of amend will be I use the two following 21 To understand what the result of amend will be I use the two following
22 aliases [#]_:: 22 aliases [#]_::
23 23
24 # diff what amend will look likes 24 # diff what amend will look likes
25 pdiff=diff --rev .^ 25 pdiff=diff --rev .^
26 26
27 # status what amend will look likes 27 # status what amend will look likes
39 on the command line. 39 on the command line.
40 40
41 XXX add idank example 41 XXX add idank example
42 42
43 43
44 .. [#] (added by enable.sh) 44 .. [#] (defined by the evolve extension for you)
45 45
46 46
47 47
48 Move a changeset: ``graft`` 48 Move a changeset: ``graft``
49 ------------------------------------------------------------ 49 ------------------------------------------------------------
86 directory parent commit. 86 directory parent commit.
87 87
88 .. note:: those command only exist for the convenience of getting qpush and qpop 88 .. note:: those command only exist for the convenience of getting qpush and qpop
89 feeling back. 89 feeling back.
90 90
91 Collapse changesets: ``amend`` 91 Collapse changesets: ``fold``
92 ------------------------------------------------------------ 92 ------------------------------------------------------------
93 93
94 you can use amend -c to collapse multiple changeset in a single one. 94 you can use ``hg fold`` to collapse multiple changeset in a single one.
95 95
96 Getting changes out of a commit 96 Getting changes out of a commit
97 ------------------------------------------------------------ 97 ------------------------------------------------------------
98 98
99 The ``hg uncommit`` command lets you rewrite the parent commit without 99 The ``hg uncommit`` command lets you rewrite the parent commit without
150 You can still use rebase to move a whole segment of the changeset graph together. 150 You can still use rebase to move a whole segment of the changeset graph together.
151 151
152 .. warning:: Beware that rebasing obsolete changesets will result in 152 .. warning:: Beware that rebasing obsolete changesets will result in
153 conflicting versions of the changesets. 153 conflicting versions of the changesets.
154 154
155 Stabilize history: ``evolve`` 155 Resolve history troubles: ``evolve``
156 ------------------------------------------------------------ 156 ------------------------------------------------------------
157 157
158 When you rewrite (amend) a changeset with children without rewriting 158 When you rewrite (amend) a changeset with children without rewriting
159 those children you create *unstable* changesets and *suspended 159 those children you create *unstable* changesets and *suspended
160 obsolete* changesets. 160 obsolete* changesets.
189 odiff = diff --rev 'limit(precursors(.),1)' --rev . 189 odiff = diff --rev 'limit(precursors(.),1)' --rev .
190 190
191 View obsolete markers 191 View obsolete markers
192 ------------------------------------------------------------ 192 ------------------------------------------------------------
193 193
194 hgview is the only viewer that support this feature. You need an experimental 194 hgview_ is the only viewer that currently support this feature. You need version 1.6.2
195 version available here: 195
196 196 .. _hgview: http://www.logilab.org/project/hgview/
197 $ hg clone http://hg-dev.octopoid.net/hgwebdir.cgi/hgview/ 197
198 .. image:: figures/hgview-example.png
199 :scale: 50%
200
198 201
199 You can also use a debug command 202 You can also use a debug command
200 203
201 $ hg debugobsolete 204 $ hg debugobsolete
202 5eb72dbe0cb4 e8db4aa611f6 205 5eb72dbe0cb4 e8db4aa611f6