I have created a branch and tag with the same name: 0.2.0. I have encountered some problems with merging, but managed to overcome them, using -r and providing explicit revision. So it is not my question what to do. Rather I would like to know: is it a suggested to have a different names for a branch and a tag, when a new version is produced? Are there any standard names for those tags and branches?
Share
I would tag the code with version numbers like you do, e.g.,
1.0,2.0and so on. For maintenance branches I would use1.x,2.x, etc.The
1.1tag would then be made on the1.xbranch and the1.0changeset is the fork point for the1.xbranch. It is not on the branch since you only create the1.xbranch when you need to make a1.1bugfix release.Finally, you can use the revset language to distinguish between a tag and a branch: