_______________________________________________
Mercurial mailing list
Merc...@selenic.com
http://selenic.com/mailman/listinfo/mercurial
Short of rewriting half the repository, I don't think there is one: a branch
in mercurial is metadata attached to the commits themselves, so the best you
can do would be to:
1. Create a new branch from the old one with the correct name
2. Close the old branch so it does not appear in branch listings by default
commits made on the old branch will still have the old branchname though,
they will not be taking the new one.
(bookmarks, merely being movable pointers to a commit, can be renamed easily)
If you take this route you will still see test11, but there will also
be a new branch called default, so then its simple to do a final merge
with --close-branch.
HTH
Jeff
I have a repo where I am testing the idea of keeping 2 branches, 1 is the
upstream vendor updates, and the other is my local changes on top of them.
I have a branch called 'default', which is actually my upstream vendor branch.
I have a branch called 'test11', which really is my local changes, and I really
want that to be 'default'.
Here's what I tried:
First a made a new clean repo using clone.
Then in that repo I made a new branch 'vendor'.
Then I copied a newer vendor source version on top of these files.
Then addremove, and ci -m 'update to ...'. Now I have a vendor branch with
updated vendor source.
Then I update to default (that was my old vendor branch).
Then merge with test11, pulling all my local changes into default.
Finally, merge with 'vendor', pulling the new vendor changes into my default.
I think that's got it. Does this sound correct?
Props to the HG devs for the convert command and the maintaing of
history, great feature!