Mercurial > public > mercurial-scm > hg-stable
diff mercurial/help/internals/wireprotocolv2.txt @ 39816:ae20f52437e9
wireprotov2: advertise recognized path filter prefixes
While the wire protocol doesn't yet support it, we'll eventually
have commands that accept narrow patterns to specify the set of
files relevant to a command.
For security and performance reasons, only specific filter types
are allowed.
This commit teaches the server to advertise the set of allowed
filter types. By doing so, clients can e.g. validate user-specified
patterns against the server's abilities without having to send
a command to retrieve data.
Having the data in the capabilities data structure will also serve
as a check against unwanted BC.
Differential Revision: https://phab.mercurial-scm.org/D4616
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 17 Sep 2018 09:49:28 -0700 |
parents | aa7e312375cf |
children | 8e7e822e85ec |
line wrap: on
line diff
--- a/mercurial/help/internals/wireprotocolv2.txt Thu Aug 30 17:43:47 2018 -0700 +++ b/mercurial/help/internals/wireprotocolv2.txt Mon Sep 17 09:49:28 2018 -0700 @@ -82,6 +82,11 @@ An array of bytestrings defining the supported framing protocol media types. Servers will not accept media types not in this list. +pathfilterprefixes + (set of bytestring) Matcher prefixes that are recognized when performing + path filtering. Specifying a path filter whose type/prefix does not + match one in this set will likely be rejected by the server. + rawrepoformats An array of storage formats the repository is using. This set of requirements can be used to determine whether a client can read a