equal
deleted
inserted
replaced
447 bm = getstring(args[0], |
447 bm = getstring(args[0], |
448 # i18n: "bookmark" is a keyword |
448 # i18n: "bookmark" is a keyword |
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(bm, None) |
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() |
456 return subset.filter(lambda r: r == bmrev) |
456 return subset.filter(lambda r: r == bmrev) |
457 else: |
457 else: |