Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the purpose of having .hgtags

Tags:

mercurial

May I know what is the purpose of having .hgtags? Can I remove it? As it is not in .hg folder, and seems "pollute" my actual source code directory.

https://bz.mercurial-scm.org/show_bug.cgi?id=1205

like image 526
Cheok Yan Cheng Avatar asked Dec 17 '10 16:12

Cheok Yan Cheng


People also ask

What is the purpose of tagging?

…of graffiti, known as “tagging,” which entailed the repeated use of a single symbol or series of symbols to mark territory. In order to attract the most attention possible, this type of graffiti usually appeared in strategically or centrally located neighbourhoods.

Why AWS tagging is important?

Tags enable you to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. This is useful when you have many resources of the same type—you can quickly identify a specific resource based on the tags that you've assigned to it.

What is the primary purpose of tagging customer feedback?

Using tags to categorize customer feedback makes it possible to understand qualitative data. This process is essential for understanding your customers' issues, gaining actionable insights, and taking your customer service to the next level. Customers leave more feedback than ever before.

Are YouTube tags important?

Tags are considered an important ranking factor in YouTube's search algorithm. Why are Tags Important? Like any piece of metadata, your tags are an opportunity to give YouTube and Google information about your video… including your video's topic, category, and more.


1 Answers

$ hg tag --help
hg tag [-f] [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...

add one or more tags for the current or given revision

    ...

    To facilitate version control, distribution, and merging of tags,
    they are stored as a file named ".hgtags" which is managed
    similarly to other project files and can be hand-edited if
    necessary. The file '.hg/localtags' is used for local tags (not
    shared among repositories).

    ...

From the issue you linked:

Mercurial currently has a very nice separation between things which are not version-controlled and things that are which this would ruin.

Because .hgtags is version-controlled, it is not in .hg. Compare to .hg/hgrc (in .hg; not version-controlled) and .hgignore (not in .hg; version-controlled).

like image 79
Fred Nurk Avatar answered Sep 29 '22 20:09

Fred Nurk