One wishes to move changesets on trunk (starting with revision A onwards) to a new branch B.
- Enable the Rebase extension for you / the repository per the RebaseExtension docs
- If outstanding changes, commit or shelve them!
(otherwise next step will generate merge request) hg update <A-1>
(the one before you wish to move to branch B)hg branch B
hg status
confirm output has no actual changes (branch change won't be shown)hg commit -m 'create B'
hg branches
get actual revision for B, we'll call it Chg rebase -s A -d C
No comments:
Post a Comment