diff mercurial/help/internals/wireprotocol.txt @ 37538:89fed81bbb6c

wireproto: port lookup to wire protocol v2 This is pretty straightforward. We don't yet handle errors because we don't have an error handling mechanism in place yet. I'm also tempted to fold this into `known`. We'll come back to this later. Differential Revision: https://phab.mercurial-scm.org/D3205
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 06 Apr 2018 17:48:07 -0700
parents be5d4749edc0
children 301a1d2e8016
line wrap: on
line diff
--- a/mercurial/help/internals/wireprotocol.txt	Fri Apr 06 17:39:40 2018 -0700
+++ b/mercurial/help/internals/wireprotocol.txt	Fri Apr 06 17:48:07 2018 -0700
@@ -1778,6 +1778,21 @@
 
 TODO consider using binary to represent nodes in certain pushkey namespaces.
 
+lookup
+------
+
+Try to resolve a value to a changeset revision.
+
+Unlike ``known`` which operates on changeset nodes, lookup operates on
+node fragments and other names that a user may use.
+
+The command receives the following arguments:
+
+key
+   (bytestring) Value to try to resolve.
+
+On success, returns a bytestring containing the resolved node.
+
 pushkey
 -------