comparison mercurial/help/internals/wireprotocolv2.txt @ 39634: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
comparison
equal deleted inserted replaced
39633:ff2de4f2eb3c 39634:9dffa99f9158
108 108
109 fields 109 fields
110 (set of bytestring) Which data associated with changelog revisions to 110 (set of bytestring) Which data associated with changelog revisions to
111 fetch. The following values are recognized: 111 fetch. The following values are recognized:
112 112
113 bookmarks
114 Bookmarks associated with a revision.
115
113 parents 116 parents
114 Parent revisions. 117 Parent revisions.
115 118
116 phase 119 phase
117 The phase state of a revision. 120 The phase state of a revision.
142 145
143 node 146 node
144 (bytestring) The node value for this revision. This is the SHA-1 hash of 147 (bytestring) The node value for this revision. This is the SHA-1 hash of
145 the raw revision data. 148 the raw revision data.
146 149
150 bookmarks (optional)
151 (array of bytestrings) Bookmarks attached to this revision. Only present
152 if ``bookmarks`` data is being requested and the revision has bookmarks
153 attached.
154
147 parents (optional) 155 parents (optional)
148 (array of bytestrings) The nodes representing the parent revisions of this 156 (array of bytestrings) The nodes representing the parent revisions of this
149 revision. Only present if ``parents`` data is being requested. 157 revision. Only present if ``parents`` data is being requested.
150 158
151 phase (optional) 159 phase (optional)
180 to reflect a phase-only update. 188 to reflect a phase-only update.
181 189
182 TODO support different revision selection mechanisms (e.g. non-public, specific 190 TODO support different revision selection mechanisms (e.g. non-public, specific
183 revisions) 191 revisions)
184 TODO support different hash "namespaces" for revisions (e.g. sha-1 versus other) 192 TODO support different hash "namespaces" for revisions (e.g. sha-1 versus other)
185 TODO support emitting bookmarks data
186 TODO support emitting obsolescence data 193 TODO support emitting obsolescence data
187 TODO support filtering based on relevant paths (narrow clone) 194 TODO support filtering based on relevant paths (narrow clone)
188 TODO support depth limiting 195 TODO support depth limiting
189 TODO support hgtagsfnodes cache / tags data 196 TODO support hgtagsfnodes cache / tags data
190 TODO support branch heads cache 197 TODO support branch heads cache