How to mark a specific folder in the source tree?

I am using the mercurial command line and I cannot find out how to mark a specific folder. My source repository consists of different libraries, so I would like to tag them separately.
I also mistakenly tagged the entire source tree, so I would like to know how to remove a tag before creating a new tag.

+4
source share
2 answers

According to Lasse, you can only flag the revision of the entire repository in Mercurial. To tag the various components in your repository, you might consider using Mercurial Subrepositories . Subrepositories allow you to consider individual components (what you call libraries) as independent repositories, and combine them into a single functional unit.

In terms of the BitBucket restriction for private repositories, you might want to make some of them publicly available or host the main repository on your local computer or server if you are interested in publishing the source publicly. If you are interested in hosting something yourself, Redmine is a good free tool that will allow you to serve as many repositories as you want.

+2
source

You can only tag a revision, not a specific file or folder.

To erase the tag, run the following command:

hg tag --remove TAG 

To move a tag to another version:

 hg tag --force TAG --rev REV 

Please note that in both cases you will create a new set of changes on top of the one you are on, you cannot destroy the commit created when the original tag was created.

+3
source

All Articles