Patchwork revset: bookmark revset interprets 'literal:' prefix correctly (issue4329)

login
register
mail settings
Submitter Matt Mackall
Date Aug. 12, 2014, 6 a.m.
Message ID <1407823218.2319.45.camel@calx>
Download mbox | patch
Permalink /patch/5355/
State Accepted
Headers show

Comments

Matt Mackall - Aug. 12, 2014, 6 a.m.
On Tue, 2014-08-12 at 00:09 -0400, mkoconnor@gmail.com wrote:
> # HG changeset patch
> # User Michael O'Connor <mkoconnor@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)

Queued for stable, thanks. Congratulations on your first Mercurial
patch. FYI, I amended it with the following trivial test case:

Patch

diff -r 42b1344656f7 -r 3efe3c2609e0 tests/test-bookmarks.t
--- a/tests/test-bookmarks.t	Mon Aug 11 13:10:00 2014 -0500
+++ b/tests/test-bookmarks.t	Mon Aug 11 23:45:08 2014 -0400
@@ -98,6 +98,14 @@ 
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     1
   
+  $ hg log -r 'bookmark("literal:X")'
+  changeset:   0:f7b1eb17ad24
+  bookmark:    X
+  user:        test
+  date:        Thu Jan 01 00:00:00 1970 +0000
+  summary:     0
+  
+
   $ hg log -r 'bookmark(unknown)'
   abort: bookmark 'unknown' does not exist
   [255]