HG(TAG)
πΈ HG(TAG) πΈ
okay bestie, welcome to the hg tag page π this is the Mercurial tag manual β the one that tells you how to slap a name on a revision so future-you actually knows what's going on. let's get into it.
β¨ NAME β¨
hg tag β add one or more tags for the current or given revision π
π¦ SYNOPSIS π¦
hg tag [-f] [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...
π DESCRIPTION π
So the whole vibe is: you're naming a particular revision using name. That's it. That's the job. β¨
Tags are literally just names for particular revisions of the repository, and ngl they're so useful β for comparing different revisions, for going back to significant earlier versions, and for marking branch points as releases, etc. Basically they're the little sticky notes of your repo history. π
Changing an existing tag is normally disallowed, okay?? like it will not let you. use -f/--force to override that. π
If no revision is given, the parent of the working directory is used. easy.
Now, to facilitate version control, distribution, and merging of tags, they're stored as a file named .hgtags which is managed similarly to other project files and can be hand-edited if necessary. which also means β heads up β tagging creates a new commit. yes, a whole commit. the tag is not free, bestie. π
The file .hg/localtags is used for local tags (not shared among repositories, so they're your little private notes, iykyk).
Tag commits are usually made at the head of a branch. If the parent of the working directory is not a branch head, hg tag aborts β use -f/--force to force the tag commit to be based on a non-head changeset. π₯
See hg help dates for a list of formats valid for -d/--date.
β οΈ Since tag names have priority over branch names during revision lookup, using an existing branch name as a tag name is discouraged. like. don't do that. it's giving chaos. π
Returns 0 on success. β
π OPTIONS π
-f,--forceβ force tag πͺ-l,--localβ make the tag local (just for you, not the group chat)-r,--rev <REV>β revision to tag--removeβ remove a tag ποΈ-e,--editβ invoke editor on commit messages-m,--message <TEXT>β use text as commit message-d,--date <DATE>β record the specified date as commit date π-u,--user <USER>β record the specified user as committer π
and that's the whole page, babe π«Ά that was hg tag from the Mercurial manual β HG(TAG), top to bottom, same title as the header, same as the footer, no notes missing, periodt. go tag something iconic. πβ¨π
π¦ where this page comes from
- arch rolling: mercurial 7.2.4-1 Β· GPL
- fedora 43: mercurial 7.1.1-1.fc43 Β· GPL-2.0-or-later
- fedora 43: mercurial 7.1.1-2.fc43 Β· GPL-2.0-or-later
- fedora 44: mercurial 7.2-1.fc44 Β· GPL-2.0-or-later
- fedora 44: mercurial 7.2.4-1.fc44 Β· GPL-2.0-or-later
- nixos 26.05: mercurial 7.1.2
- nixos 26.05: mercurial-full 7.1.2
- nixpkgs unstable: mercurial 7.2.2
- nixpkgs unstable: mercurial-full 7.2.2
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms