move changes to branch retroactively?

Arne Babenhauserheide arne_bab at web.de
Thu Jan 8 17:56:21 UTC 2015


Am Donnerstag, 8. Januar 2015, 10:01:32 schrieb Matthew Turk:
> What I would do is basically that -- someone else might have a better
> suggestion, though.  I would update to where I want the new branch.  Create
> it.  Commit.  Then, "hg rebase -d . -s 1116" which rebases onto current
> revision, starting at revision 1116 and all its descendants.

I would use graft instead of rebase - that’s much easier to use.

hg update (revision to start the branch at)
hg branch (branchname)
hg graft 1116 1117

Best wishes,
Arne
--
singing a part of the history of free software: 

- http://infinite-hands.draketo.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 299 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20150108/23cbf6ff/attachment.asc>


More information about the Mercurial mailing list