mercurial/scmutil.py
changeset 46042 1bf2b44c4007
parent 46040 9ee791f3278f
child 46096 4d5e2fd53707
--- 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)) - "