IntelliJ IDEA 2021.3 Help

Tag changesets in Mercurial

IntelliJ IDEA supports both local and global tags. Local tags are stored in the file .hg/localtags in the repository, global tags are stored in the file .hgtags.

Currently tagging specific changesets is supported only in the command line mode in the embedded Terminal. To launch the Terminal, hover your mouse pointer over the Tool windows icon in the lower left corner of the IDE, then choose Terminal from the menu. After commit, tags appear in the Log tab of the Mercurial tool window Alt+9.

For more information about Mercurial tags, see Mercurial Documentation: Tag.

Tagging a repository

IntelliJ IDEA provides UI for tagging the current repository which means assigning a tag to its tip. The created tag is global, is stored in the file .hgtags. After commit, the tag appears in the Log tab of the Mercurial tool window Alt+9.

  1. Open the Tag dialog by doing one of the following:

    • From the main menu, choose VCS | Mercurial | Tag Repository.

    • From the context menu of the Editor, choose Mercurial | Tag Repository.

  2. In the Tag dialog that opens, specify the tag name. The name must be unique.

Last modified: 01 August 2022