[PATCH] revset: bookmark revset interprets 'literal:' prefix correctly (issue4329)

mkoconnor at gmail.com mkoconnor at gmail.com
Mon Aug 11 23:09:53 CDT 2014


# HG changeset patch
# User Michael O'Connor <mkoconnor at gmail.com>
# Date 1407815108 14400
#      Mon Aug 11 23:45:08 2014 -0400
# Branch stable
# Node ID b1b031b1f6a50d585ea5078c4f5baaf311ea16eb
# Parent  3178e49892020336491cdc6945885c4de26ffa8b
revset: bookmark revset interprets 'literal:' prefix correctly (issue4329)

diff -r 3178e4989202 -r b1b031b1f6a5 mercurial/revset.py
--- a/mercurial/revset.py	Fri Aug 01 13:01:35 2014 -0700
+++ b/mercurial/revset.py	Mon Aug 11 23:45:08 2014 -0400
@@ -449,7 +449,7 @@
                        _('the argument to bookmark must be a string'))
         kind, pattern, matcher = _stringmatcher(bm)
         if kind == 'literal':
-            bmrev = repo._bookmarks.get(bm, None)
+            bmrev = repo._bookmarks.get(pattern, None)
             if not bmrev:
                 raise util.Abort(_("bookmark '%s' does not exist") % bm)
             bmrev = repo[bmrev].rev()


More information about the Mercurial-devel mailing list