def uisetup(ui): wireproto.wireprotocommand("clienttelemetry", "*")(_clienttelemetry) extensions.wrapfunction(wireproto, "_capabilities", _capabilities) hg.wirepeersetupfuncs.append(_peersetup) extensions.wrapfunction(dispatch, "runcommand", _runcommand)
def _registerwireprotocommand(): if "getannotate" in wireproto.commands: return wireproto.wireprotocommand("getannotate", "path lastnode")(_getannotate)