feature proposal: named branches without named branches
Arne Babenhauserheide
arne_bab at web.de
Thu Nov 17 23:42:20 UTC 2016
Arne Babenhauserheide writes:
> # create repo with wrong branch name
> hg init foo
> cd foo
> echo 1 > 1
> hg ci -Am 1
> echo stable > 1
> hg branch stapling
> hg ci -m stable
> echo stable2 > 1
> hg ci -m stable2
> # change the initial choice of the branch name
> hg up 1
> hg branch stable
> hg amend # notes that there is an unstable changeset
A more canonical version uses
hg ci --amend -m stable
but this requires giving the message again (or confirming it in the editor).
> # evolve the history
> hg evolve
> # and check that it’s correct
> hg glog
More canonical would be
hg log -G
I now published the canonical version on my website:
http://www.draketo.de/english/mercurial/rename-branch-evolve
Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein
ohne es zu merken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20161118/8aa9e4b7/attachment.asc>
More information about the Mercurial
mailing list