D3081: wireproto: use repo.lookup() for lookup command
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Wed Apr 4 20:50:44 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGac666c5c2e0c: wireproto: use repo.lookup() for lookup command (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3081?vs=7655&id=7667
REVISION DETAIL
https://phab.mercurial-scm.org/D3081
AFFECTED FILES
mercurial/wireproto.py
CHANGE DETAILS
diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py
--- a/mercurial/wireproto.py
+++ b/mercurial/wireproto.py
@@ -1014,8 +1014,8 @@
def lookup(repo, proto, key):
try:
k = encoding.tolocal(key)
- c = repo[k]
- r = c.hex()
+ n = repo.lookup(k)
+ r = hex(n)
success = 1
except Exception as inst:
r = stringutil.forcebytestr(inst)
To: martinvonz, #hg-reviewers, indygreg
Cc: indygreg, mercurial-devel
More information about the Mercurial-devel
mailing list