some more doc update
diff --git a/doc/evolve-tutorial.rst b/doc/evolve-tutorial.rst --- a/doc/evolve-tutorial.rst +++ b/doc/evolve-tutorial.rst @@ -122,7 +122,10 @@ When you rewrite changeset with children create *unstable* changeset and *suspended obsolete* changeset .. warning:: ``hg stabilize`` have no --continue to use after conflict - resolution + resolution. is conflict occurs use:: + + $ hg up -C . # cancel the failed merge + $ hg stabilize -n # go get a command to execute .. warning:: stabilization does not handle deletion yet. @@ -168,6 +171,11 @@ version available here: $ hg clone http://hg-dev.octopoid.net/hgwebdir.cgi/hgview/ +Prevent my unfinished changeset to get published +------------------------------------------------------------ + +The easiest way is to set them in the private phase + Important Note ===================================================================== diff --git a/doc/from-mq.rst b/doc/from-mq.rst --- a/doc/from-mq.rst +++ b/doc/from-mq.rst @@ -1,26 +1,31 @@ Moving from mq to hg-evolution =============================== +Cheat sheet +------------- -quick reference: +============================== ============================================ +mq command new equivalent +============================== ============================================ -mq command equivalent +qseries ``log`` +qnew ``commit`` +qrefresh ``amend`` +qpop ``update`` or ``qdown`` +qpush ``update`` or ``gup`` sometimes ``stabilize`` +qrm ``kill`` +qfold ``amend -c`` (for now, ``collapse`` soon) +qdiff ``odiff`` -hg qseries hg log -hg qnew hg commit -hg qrefresh hg amend -hg qpop hg update -hg qpush hg graft or rebase -hg qrm hg kill -hg qfold hg collapse -hg qdiff hg diff +qfinish -- +qimport -- -hg qfinish -- -hg qimport -- +Replacement details +--------------------- hg qseries ------------ +``````````` All your work in progress are now real changeset all the time. @@ -28,27 +33,22 @@ You can then use standard log to display display unfinished business only and template to have the same kind of compact output qseries have. -This will result in something like that - - $ hg log -r 'not public()' --template='{rev}:{node|short} {description|firstline}\n' +This will result in something like that:: [alias] wip = log -r 'not public()' --template='{rev}:{node|short} {description|firstline}\n' hg qnew --------- +```````` -With evolution you handle standard changeset without additional overlay. +With evolve you handle standard changeset without additional overlay. Standard changeset are created using hg commit as usual. $ hg commit If you want to keep the "wip are not pushed" behavior, you are looking for -setting your changeset in the secret phase. This can be achieved with the following sequence: - - $ hg phase --secret - $ hg commit +setting your changeset in the secret phase using the phase command. Note that you only need it for the first commit you want to be secret. Later commit will inherit their parents phase. @@ -60,15 +60,16 @@ consider updating your configuration: new-commit=secret hg qref --------- +```````` A new command from evolution will allow you to rewrite the changeset you are -current on. just invoc: +currently on. just call: $ hg amend This command takes the same option than commit plus useful switch '-e' (--edit) +to edit the commit message. Amend have also a -c switch which allow you to make and explicit amending commit before rewriting a changeset. @@ -80,16 +81,22 @@ commit before rewriting a changeset. note: refresh is an alias for amend +hg qpop +````````` -hg qpop ---------- +the following command emule the behavior of hg qpop: -If you need to go back to a previous state just: + $ hg gdown + +If you need to go back to an arbitrary commit you can just us: $ hg update +.. note:: gdown and update allow movement with working directory changes applied + and gracefully merge them. + hg qpush --------- +```````` When you rewrite changeset, descendant of rewritten changeset are marked as "out of sync". You new to rewrite them on top of the new version of their @@ -97,7 +104,7 @@ ancestor. The evolution extension add a command to rewrite the next changeset: - $ hg evolve + $ hg stabilize You can also decide to do it manually using @@ -112,26 +119,38 @@ option of qpush do. hg qrm -------- +``````` evolution introduce a new command to mark a changeset as "not wanted anymore". $ hg kill <revset> hg qfold ---------- +````````` +:: + + $ hg up <top changeset> + $ amend --edit -c <bottom changeset> + + +or later:: + $ hg collapse # XXX not implemented $ hg rebase --collapse # XXX not tested hg qdiff ---------- +````````` +``odiff`` is an alias for `hg diff -r .^` it works as qdiff event outside mq. - $ hg diff -r .^ +hg qfinish and hg qimport +```````````````````````````` +Is not useful anymore if you want to controll exchange and mutability of +changeset see the phase feature