tag questions - Are spaces allowed? Can they be deleted?
mpm at selenic.com
Tue Sep 20 23:55:37 CDT 2005
On Tue, Sep 20, 2005 at 09:49:42PM -0700, Rob Browning wrote:
> After reading the hg manpage, I still wasn't quite sure about the
> legal tag syntax. The manpage only says that colons are forbidden, so
> are spaces acceptable, as in "Release 2.3.1"?
Yes. Using the tag command, you'll want to do something like:
$ hg tag "Release 2.3.1"
> Also, is there any way to "delete" a tag, so that future operations
> won't see it, at least not unless that same tag is reinstated by some
> newer changeset?
Yes. Tags are maintained in a regular file called .hgtags. It looks
$ cat .hgtags
To delete a tag, or change a tag, or whatever, just edit this file and
check it in:
$ emacs .hgtags
$ hg ci .hgtags -m "remove a tag"
The hg tag command is simply a shortcut.
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial