D4436: httppeer: expose capabilities for each command
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Fri Sep 14 18:17:29 EDT 2018
indygreg added a comment.
In https://phab.mercurial-scm.org/D4436#69564, @durin42 wrote:
> Hmm. I'm still uneasy about this. Maybe we could make it a dev-mode thing and not be something we depend on long term?
I think an outcome of our VC yesterday was you were OK with this. IIRC you thought this was a server-side thing. When in fact this code runs on the client and is inventing e.g. `command-changeset` capabilities so code can check for the existence of a command via an artificial capability. In the future, v2 peers will likely expose the raw capabilities dict and we'll do something more intelligent for sniffing features.
To: indygreg, #hg-reviewers
Cc: durin42, mercurial-devel
More information about the Mercurial-devel