I'm just playing with Mercurial at the moment, and this may never occur as a problem, but I just created a repository and added some changes. I tagged it at some point, and then created a named branch in another. Both the tag and the branch have the same name. If I do an hg update name , it will switch to the tagged version. Is there any way to switch to a branch other than using the revision number on the branch?
I think that made me think that if we wrote some scripts to automatically create a specific version, we would just want to specify either a tag or a branch for assembly. If someone used the same name in the tag and branch, we would run into problems with the script getting the correct changes. This is the only solution for this to make sure they are unique, for example. by a pre-installed branch or tag to a name?
version-control branch dvcs repository mercurial
Davejohnston
source share