Mercurial > hg
changeset 22119:fd172ba5c64b
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 12 Aug 2014 04:50:58 -0500 |
parents | 9a299c39de01 (current diff) e5dfa8689cf0 (diff) |
children | 7740db54bf73 |
files | mercurial/commands.py |
diffstat | 4 files changed, 11 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Tue Aug 12 04:11:32 2014 -0500 +++ b/mercurial/commands.py Tue Aug 12 04:50:58 2014 -0500 @@ -5892,7 +5892,6 @@ fnames = (fname1,) + fnames lock = repo.lock() - wc = repo['.'] try: for fname in fnames: f = hg.openpath(ui, fname)
--- a/mercurial/repoview.py Tue Aug 12 04:11:32 2014 -0500 +++ b/mercurial/repoview.py Tue Aug 12 04:50:58 2014 -0500 @@ -41,7 +41,8 @@ tags = {} tagsmod.readlocaltags(repo.ui, repo, tags, {}) if tags: - blockers.extend(cl.rev(t[0]) for t in tags.values()) + rev, nodemap = cl.rev, cl.nodemap + blockers.extend(rev(t[0]) for t in tags.values() if t[0] in nodemap) return blockers def computehidden(repo):
--- a/mercurial/revset.py Tue Aug 12 04:11:32 2014 -0500 +++ b/mercurial/revset.py Tue Aug 12 04:50:58 2014 -0500 @@ -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()
--- a/tests/test-bookmarks.t Tue Aug 12 04:11:32 2014 -0500 +++ b/tests/test-bookmarks.t Tue Aug 12 04:50:58 2014 -0500 @@ -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]