Mercurial > hg-stable
changeset 37315:0a1fb171dc1d
localrepo: use revsymbol() in lookup()
lookup() seems to be about looking up a revision based on a symbol
that may come from the user (via the wire protocol), so revsymbol() is
appropriate here.
Differential Revision: https://phab.mercurial-scm.org/D3055
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 03 Apr 2018 15:08:09 -0700 |
parents | 8474005fcfe2 |
children | 836867586b83 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sun Apr 01 23:29:51 2018 -0700 +++ b/mercurial/localrepo.py Tue Apr 03 15:08:09 2018 -0700 @@ -1021,7 +1021,7 @@ pass def lookup(self, key): - return self[key].node() + return scmutil.revsymbol(self, key).node() def lookupbranch(self, key, remote=None): repo = remote or self