Show More
@@ -449,7 +449,7 b' def bookmark(repo, subset, x):' | |||||
449 | _('the argument to bookmark must be a string')) |
|
449 | _('the argument to bookmark must be a string')) | |
450 | kind, pattern, matcher = _stringmatcher(bm) |
|
450 | kind, pattern, matcher = _stringmatcher(bm) | |
451 | if kind == 'literal': |
|
451 | if kind == 'literal': | |
452 |
bmrev = repo._bookmarks.get( |
|
452 | bmrev = repo._bookmarks.get(pattern, None) | |
453 | if not bmrev: |
|
453 | if not bmrev: | |
454 | raise util.Abort(_("bookmark '%s' does not exist") % bm) |
|
454 | raise util.Abort(_("bookmark '%s' does not exist") % bm) | |
455 | bmrev = repo[bmrev].rev() |
|
455 | bmrev = repo[bmrev].rev() |
@@ -98,6 +98,14 b' bookmarks revset' | |||||
98 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
98 | date: Thu Jan 01 00:00:00 1970 +0000 | |
99 | summary: 1 |
|
99 | summary: 1 | |
100 |
|
100 | |||
|
101 | $ hg log -r 'bookmark("literal:X")' | |||
|
102 | changeset: 0:f7b1eb17ad24 | |||
|
103 | bookmark: X | |||
|
104 | user: test | |||
|
105 | date: Thu Jan 01 00:00:00 1970 +0000 | |||
|
106 | summary: 0 | |||
|
107 | ||||
|
108 | ||||
101 | $ hg log -r 'bookmark(unknown)' |
|
109 | $ hg log -r 'bookmark(unknown)' | |
102 | abort: bookmark 'unknown' does not exist |
|
110 | abort: bookmark 'unknown' does not exist | |
103 | [255] |
|
111 | [255] |
General Comments 0
You need to be logged in to leave comments.
Login now