From patchwork Tue Aug 12 06:00:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: revset: bookmark revset interprets 'literal:' prefix correctly (issue4329) From: Matt Mackall X-Patchwork-Id: 5355 Message-Id: <1407823218.2319.45.camel@calx> To: mkoconnor@gmail.com Cc: mercurial-devel@selenic.com Date: Tue, 12 Aug 2014 01:00:18 -0500 On Tue, 2014-08-12 at 00:09 -0400, mkoconnor@gmail.com wrote: > # HG changeset patch > # User Michael O'Connor > # 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: 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]