Mercurial > public > mercurial-scm > hg-stable
diff mercurial/help/internals/wireprotocolv2.txt @ 39650:9dffa99f9158
wireprotov2: add bookmarks to "changesetdata" command
Like we did for phases, we want to emit bookmarks data attached
to each changeset.
The approach here is very similar to phases: we emit bookmarks
data inline with requested revision data. But we emit
records for nodes that weren't requested as well so consumers have
access to the full set of defined bookmarks.
Differential Revision: https://phab.mercurial-scm.org/D4485
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 23 Aug 2018 18:14:19 -0700 |
parents | c1aacb0d76ff |
children | c7a7c7e844e5 |
line wrap: on
line diff
--- a/mercurial/help/internals/wireprotocolv2.txt Wed Sep 12 10:01:58 2018 -0700 +++ b/mercurial/help/internals/wireprotocolv2.txt Thu Aug 23 18:14:19 2018 -0700 @@ -110,6 +110,9 @@ (set of bytestring) Which data associated with changelog revisions to fetch. The following values are recognized: + bookmarks + Bookmarks associated with a revision. + parents Parent revisions. @@ -144,6 +147,11 @@ (bytestring) The node value for this revision. This is the SHA-1 hash of the raw revision data. +bookmarks (optional) + (array of bytestrings) Bookmarks attached to this revision. Only present + if ``bookmarks`` data is being requested and the revision has bookmarks + attached. + parents (optional) (array of bytestrings) The nodes representing the parent revisions of this revision. Only present if ``parents`` data is being requested. @@ -182,7 +190,6 @@ TODO support different revision selection mechanisms (e.g. non-public, specific revisions) TODO support different hash "namespaces" for revisions (e.g. sha-1 versus other) -TODO support emitting bookmarks data TODO support emitting obsolescence data TODO support filtering based on relevant paths (narrow clone) TODO support depth limiting