Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmutil.py @ 46046:1bf2b44c4007
log: do not accept string-matcher pattern as -u/-b/-B parameter
I'm pretty sure this is a bug introduced after we've switched the filtering
backend to revset matcher.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 01 Dec 2020 20:22:24 +0900 |
parents | 9ee791f3278f |
children | 4d5e2fd53707 |
line wrap: on
line diff
--- a/mercurial/scmutil.py Tue Dec 01 19:32:36 2020 +0900 +++ b/mercurial/scmutil.py Tue Dec 01 20:22:24 2020 +0900 @@ -2310,6 +2310,7 @@ def format_bookmark_revspec(mark): """Build a revset expression to select revisions reachable by a given bookmark""" + mark = b'literal:' + mark return revsetlang.formatspec( b"ancestors(bookmark(%s)) - " b"ancestors(head() and not bookmark(%s)) - "