Mercurial bookmark regex search?

Viewed 46

How to find a bookmark using a regular expression?

1 Answers

The command:

hg log -r bookmark('re:T.+v2')

lists all bookmarks matching the regex T.+v2.


In TortoiseHG:

  • Press Ctrl+S to show the Filter Toolbar
  • Write bookmark('re:T.+v2').

This is documented under Patterns and Predicates as part of the revsets query language.

Related