Show More
@@ -1,362 +1,363 | |||
|
1 | 1 | default = 'summary' |
|
2 | 2 | mimetype = 'text/html; charset={encoding}' |
|
3 | 3 | header = header.tmpl |
|
4 | 4 | footer = footer.tmpl |
|
5 | 5 | search = search.tmpl |
|
6 | 6 | changelog = changelog.tmpl |
|
7 | 7 | summary = summary.tmpl |
|
8 | 8 | error = error.tmpl |
|
9 | 9 | notfound = notfound.tmpl |
|
10 | 10 | |
|
11 | 11 | help = help.tmpl |
|
12 | 12 | helptopics = helptopics.tmpl |
|
13 | 13 | |
|
14 | 14 | helpentry = ' |
|
15 | 15 | <tr><td> |
|
16 | 16 | <a href="{url|urlescape}help/{topic|escape}{sessionvars%urlparameter}"> |
|
17 | 17 | {if(basename, '{basename|escape}', '{topic|escape}')} |
|
18 | 18 | </a> |
|
19 | 19 | </td><td> |
|
20 | 20 | {summary|escape} |
|
21 | 21 | </td></tr>' |
|
22 | 22 | |
|
23 | 23 | naventry = '<a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
24 | 24 | navshortentry = '<a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
25 | 25 | navgraphentry = '<a href="{url|urlescape}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
26 | 26 | filenaventry = '<a href="{url|urlescape}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
27 | 27 | filedifflink = '<a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> ' |
|
28 | 28 | filenodelink = ' |
|
29 | 29 | <tr class="parity{parity}"> |
|
30 | 30 | <td><a class="list" href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a></td> |
|
31 | 31 | <td></td> |
|
32 | 32 | <td class="link"> |
|
33 | 33 | <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a> | |
|
34 | 34 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a> | |
|
35 | 35 | <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> | |
|
36 | 36 | <a href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">comparison</a> | |
|
37 | 37 | <a href="{url|urlescape}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">revisions</a> |
|
38 | 38 | </td> |
|
39 | 39 | </tr>' |
|
40 | 40 | filenolink = ' |
|
41 | 41 | <tr class="parity{parity}"> |
|
42 | 42 | <td><a class="list" href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a></td> |
|
43 | 43 | <td></td> |
|
44 | 44 | <td class="link"> |
|
45 | 45 | file | |
|
46 | 46 | annotate | |
|
47 | 47 | <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> | |
|
48 | 48 | <a href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">comparison</a> | |
|
49 | 49 | <a href="{url|urlescape}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">revisions</a> |
|
50 | 50 | </td> |
|
51 | 51 | </tr>' |
|
52 | 52 | |
|
53 | 53 | nav = '{before%naventry} {after%naventry}' |
|
54 | 54 | navshort = '{before%navshortentry}{after%navshortentry}' |
|
55 | 55 | navgraph = '{before%navgraphentry}{after%navgraphentry}' |
|
56 | 56 | filenav = '{before%filenaventry}{after%filenaventry}' |
|
57 | 57 | |
|
58 | 58 | fileellipses = '...' |
|
59 | 59 | changelogentry = changelogentry.tmpl |
|
60 | 60 | searchentry = changelogentry.tmpl |
|
61 | 61 | changeset = changeset.tmpl |
|
62 | 62 | manifest = manifest.tmpl |
|
63 | 63 | direntry = ' |
|
64 | 64 | <tr class="parity{parity}"> |
|
65 | 65 | <td style="font-family:monospace">drwxr-xr-x</td> |
|
66 | 66 | <td style="font-family:monospace"></td> |
|
67 | 67 | <td style="font-family:monospace"></td> |
|
68 | 68 | <td> |
|
69 | 69 | <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">{basename|escape}</a> |
|
70 | 70 | <a href="{url|urlescape}file/{symrev}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">{emptydirs|escape}</a> |
|
71 | 71 | </td> |
|
72 | 72 | <td class="link"> |
|
73 | 73 | <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">files</a> |
|
74 | 74 | </td> |
|
75 | 75 | </tr>' |
|
76 | 76 | fileentry = ' |
|
77 | 77 | <tr class="parity{parity}"> |
|
78 | 78 | <td style="font-family:monospace">{permissions|permissions}</td> |
|
79 | 79 | <td style="font-family:monospace" align=right>{date|isodate}</td> |
|
80 | 80 | <td style="font-family:monospace" align=right>{size}</td> |
|
81 | 81 | <td class="list"> |
|
82 | 82 | <a class="list" href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">{basename|escape}</a> |
|
83 | 83 | </td> |
|
84 | 84 | <td class="link"> |
|
85 | 85 | <a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">file</a> | |
|
86 | 86 | <a href="{url|urlescape}log/{symrev}/{file|urlescape}{sessionvars%urlparameter}">revisions</a> | |
|
87 | 87 | <a href="{url|urlescape}annotate/{symrev}/{file|urlescape}{sessionvars%urlparameter}">annotate</a> |
|
88 | 88 | </td> |
|
89 | 89 | </tr>' |
|
90 | 90 | filerevision = filerevision.tmpl |
|
91 | 91 | fileannotate = fileannotate.tmpl |
|
92 | 92 | filediff = filediff.tmpl |
|
93 | 93 | filecomparison = filecomparison.tmpl |
|
94 | 94 | filelog = filelog.tmpl |
|
95 | 95 | fileline = ' |
|
96 | 96 | <a href="#{lineid}"></a><span id="{lineid}">{strip(line|escape, '\r\n')}</span>' |
|
97 | 97 | annotateline = ' |
|
98 | 98 | <tr id="{lineid}" style="font-family:monospace" class="parity{parity}{ifeq(node, originalnode, ' thisrev')}"> |
|
99 | 99 | <td class="annotate linenr parity{blockparity}" style="text-align: right;"> |
|
100 | 100 | {if(blockhead, |
|
101 | 101 | '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}"> |
|
102 | 102 | {rev} |
|
103 | 103 | </a>')} |
|
104 | 104 | <div class="annotate-info"> |
|
105 | 105 | <div> |
|
106 | 106 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}"> |
|
107 | 107 | {node|short}</a> |
|
108 | 108 | {desc|escape|firstline} |
|
109 | 109 | </div> |
|
110 | 110 | <div><em>{author|obfuscate}</em></div> |
|
111 | 111 | <div>parents: {parents%annotateparent}</div> |
|
112 | 112 | <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> |
|
113 | 113 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> |
|
114 | 114 | </div> |
|
115 | 115 | </td> |
|
116 | 116 | <td class="followlines-btn-parent"><pre><a class="linenr" href="#{lineid}">{linenumber}</a></pre></td> |
|
117 | 117 | <td><pre>{line|escape}</pre></td> |
|
118 | 118 | </tr>' |
|
119 | 119 | annotateparent = ' |
|
120 | 120 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rev}</a>' |
|
121 | 121 | difflineplus = ' |
|
122 | 122 | <a href="#{lineid}"></a><span id="{lineid}" class="difflineplus">{strip(line|escape, '\r\n')}</span>' |
|
123 | 123 | difflineminus = ' |
|
124 | 124 | <a href="#{lineid}"></a><span id="{lineid}" class="difflineminus">{strip(line|escape, '\r\n')}</span>' |
|
125 | 125 | difflineat = ' |
|
126 | 126 | <a href="#{lineid}"></a><span id="{lineid}" class="difflineat">{strip(line|escape, '\r\n')}</span>' |
|
127 | 127 | diffline = ' |
|
128 | 128 | <a href="#{lineid}"></a><span id="{lineid}">{strip(line|escape, '\r\n')}</span>' |
|
129 | 129 | |
|
130 | 130 | comparisonblock =' |
|
131 | 131 | <tbody class="block"> |
|
132 | 132 | {lines} |
|
133 | 133 | </tbody>' |
|
134 | 134 | comparisonline = ' |
|
135 | 135 | <tr id="{lineid}" style="font-family:monospace"> |
|
136 | 136 | <td class="{type}"><pre><a class="linenr" href="#{lineid}">{leftlinenumber}</a> {leftline|escape}</pre></td> |
|
137 | 137 | <td class="{type}"><pre><a class="linenr" href="#{lineid}">{rightlinenumber}</a> {rightline|escape}</pre></td> |
|
138 | 138 | </tr>' |
|
139 | 139 | |
|
140 | 140 | changesetlink = '<a class="list" href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>' |
|
141 | 141 | changesetbranch = '<tr><td>branch</td><td>{name|escape}</td></tr>' |
|
142 | 142 | changesetparent = ' |
|
143 | 143 | <tr> |
|
144 | 144 | <td>parent {rev}</td> |
|
145 | 145 | <td style="font-family:monospace"> |
|
146 | 146 | {changesetlink} |
|
147 | 147 | </td> |
|
148 | 148 | </tr>' |
|
149 | 149 | changesetparentdiff = ' |
|
150 | 150 | <tr> |
|
151 | 151 | <td>parent {rev}</td> |
|
152 | 152 | <td style="font-family:monospace"> |
|
153 | 153 | {changesetlink} {ifeq(node, basenode, '(current diff)', '({difffrom})')} |
|
154 | 154 | </td> |
|
155 | 155 | </tr>' |
|
156 | 156 | difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">diff</a>' |
|
157 | 157 | filerevbranch = '<tr><td>branch</td><td>{name|escape}</td></tr>' |
|
158 | 158 | filerevparent = ' |
|
159 | 159 | <tr> |
|
160 | 160 | <td>parent {rev}</td> |
|
161 | 161 | <td style="font-family:monospace"> |
|
162 | 162 | <a class="list" href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}"> |
|
163 | 163 | {rename%filerename}{node|short} |
|
164 | 164 | </a> |
|
165 | 165 | </td> |
|
166 | 166 | </tr>' |
|
167 | 167 | filerename = '{file|escape}@' |
|
168 | 168 | filelogrename = '| <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">base</a>' |
|
169 | 169 | fileannotateparent = ' |
|
170 | 170 | <tr> |
|
171 | 171 | <td>parent {rev}</td> |
|
172 | 172 | <td style="font-family:monospace"> |
|
173 | 173 | <a class="list" href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}"> |
|
174 | 174 | {rename%filerename}{node|short} |
|
175 | 175 | </a> |
|
176 | 176 | </td> |
|
177 | 177 | </tr>' |
|
178 | 178 | changesetchild = ' |
|
179 | 179 | <tr> |
|
180 | 180 | <td>child {rev}</td> |
|
181 | 181 | <td style="font-family:monospace"> |
|
182 | 182 | <a class="list" href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> |
|
183 | 183 | </td> |
|
184 | 184 | </tr>' |
|
185 | 185 | filerevchild = ' |
|
186 | 186 | <tr> |
|
187 | 187 | <td>child {rev}</td> |
|
188 | 188 | <td style="font-family:monospace"> |
|
189 | 189 | <a class="list" href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td> |
|
190 | 190 | </tr>' |
|
191 | 191 | fileannotatechild = ' |
|
192 | 192 | <tr> |
|
193 | 193 | <td>child {rev}</td> |
|
194 | 194 | <td style="font-family:monospace"> |
|
195 | 195 | <a class="list" href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td> |
|
196 | 196 | </tr>' |
|
197 | 197 | tags = tags.tmpl |
|
198 | 198 | tagentry = ' |
|
199 | 199 | <tr class="parity{parity}"> |
|
200 | 200 | <td class="age"><i class="age">{date|rfc822date}</i></td> |
|
201 | 201 | <td><a class="list" href="{url|urlescape}rev/{tag|revescape}{sessionvars%urlparameter}"><b>{tag|escape}</b></a></td> |
|
202 | 202 | <td class="link"> |
|
203 | 203 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> | |
|
204 | 204 | <a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">changelog</a> | |
|
205 | 205 | <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a> |
|
206 | 206 | </td> |
|
207 | 207 | </tr>' |
|
208 | 208 | bookmarks = bookmarks.tmpl |
|
209 | 209 | bookmarkentry = ' |
|
210 | 210 | <tr class="parity{parity}"> |
|
211 | 211 | <td class="age"><i class="age">{date|rfc822date}</i></td> |
|
212 | 212 | <td><a class="list" href="{url|urlescape}rev/{bookmark|revescape}{sessionvars%urlparameter}"><b>{bookmark|escape}</b></a></td> |
|
213 | 213 | <td class="link"> |
|
214 | 214 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> | |
|
215 | 215 | <a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">changelog</a> | |
|
216 | 216 | <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a> |
|
217 | 217 | </td> |
|
218 | 218 | </tr>' |
|
219 | 219 | branches = branches.tmpl |
|
220 | 220 | branchentry = ' |
|
221 | 221 | <tr class="parity{parity}"> |
|
222 | 222 | <td class="age"><i class="age">{date|rfc822date}</i></td> |
|
223 | 223 | <td class="{status}"><a class="list" href="{url|urlescape}shortlog/{branch|revescape}{sessionvars%urlparameter}"><b>{branch|escape}</b></a></td> |
|
224 | 224 | <td class="link"> |
|
225 | 225 | <a href="{url|urlescape}changeset/{node|short}{sessionvars%urlparameter}">changeset</a> | |
|
226 | 226 | <a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">changelog</a> | |
|
227 | 227 | <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a> |
|
228 | 228 | </td> |
|
229 | 229 | </tr>' |
|
230 | 230 | diffblock = '<div class="diffblock"><pre class="sourcelines">{lines}</pre></div>' |
|
231 | 231 | filediffparent = ' |
|
232 | 232 | <tr> |
|
233 | 233 | <td>parent {rev}</td> |
|
234 | 234 | <td style="font-family:monospace"> |
|
235 | 235 | <a class="list" href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}"> |
|
236 | 236 | {node|short} |
|
237 | 237 | </a> |
|
238 | 238 | </td> |
|
239 | 239 | </tr>' |
|
240 | 240 | filecompparent = ' |
|
241 | 241 | <tr> |
|
242 | 242 | <td>parent {rev}</td> |
|
243 | 243 | <td style="font-family:monospace"> |
|
244 | 244 | <a class="list" href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}"> |
|
245 | 245 | {node|short} |
|
246 | 246 | </a> |
|
247 | 247 | </td> |
|
248 | 248 | </tr>' |
|
249 | 249 | filediffchild = ' |
|
250 | 250 | <tr> |
|
251 | 251 | <td>child {rev}</td> |
|
252 | 252 | <td style="font-family:monospace"> |
|
253 | 253 | <a class="list" href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> |
|
254 | 254 | </td> |
|
255 | 255 | </tr>' |
|
256 | 256 | filecompchild = ' |
|
257 | 257 | <tr> |
|
258 | 258 | <td>child {rev}</td> |
|
259 | 259 | <td style="font-family:monospace"> |
|
260 | 260 | <a class="list" href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> |
|
261 | 261 | </td> |
|
262 | 262 | </tr>' |
|
263 | 263 | shortlog = shortlog.tmpl |
|
264 | 264 | graph = graph.tmpl |
|
265 | 265 | graphentry = graphentry.tmpl |
|
266 | 266 | phasetag = '{ifeq(phase, 'public', '', '<span class="phasetag" title="{phase|escape}">{phase|escape}</span> ')}' |
|
267 | 267 | obsoletetag = '{if(obsolete, '<span class="obsoletetag" title="obsolete">obsolete</span> ')}' |
|
268 | 268 | instabilitytag = '<span class="instabilitytag" title="{instability|escape}">{instability|escape}</span> ' |
|
269 | 269 | tagtag = '<span class="tagtag" title="{name|escape}">{name|escape}</span> ' |
|
270 | 270 | branchtag = '<span class="branchtag" title="{name|escape}">{name|escape}</span> ' |
|
271 | 271 | inbranchtag = '<span class="inbranchtag" title="{name|escape}">{name|escape}</span> ' |
|
272 | 272 | bookmarktag = '<span class="bookmarktag" title="{name|escape}">{name|escape}</span> ' |
|
273 | 273 | alltags = '<span class="logtags">{phasetag}{obsoletetag}{instabilities%instabilitytag}{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span>' |
|
274 | 274 | successorlink = '<a class="list" href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> ' |
|
275 | 275 | obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}' |
|
276 | 276 | obsfateverb = '{obsfateverb(successors, markers)}' |
|
277 | 277 | obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}' |
|
278 | 278 | obsfateusers = '{if(obsfateusers(markers), ' by {join(obsfateusers(markers)%'{user|obfuscate}', ', ')}')}' |
|
279 | obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}' | |
|
279 | obsfatedate = '{if(obsfatedate(markers), ' {ifeq(min(obsfatedate(markers)), max(obsfatedate(markers)), '<span class="age">{min(obsfatedate(markers))|rfc822date}</span>', 'between <span class="age">{min(obsfatedate(markers))|rfc822date}</span> and <span class="age">{max(obsfatedate(markers))|rfc822date}</span>')}')}' | |
|
280 | obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}' | |
|
280 | 281 | shortlogentry = ' |
|
281 | 282 | <tr class="parity{parity}"> |
|
282 | 283 | <td class="age"><i class="age">{date|rfc822date}</i></td> |
|
283 | 284 | <td><i>{author|person}</i></td> |
|
284 | 285 | <td> |
|
285 | 286 | <a class="list" href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}"> |
|
286 | 287 | <b>{desc|strip|firstline|escape|nonempty}</b> |
|
287 | 288 | {alltags} |
|
288 | 289 | </a> |
|
289 | 290 | </td> |
|
290 | 291 | <td class="link" nowrap> |
|
291 | 292 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> | |
|
292 | 293 | <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a> |
|
293 | 294 | </td> |
|
294 | 295 | </tr>' |
|
295 | 296 | filelogentry = ' |
|
296 | 297 | <tr class="parity{if(patch, '1', '{parity}')}"> |
|
297 | 298 | <td class="age"><i class="age">{date|rfc822date}</i></td> |
|
298 | 299 | <td><i>{author|person}</i></td> |
|
299 | 300 | <td> |
|
300 | 301 | <a class="list" href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}"> |
|
301 | 302 | <b>{desc|strip|firstline|escape|nonempty}</b> |
|
302 | 303 | {alltags} |
|
303 | 304 | </a> |
|
304 | 305 | </td> |
|
305 | 306 | <td class="link"> |
|
306 | 307 | <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a> | |
|
307 | 308 | <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> | |
|
308 | 309 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a> |
|
309 | 310 | {rename%filelogrename} |
|
310 | 311 | </td> |
|
311 | 312 | </tr> |
|
312 | 313 | {if(patch, '<tr><td colspan="4">{diff}</td></tr>')}' |
|
313 | 314 | archiveentry = ' | <a href="{url|urlescape}archive/{symrev}{extension}{ifeq(path,'/','',path|urlescape)}">{type|escape}</a> ' |
|
314 | 315 | indexentry = ' |
|
315 | 316 | <tr class="parity{parity}"> |
|
316 | 317 | <td> |
|
317 | 318 | <a class="list" href="{url|urlescape}{sessionvars%urlparameter}"> |
|
318 | 319 | <b>{name|escape}</b> |
|
319 | 320 | </a> |
|
320 | 321 | </td> |
|
321 | 322 | <td>{description}</td> |
|
322 | 323 | <td>{contact|obfuscate}</td> |
|
323 | 324 | <td class="age">{lastchange|rfc822date}</td> |
|
324 | 325 | <td class="indexlinks">{archives%indexarchiveentry}</td> |
|
325 | 326 | <td>{if(isdirectory, '', |
|
326 | 327 | '<div class="rss_logo"> |
|
327 | 328 | <a href="{url|urlescape}rss-log">RSS</a> <a href="{url|urlescape}atom-log">Atom</a> |
|
328 | 329 | </div>' |
|
329 | 330 | )} |
|
330 | 331 | </td> |
|
331 | 332 | </tr>\n' |
|
332 | 333 | indexarchiveentry = ' <a href="{url|urlescape}archive/{node|short}{extension}">{type|escape}</a> ' |
|
333 | 334 | index = index.tmpl |
|
334 | 335 | urlparameter = '{separator}{name}={value|urlescape}' |
|
335 | 336 | hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />' |
|
336 | 337 | breadcrumb = '> <a href="{url|urlescape}">{name|escape}</a> ' |
|
337 | 338 | |
|
338 | 339 | searchform = ' |
|
339 | 340 | <div class="search"> |
|
340 | 341 | <form id="searchform" action="{url|urlescape}log"> |
|
341 | 342 | {sessionvars%hiddenformentry} |
|
342 | 343 | <input name="rev" type="text" value="{query|escape}" size="40" /> |
|
343 | 344 | <div id="hint">{searchhint}</div> |
|
344 | 345 | </form> |
|
345 | 346 | </div>' |
|
346 | 347 | searchhint = 'Find changesets by keywords (author, files, the commit message), revision |
|
347 | 348 | number or hash, or <a href="{url|urlescape}help/revsets">revset expression</a>.' |
|
348 | 349 | |
|
349 | 350 | diffoptsform = ' |
|
350 | 351 | <form id="diffopts-form" |
|
351 | 352 | data-ignorews="{if(get(diffopts, 'ignorews'), '1', '0')}" |
|
352 | 353 | data-ignorewsamount="{if(get(diffopts, 'ignorewsamount'), '1', '0')}" |
|
353 | 354 | data-ignorewseol="{if(get(diffopts, 'ignorewseol'), '1', '0')}" |
|
354 | 355 | data-ignoreblanklines="{if(get(diffopts, 'ignoreblanklines'), '1', '0')}"> |
|
355 | 356 | <span>Ignore whitespace changes - </span> |
|
356 | 357 | <span>Everywhere:</span> |
|
357 | 358 | <input id="ignorews-checkbox" type="checkbox" /> |
|
358 | 359 | <span>Within whitespace:</span> |
|
359 | 360 | <input id="ignorewsamount-checkbox" type="checkbox" /> |
|
360 | 361 | <span>At end of lines:</span> |
|
361 | 362 | <input id="ignorewseol-checkbox" type="checkbox" /> |
|
362 | 363 | </form>' |
@@ -1,301 +1,302 | |||
|
1 | 1 | default = 'summary' |
|
2 | 2 | mimetype = 'text/html; charset={encoding}' |
|
3 | 3 | header = header.tmpl |
|
4 | 4 | footer = footer.tmpl |
|
5 | 5 | search = search.tmpl |
|
6 | 6 | changelog = changelog.tmpl |
|
7 | 7 | summary = summary.tmpl |
|
8 | 8 | error = error.tmpl |
|
9 | 9 | notfound = notfound.tmpl |
|
10 | 10 | |
|
11 | 11 | help = help.tmpl |
|
12 | 12 | helptopics = helptopics.tmpl |
|
13 | 13 | |
|
14 | 14 | helpentry = ' |
|
15 | 15 | <tr><td> |
|
16 | 16 | <a href="{url|urlescape}help/{topic|escape}{sessionvars%urlparameter}"> |
|
17 | 17 | {if(basename, '{basename|escape}', '{topic|escape}')} |
|
18 | 18 | </a> |
|
19 | 19 | </td><td> |
|
20 | 20 | {summary|escape} |
|
21 | 21 | </td></tr>' |
|
22 | 22 | |
|
23 | 23 | naventry = '<a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
24 | 24 | navshortentry = '<a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
25 | 25 | navgraphentry = '<a href="{url|urlescape}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
26 | 26 | filenaventry = '<a href="{url|urlescape}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
27 | 27 | filedifflink = '<a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> ' |
|
28 | 28 | filenodelink = ' |
|
29 | 29 | <tr class="parity{parity}"> |
|
30 | 30 | <td><a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a></td> |
|
31 | 31 | <td></td> |
|
32 | 32 | <td> |
|
33 | 33 | <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a> | |
|
34 | 34 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a> | |
|
35 | 35 | <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> | |
|
36 | 36 | <a href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">comparison</a> | |
|
37 | 37 | <a href="{url|urlescape}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">revisions</a> |
|
38 | 38 | </td> |
|
39 | 39 | </tr>' |
|
40 | 40 | filenolink = ' |
|
41 | 41 | <tr class="parity{parity}"> |
|
42 | 42 | <td><a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a></td> |
|
43 | 43 | <td></td> |
|
44 | 44 | <td> |
|
45 | 45 | file | |
|
46 | 46 | annotate | |
|
47 | 47 | <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> | |
|
48 | 48 | <a href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">comparison</a> | |
|
49 | 49 | <a href="{url|urlescape}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">revisions</a> |
|
50 | 50 | </td> |
|
51 | 51 | </tr>' |
|
52 | 52 | |
|
53 | 53 | nav = '{before%naventry} {after%naventry}' |
|
54 | 54 | navshort = '{before%navshortentry}{after%navshortentry}' |
|
55 | 55 | navgraph = '{before%navgraphentry}{after%navgraphentry}' |
|
56 | 56 | filenav = '{before%filenaventry}{after%filenaventry}' |
|
57 | 57 | |
|
58 | 58 | fileellipses = '...' |
|
59 | 59 | changelogentry = changelogentry.tmpl |
|
60 | 60 | searchentry = changelogentry.tmpl |
|
61 | 61 | changeset = changeset.tmpl |
|
62 | 62 | manifest = manifest.tmpl |
|
63 | 63 | direntry = ' |
|
64 | 64 | <tr class="parity{parity}"> |
|
65 | 65 | <td>drwxr-xr-x</td> |
|
66 | 66 | <td></td> |
|
67 | 67 | <td></td> |
|
68 | 68 | <td> |
|
69 | 69 | <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">{basename|escape}</a> |
|
70 | 70 | <a href="{url|urlescape}file/{symrev}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">{emptydirs|escape}</a> |
|
71 | 71 | </td> |
|
72 | 72 | <td><a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">files</a></td> |
|
73 | 73 | </tr>' |
|
74 | 74 | fileentry = ' |
|
75 | 75 | <tr class="parity{parity}"> |
|
76 | 76 | <td>{permissions|permissions}</td> |
|
77 | 77 | <td>{date|isodate}</td> |
|
78 | 78 | <td>{size}</td> |
|
79 | 79 | <td><a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">{basename|escape}</a></td> |
|
80 | 80 | <td> |
|
81 | 81 | <a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">file</a> | |
|
82 | 82 | <a href="{url|urlescape}log/{symrev}/{file|urlescape}{sessionvars%urlparameter}">revisions</a> | |
|
83 | 83 | <a href="{url|urlescape}annotate/{symrev}/{file|urlescape}{sessionvars%urlparameter}">annotate</a> |
|
84 | 84 | </td> |
|
85 | 85 | </tr>' |
|
86 | 86 | filerevision = filerevision.tmpl |
|
87 | 87 | fileannotate = fileannotate.tmpl |
|
88 | 88 | filediff = filediff.tmpl |
|
89 | 89 | filecomparison = filecomparison.tmpl |
|
90 | 90 | filelog = filelog.tmpl |
|
91 | 91 | fileline = ' |
|
92 | 92 | <a href="#{lineid}"></a><span id="{lineid}">{strip(line|escape, '\r\n')}</span>' |
|
93 | 93 | annotateline = ' |
|
94 | 94 | <tr id="{lineid}" class="parity{parity}{ifeq(node, originalnode, ' thisrev')}"> |
|
95 | 95 | <td class="annotate linenr parity{blockparity}"> |
|
96 | 96 | {if(blockhead, |
|
97 | 97 | '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}"> |
|
98 | 98 | {rev} |
|
99 | 99 | </a>')} |
|
100 | 100 | <div class="annotate-info"> |
|
101 | 101 | <div> |
|
102 | 102 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}"> |
|
103 | 103 | {node|short}</a> |
|
104 | 104 | {desc|escape|firstline} |
|
105 | 105 | </div> |
|
106 | 106 | <div><em>{author|obfuscate}</em></div> |
|
107 | 107 | <div>parents: {parents%annotateparent}</div> |
|
108 | 108 | <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> |
|
109 | 109 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> |
|
110 | 110 | </div> |
|
111 | 111 | </td> |
|
112 | 112 | <td class="lineno"> |
|
113 | 113 | <a href="#{lineid}">{linenumber}</a> |
|
114 | 114 | </td> |
|
115 | 115 | <td class="source">{line|escape}</td> |
|
116 | 116 | </tr>' |
|
117 | 117 | annotateparent = ' |
|
118 | 118 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rev}</a>' |
|
119 | 119 | difflineplus = ' |
|
120 | 120 | <a href="#{lineid}"></a><span id="{lineid}" class="difflineplus">{strip(line|escape, '\r\n')}</span>' |
|
121 | 121 | difflineminus = ' |
|
122 | 122 | <a href="#{lineid}"></a><span id="{lineid}" class="difflineminus">{strip(line|escape, '\r\n')}</span>' |
|
123 | 123 | difflineat = ' |
|
124 | 124 | <a href="#{lineid}"></a><span id="{lineid}" class="difflineat">{strip(line|escape, '\r\n')}</span>' |
|
125 | 125 | diffline = ' |
|
126 | 126 | <a href="#{lineid}"></a><span id="{lineid}">{strip(line|escape, '\r\n')}</span>' |
|
127 | 127 | |
|
128 | 128 | comparisonblock =' |
|
129 | 129 | <tbody class="block"> |
|
130 | 130 | {lines} |
|
131 | 131 | </tbody>' |
|
132 | 132 | comparisonline = ' |
|
133 | 133 | <tr id="{lineid}"> |
|
134 | 134 | <td class="source {type}"><a class="linenr" href="#{lineid}">{leftlinenumber}</a> {leftline|escape}</td> |
|
135 | 135 | <td class="source {type}"><a class="linenr" href="#{lineid}">{rightlinenumber}</a> {rightline|escape}</td> |
|
136 | 136 | </tr>' |
|
137 | 137 | |
|
138 | 138 | changesetlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>' |
|
139 | 139 | changesetbranch = '<dt>branch</dt><dd>{name|escape}</dd>' |
|
140 | 140 | changesetparent = ' |
|
141 | 141 | <dt>parent {rev}</dt> |
|
142 | 142 | <dd>{changesetlink}</dd>' |
|
143 | 143 | changesetparentdiff = ' |
|
144 | 144 | <dt>parent {rev}</dt> |
|
145 | 145 | <dd>{changesetlink} {ifeq(node, basenode, '(current diff)', '({difffrom})')}</dd>' |
|
146 | 146 | difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">diff</a>' |
|
147 | 147 | filerevbranch = '<dt>branch</dt><dd>{name|escape}</dd>' |
|
148 | 148 | filerevparent = ' |
|
149 | 149 | <dt>parent {rev}</dt> |
|
150 | 150 | <dd> |
|
151 | 151 | <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}"> |
|
152 | 152 | {rename%filerename}{node|short} |
|
153 | 153 | </a> |
|
154 | 154 | </dd>' |
|
155 | 155 | filerename = '{file|escape}@' |
|
156 | 156 | filelogrename = '| <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">base</a>' |
|
157 | 157 | fileannotateparent = ' |
|
158 | 158 | <dt>parent {rev}</dt> |
|
159 | 159 | <dd> |
|
160 | 160 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}"> |
|
161 | 161 | {rename%filerename}{node|short} |
|
162 | 162 | </a> |
|
163 | 163 | </dd>' |
|
164 | 164 | changesetchild = ' |
|
165 | 165 | <dt>child {rev}</dt> |
|
166 | 166 | <dd><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></dd>' |
|
167 | 167 | filerevchild = ' |
|
168 | 168 | <dt>child {rev}</dt> |
|
169 | 169 | <dd> |
|
170 | 170 | <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> |
|
171 | 171 | </dd>' |
|
172 | 172 | fileannotatechild = ' |
|
173 | 173 | <dt>child {rev}</dt> |
|
174 | 174 | <dd> |
|
175 | 175 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> |
|
176 | 176 | </dd>' |
|
177 | 177 | tags = tags.tmpl |
|
178 | 178 | tagentry = ' |
|
179 | 179 | <tr class="parity{parity}"> |
|
180 | 180 | <td class="nowrap age">{date|rfc822date}</td> |
|
181 | 181 | <td><a href="{url|urlescape}rev/{tag|revescape}{sessionvars%urlparameter}">{tag|escape}</a></td> |
|
182 | 182 | <td class="nowrap"> |
|
183 | 183 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> | |
|
184 | 184 | <a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">changelog</a> | |
|
185 | 185 | <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a> |
|
186 | 186 | </td> |
|
187 | 187 | </tr>' |
|
188 | 188 | bookmarks = bookmarks.tmpl |
|
189 | 189 | bookmarkentry = ' |
|
190 | 190 | <tr class="parity{parity}"> |
|
191 | 191 | <td class="nowrap age">{date|rfc822date}</td> |
|
192 | 192 | <td><a href="{url|urlescape}rev/{bookmark|revescape}{sessionvars%urlparameter}">{bookmark|escape}</a></td> |
|
193 | 193 | <td class="nowrap"> |
|
194 | 194 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> | |
|
195 | 195 | <a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">changelog</a> | |
|
196 | 196 | <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a> |
|
197 | 197 | </td> |
|
198 | 198 | </tr>' |
|
199 | 199 | branches = branches.tmpl |
|
200 | 200 | branchentry = ' |
|
201 | 201 | <tr class="parity{parity}"> |
|
202 | 202 | <td class="nowrap age">{date|rfc822date}</td> |
|
203 | 203 | <td class="{status}"><a href="{url|urlescape}shortlog/{branch|revescape}{sessionvars%urlparameter}">{branch|escape}</a></td> |
|
204 | 204 | <td class="nowrap"> |
|
205 | 205 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> | |
|
206 | 206 | <a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">changelog</a> | |
|
207 | 207 | <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a> |
|
208 | 208 | </td> |
|
209 | 209 | </tr>' |
|
210 | 210 | diffblock = '<div class="diffblock"><pre class="sourcelines">{lines}</pre></div>' |
|
211 | 211 | filediffparent = ' |
|
212 | 212 | <dt>parent {rev}</dt> |
|
213 | 213 | <dd><a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></dd>' |
|
214 | 214 | filecompparent = ' |
|
215 | 215 | <dt>parent {rev}</dt> |
|
216 | 216 | <dd><a href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></dd>' |
|
217 | 217 | filediffchild = ' |
|
218 | 218 | <dt>child {rev}</dt> |
|
219 | 219 | <dd><a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></dd>' |
|
220 | 220 | filecompchild = ' |
|
221 | 221 | <dt>child {rev}</dt> |
|
222 | 222 | <dd><a href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></dd>' |
|
223 | 223 | shortlog = shortlog.tmpl |
|
224 | 224 | phasetag = '{ifeq(phase, 'public', '', '<span class="phasetag" title="{phase|escape}">{phase|escape}</span> ')}' |
|
225 | 225 | obsoletetag = '{if(obsolete, '<span class="obsoletetag" title="obsolete">obsolete</span> ')}' |
|
226 | 226 | instabilitytag = '<span class="instabilitytag" title="{instability|escape}">{instability|escape}</span> ' |
|
227 | 227 | tagtag = '<span class="tagtag" title="{name|escape}">{name|escape}</span> ' |
|
228 | 228 | branchtag = '<span class="branchtag" title="{name|escape}">{name|escape}</span> ' |
|
229 | 229 | inbranchtag = '<span class="inbranchtag" title="{name|escape}">{name|escape}</span> ' |
|
230 | 230 | bookmarktag = '<span class="bookmarktag" title="{name|escape}">{name|escape}</span> ' |
|
231 | 231 | alltags = '<span class="logtags">{phasetag}{obsoletetag}{instabilities%instabilitytag}{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span>' |
|
232 | 232 | successorlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> ' |
|
233 | 233 | obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}' |
|
234 | 234 | obsfateverb = '{obsfateverb(successors, markers)}' |
|
235 | 235 | obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}' |
|
236 | 236 | obsfateusers = '{if(obsfateusers(markers), ' by {join(obsfateusers(markers)%'{user|obfuscate}', ', ')}')}' |
|
237 | obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}' | |
|
237 | obsfatedate = '{if(obsfatedate(markers), ' {ifeq(min(obsfatedate(markers)), max(obsfatedate(markers)), '<span class="age">{min(obsfatedate(markers))|rfc822date}</span>', 'between <span class="age">{min(obsfatedate(markers))|rfc822date}</span> and <span class="age">{max(obsfatedate(markers))|rfc822date}</span>')}')}' | |
|
238 | obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}' | |
|
238 | 239 | shortlogentry = ' |
|
239 | 240 | <tr class="parity{parity}"> |
|
240 | 241 | <td class="nowrap age">{date|rfc822date}</td> |
|
241 | 242 | <td>{author|person}</td> |
|
242 | 243 | <td> |
|
243 | 244 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}"> |
|
244 | 245 | {desc|strip|firstline|escape|nonempty} |
|
245 | 246 | {alltags} |
|
246 | 247 | </a> |
|
247 | 248 | </td> |
|
248 | 249 | <td class="nowrap"> |
|
249 | 250 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> | |
|
250 | 251 | <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a> |
|
251 | 252 | </td> |
|
252 | 253 | </tr>' |
|
253 | 254 | filelogentry = ' |
|
254 | 255 | <tr class="parity{parity}"> |
|
255 | 256 | <td class="nowrap age">{date|rfc822date}</td> |
|
256 | 257 | <td>{author|person}</td> |
|
257 | 258 | <td> |
|
258 | 259 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}"> |
|
259 | 260 | {desc|strip|firstline|escape|nonempty} |
|
260 | 261 | {alltags} |
|
261 | 262 | </a> |
|
262 | 263 | </td> |
|
263 | 264 | <td class="nowrap"> |
|
264 | 265 | <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a> | |
|
265 | 266 | <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> | |
|
266 | 267 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a> |
|
267 | 268 | {rename%filelogrename} |
|
268 | 269 | </td> |
|
269 | 270 | </tr>' |
|
270 | 271 | archiveentry = '<li><a href="{url|urlescape}archive/{symrev}{extension}{ifeq(path,'/','',path|urlescape)}">{type|escape}</a></li>' |
|
271 | 272 | indexentry = ' |
|
272 | 273 | <tr class="parity{parity}"> |
|
273 | 274 | <td><a href="{url|urlescape}{sessionvars%urlparameter}">{name|escape}</a></td> |
|
274 | 275 | <td>{description}</td> |
|
275 | 276 | <td>{contact|obfuscate}</td> |
|
276 | 277 | <td class="age">{lastchange|rfc822date}</td> |
|
277 | 278 | <td class="indexlinks">{archives%indexarchiveentry}</td> |
|
278 | 279 | <td> |
|
279 | 280 | {if(isdirectory, '', |
|
280 | 281 | '<div class="rss_logo"> |
|
281 | 282 | <a href="{url|urlescape}rss-log">RSS</a> <a href="{url|urlescape}atom-log">Atom</a> |
|
282 | 283 | </div>' |
|
283 | 284 | )} |
|
284 | 285 | </td> |
|
285 | 286 | </tr>\n' |
|
286 | 287 | indexarchiveentry = '<a href="{url|urlescape}archive/{node|short}{extension}">{type|escape}</a> ' |
|
287 | 288 | index = index.tmpl |
|
288 | 289 | urlparameter = '{separator}{name}={value|urlescape}' |
|
289 | 290 | hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />' |
|
290 | 291 | graph = graph.tmpl |
|
291 | 292 | graphentry = graphentry.tmpl |
|
292 | 293 | breadcrumb = '> <a href="{url|urlescape}">{name|escape}</a> ' |
|
293 | 294 | |
|
294 | 295 | searchform = ' |
|
295 | 296 | <form action="{url|urlescape}log"> |
|
296 | 297 | {sessionvars%hiddenformentry} |
|
297 | 298 | <dl class="search"> |
|
298 | 299 | <dt><label>Search: </label></dt> |
|
299 | 300 | <dd><input type="text" name="rev" value="{query|escape}" /></dd> |
|
300 | 301 | </dl> |
|
301 | 302 | </form>' |
@@ -1,280 +1,281 | |||
|
1 | 1 | default = 'shortlog' |
|
2 | 2 | |
|
3 | 3 | mimetype = 'text/html; charset={encoding}' |
|
4 | 4 | header = header.tmpl |
|
5 | 5 | footer = footer.tmpl |
|
6 | 6 | search = search.tmpl |
|
7 | 7 | |
|
8 | 8 | changelog = shortlog.tmpl |
|
9 | 9 | shortlog = shortlog.tmpl |
|
10 | 10 | shortlogentry = shortlogentry.tmpl |
|
11 | 11 | graph = graph.tmpl |
|
12 | 12 | graphentry = graphentry.tmpl |
|
13 | 13 | help = help.tmpl |
|
14 | 14 | helptopics = helptopics.tmpl |
|
15 | 15 | |
|
16 | 16 | helpentry = ' |
|
17 | 17 | <tr><td> |
|
18 | 18 | <a href="{url|urlescape}help/{topic|escape}{sessionvars%urlparameter}"> |
|
19 | 19 | {if(basename, '{basename|escape}', '{topic|escape}')} |
|
20 | 20 | </a> |
|
21 | 21 | </td><td> |
|
22 | 22 | {summary|escape} |
|
23 | 23 | </td></tr>' |
|
24 | 24 | |
|
25 | 25 | naventry = '<a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
26 | 26 | navshortentry = '<a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
27 | 27 | navgraphentry = '<a href="{url|urlescape}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
28 | 28 | filenaventry = '<a href="{url|urlescape}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
29 | 29 | filedifflink = '<a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> ' |
|
30 | 30 | filenodelink = '<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> ' |
|
31 | 31 | filenolink = '{file|escape} ' |
|
32 | 32 | fileellipses = '...' |
|
33 | 33 | diffstatlink = diffstat.tmpl |
|
34 | 34 | diffstatnolink = diffstat.tmpl |
|
35 | 35 | changelogentry = shortlogentry.tmpl |
|
36 | 36 | searchentry = shortlogentry.tmpl |
|
37 | 37 | changeset = changeset.tmpl |
|
38 | 38 | manifest = manifest.tmpl |
|
39 | 39 | |
|
40 | 40 | nav = '{before%naventry} {after%naventry}' |
|
41 | 41 | navshort = '{before%navshortentry}{after%navshortentry}' |
|
42 | 42 | navgraph = '{before%navgraphentry}{after%navgraphentry}' |
|
43 | 43 | filenav = '{before%filenaventry}{after%filenaventry}' |
|
44 | 44 | |
|
45 | 45 | direntry = ' |
|
46 | 46 | <tr class="fileline"> |
|
47 | 47 | <td class="name"> |
|
48 | 48 | <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}"> |
|
49 | 49 | <img src="{staticurl|urlescape}coal-folder.png" alt="dir."/> {basename|escape}/ |
|
50 | 50 | </a> |
|
51 | 51 | <a href="{url|urlescape}file/{symrev}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}"> |
|
52 | 52 | {emptydirs|escape} |
|
53 | 53 | </a> |
|
54 | 54 | </td> |
|
55 | 55 | <td class="size"></td> |
|
56 | 56 | <td class="permissions">drwxr-xr-x</td> |
|
57 | 57 | </tr>' |
|
58 | 58 | |
|
59 | 59 | fileentry = ' |
|
60 | 60 | <tr class="fileline"> |
|
61 | 61 | <td class="filename"> |
|
62 | 62 | <a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}"> |
|
63 | 63 | <img src="{staticurl|urlescape}coal-file.png" alt="file"/> {basename|escape} |
|
64 | 64 | </a> |
|
65 | 65 | </td> |
|
66 | 66 | <td class="size">{size}</td> |
|
67 | 67 | <td class="permissions">{permissions|permissions}</td> |
|
68 | 68 | </tr>' |
|
69 | 69 | |
|
70 | 70 | filerevision = filerevision.tmpl |
|
71 | 71 | fileannotate = fileannotate.tmpl |
|
72 | 72 | filediff = filediff.tmpl |
|
73 | 73 | filecomparison = filecomparison.tmpl |
|
74 | 74 | filelog = filelog.tmpl |
|
75 | 75 | fileline = ' |
|
76 | 76 | <span id="{lineid}">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>' |
|
77 | 77 | filelogentry = filelogentry.tmpl |
|
78 | 78 | |
|
79 | 79 | annotateline = ' |
|
80 | 80 | <tr id="{lineid}"{ifeq(node, originalnode, ' class="thisrev"')}> |
|
81 | 81 | <td class="annotate parity{blockparity}"> |
|
82 | 82 | {if(blockhead, |
|
83 | 83 | '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}"> |
|
84 | 84 | {rev} |
|
85 | 85 | </a>')} |
|
86 | 86 | <div class="annotate-info"> |
|
87 | 87 | <div> |
|
88 | 88 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}"> |
|
89 | 89 | {node|short}</a> |
|
90 | 90 | {desc|escape|firstline} |
|
91 | 91 | </div> |
|
92 | 92 | <div><em>{author|obfuscate}</em></div> |
|
93 | 93 | <div>parents: {parents%annotateparent}</div> |
|
94 | 94 | <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> |
|
95 | 95 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> |
|
96 | 96 | </div> |
|
97 | 97 | </td> |
|
98 | 98 | <td class="source followlines-btn-parent"><a href="#{lineid}">{linenumber}</a> {line|escape}</td> |
|
99 | 99 | </tr>' |
|
100 | 100 | annotateparent = ' |
|
101 | 101 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rev}</a>' |
|
102 | 102 | diffblock = '<div class="bottomline inc-lineno"><pre class="sourcelines wrap">{lines}</pre></div>' |
|
103 | 103 | difflineplus = ' |
|
104 | 104 | <span id="{lineid}" class="plusline">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>' |
|
105 | 105 | difflineminus = ' |
|
106 | 106 | <span id="{lineid}" class="minusline">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>' |
|
107 | 107 | difflineat = ' |
|
108 | 108 | <span id="{lineid}" class="atline">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>' |
|
109 | 109 | diffline = ' |
|
110 | 110 | <span id="{lineid}">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>' |
|
111 | 111 | |
|
112 | 112 | comparisonblock =' |
|
113 | 113 | <tbody class="block"> |
|
114 | 114 | {lines} |
|
115 | 115 | </tbody>' |
|
116 | 116 | comparisonline = ' |
|
117 | 117 | <tr id="{lineid}"> |
|
118 | 118 | <td class="source {type}"><a href="#{lineid}">{leftlinenumber}</a> {leftline|escape}</td> |
|
119 | 119 | <td class="source {type}"><a href="#{lineid}">{rightlinenumber}</a> {rightline|escape}</td> |
|
120 | 120 | </tr>' |
|
121 | 121 | |
|
122 | 122 | changesetparent = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> ' |
|
123 | 123 | |
|
124 | 124 | changesetparentdiff = ' |
|
125 | 125 | {changesetparent} |
|
126 | 126 | {ifeq(node, basenode, '(current diff)', '({difffrom})')}' |
|
127 | 127 | |
|
128 | 128 | difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">diff</a>' |
|
129 | 129 | |
|
130 | 130 | filerevparent = '<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a> ' |
|
131 | 131 | filerevchild = '<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> ' |
|
132 | 132 | |
|
133 | 133 | filerename = '{file|escape}@' |
|
134 | 134 | filelogrename = ' |
|
135 | 135 | <span class="base"> |
|
136 | 136 | base |
|
137 | 137 | <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}"> |
|
138 | 138 | {file|escape}@{node|short} |
|
139 | 139 | </a> |
|
140 | 140 | </span>' |
|
141 | 141 | fileannotateparent = ' |
|
142 | 142 | <tr> |
|
143 | 143 | <td class="metatag">parent:</td> |
|
144 | 144 | <td> |
|
145 | 145 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}"> |
|
146 | 146 | {rename%filerename}{node|short} |
|
147 | 147 | </a> |
|
148 | 148 | </td> |
|
149 | 149 | </tr>' |
|
150 | 150 | changesetchild = ' <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>' |
|
151 | 151 | fileannotatechild = ' |
|
152 | 152 | <tr> |
|
153 | 153 | <td class="metatag">child:</td> |
|
154 | 154 | <td> |
|
155 | 155 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}"> |
|
156 | 156 | {node|short} |
|
157 | 157 | </a> |
|
158 | 158 | </td> |
|
159 | 159 | </tr>' |
|
160 | 160 | tags = tags.tmpl |
|
161 | 161 | tagentry = ' |
|
162 | 162 | <tr class="tagEntry"> |
|
163 | 163 | <td> |
|
164 | 164 | <a href="{url|urlescape}rev/{tag|revescape}{sessionvars%urlparameter}"> |
|
165 | 165 | {tag|escape} |
|
166 | 166 | </a> |
|
167 | 167 | </td> |
|
168 | 168 | <td class="node"> |
|
169 | 169 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}"> |
|
170 | 170 | {node|short} |
|
171 | 171 | </a> |
|
172 | 172 | </td> |
|
173 | 173 | </tr>' |
|
174 | 174 | bookmarks = bookmarks.tmpl |
|
175 | 175 | bookmarkentry = ' |
|
176 | 176 | <tr class="tagEntry"> |
|
177 | 177 | <td> |
|
178 | 178 | <a href="{url|urlescape}rev/{bookmark|revescape}{sessionvars%urlparameter}"> |
|
179 | 179 | {bookmark|escape} |
|
180 | 180 | </a> |
|
181 | 181 | </td> |
|
182 | 182 | <td class="node"> |
|
183 | 183 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}"> |
|
184 | 184 | {node|short} |
|
185 | 185 | </a> |
|
186 | 186 | </td> |
|
187 | 187 | </tr>' |
|
188 | 188 | branches = branches.tmpl |
|
189 | 189 | branchentry = ' |
|
190 | 190 | <tr class="tagEntry"> |
|
191 | 191 | <td> |
|
192 | 192 | <a href="{url|urlescape}shortlog/{branch|revescape}{sessionvars%urlparameter}" class="{status}"> |
|
193 | 193 | {branch|escape} |
|
194 | 194 | </a> |
|
195 | 195 | </td> |
|
196 | 196 | <td class="node"> |
|
197 | 197 | <a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}" class="{status}"> |
|
198 | 198 | {node|short} |
|
199 | 199 | </a> |
|
200 | 200 | </td> |
|
201 | 201 | </tr>' |
|
202 | 202 | phasetag = '{ifeq(phase, 'public', '', '<span class="phase">{phase|escape}</span> ')}' |
|
203 | 203 | obsoletetag = '{if(obsolete, '<span class="obsolete">obsolete</span> ')}' |
|
204 | 204 | instabilitytag = '<span class="instability">{instability|escape}</span> ' |
|
205 | 205 | changelogtag = '<span class="tag">{name|escape}</span> ' |
|
206 | 206 | changesettag = '<span class="tag">{tag|escape}</span> ' |
|
207 | 207 | changesetbookmark = '<span class="tag">{bookmark|escape}</span> ' |
|
208 | 208 | changelogbranchhead = '<span class="branchhead">{name|escape}</span> ' |
|
209 | 209 | changelogbranchname = '<span class="branchname">{name|escape}</span> ' |
|
210 | 210 | alltags = '{phasetag}{obsoletetag}{instabilities%instabilitytag}{inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}{bookmarks%changelogtag}' |
|
211 | 211 | |
|
212 | 212 | successorlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> ' |
|
213 | 213 | obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}' |
|
214 | 214 | obsfateverb = '{obsfateverb(successors, markers)}' |
|
215 | 215 | obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}' |
|
216 | 216 | obsfateusers = '{if(obsfateusers(markers), ' by {join(obsfateusers(markers)%'{user|obfuscate}', ', ')}')}' |
|
217 | obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}' | |
|
217 | obsfatedate = '{if(obsfatedate(markers), ' {ifeq(min(obsfatedate(markers)), max(obsfatedate(markers)), '<span class="age">{min(obsfatedate(markers))|rfc822date}</span>', 'between <span class="age">{min(obsfatedate(markers))|rfc822date}</span> and <span class="age">{max(obsfatedate(markers))|rfc822date}</span>')}')}' | |
|
218 | obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}' | |
|
218 | 219 | |
|
219 | 220 | filediffparent = ' |
|
220 | 221 | <tr> |
|
221 | 222 | <th class="parent">parent {rev}:</th> |
|
222 | 223 | <td class="parent"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td> |
|
223 | 224 | </tr>' |
|
224 | 225 | filediffchild = ' |
|
225 | 226 | <tr> |
|
226 | 227 | <th class="child">child {rev}:</th> |
|
227 | 228 | <td class="child"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> |
|
228 | 229 | </td> |
|
229 | 230 | </tr>' |
|
230 | 231 | |
|
231 | 232 | indexentry = ' |
|
232 | 233 | <tr> |
|
233 | 234 | <td><a href="{url|urlescape}{sessionvars%urlparameter}">{name|escape}</a></td> |
|
234 | 235 | <td>{description}</td> |
|
235 | 236 | <td>{contact|obfuscate}</td> |
|
236 | 237 | <td class="age">{lastchange|rfc822date}</td> |
|
237 | 238 | <td class="indexlinks">{archives%indexarchiveentry}</td> |
|
238 | 239 | <td> |
|
239 | 240 | {if(isdirectory, '', |
|
240 | 241 | '<a href="{url|urlescape}atom-log" title="subscribe to repository atom feed"> |
|
241 | 242 | <img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="subscribe to repository atom feed"> |
|
242 | 243 | </a>' |
|
243 | 244 | )} |
|
244 | 245 | </td> |
|
245 | 246 | </tr>\n' |
|
246 | 247 | indexarchiveentry = '<a href="{url|urlescape}archive/{node|short}{extension|urlescape}"> ↓{type|escape}</a>' |
|
247 | 248 | index = index.tmpl |
|
248 | 249 | archiveentry = ' |
|
249 | 250 | <li> |
|
250 | 251 | <a href="{url|urlescape}archive/{symrev}{extension|urlescape}{ifeq(path,'/','',path|urlescape)}">{type|escape}</a> |
|
251 | 252 | </li>' |
|
252 | 253 | notfound = notfound.tmpl |
|
253 | 254 | error = error.tmpl |
|
254 | 255 | urlparameter = '{separator}{name}={value|urlescape}' |
|
255 | 256 | hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />' |
|
256 | 257 | breadcrumb = '> <a href="{url|urlescape}">{name|escape}</a> ' |
|
257 | 258 | |
|
258 | 259 | searchform = ' |
|
259 | 260 | <form class="search" action="{url|urlescape}log"> |
|
260 | 261 | {sessionvars%hiddenformentry} |
|
261 | 262 | <p><input name="rev" id="search1" type="text" size="30" value="{query|escape}" /></p> |
|
262 | 263 | <div id="hint">{searchhint}</div> |
|
263 | 264 | </form>' |
|
264 | 265 | searchhint = 'Find changesets by keywords (author, files, the commit message), revision |
|
265 | 266 | number or hash, or <a href="{url|urlescape}help/revsets">revset expression</a>.' |
|
266 | 267 | |
|
267 | 268 | diffoptsform = ' |
|
268 | 269 | <form id="diffopts-form" |
|
269 | 270 | data-ignorews="{if(get(diffopts, 'ignorews'), '1', '0')}" |
|
270 | 271 | data-ignorewsamount="{if(get(diffopts, 'ignorewsamount'), '1', '0')}" |
|
271 | 272 | data-ignorewseol="{if(get(diffopts, 'ignorewseol'), '1', '0')}" |
|
272 | 273 | data-ignoreblanklines="{if(get(diffopts, 'ignoreblanklines'), '1', '0')}"> |
|
273 | 274 | <span>Ignore whitespace changes - </span> |
|
274 | 275 | <span>Everywhere:</span> |
|
275 | 276 | <input id="ignorews-checkbox" type="checkbox" /> |
|
276 | 277 | <span>Within whitespace:</span> |
|
277 | 278 | <input id="ignorewsamount-checkbox" type="checkbox" /> |
|
278 | 279 | <span>At end of lines:</span> |
|
279 | 280 | <input id="ignorewseol-checkbox" type="checkbox" /> |
|
280 | 281 | </form>' |
@@ -1,203 +1,204 | |||
|
1 | 1 | default = 'shortlog' |
|
2 | 2 | mimetype = 'text/html; charset={encoding}' |
|
3 | 3 | header = header.tmpl |
|
4 | 4 | footer = footer.tmpl |
|
5 | 5 | search = search.tmpl |
|
6 | 6 | changelog = changelog.tmpl |
|
7 | 7 | shortlog = shortlog.tmpl |
|
8 | 8 | shortlogentry = shortlogentry.tmpl |
|
9 | 9 | graph = graph.tmpl |
|
10 | 10 | graphentry = graphentry.tmpl |
|
11 | 11 | naventry = '<a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
12 | 12 | navshortentry = '<a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
13 | 13 | navgraphentry = '<a href="{url|urlescape}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
14 | 14 | filenaventry = '<a href="{url|urlescape}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
15 | 15 | filedifflink = '<a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> ' |
|
16 | 16 | filenodelink = '<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> ' |
|
17 | 17 | filenolink = '{file|escape} ' |
|
18 | 18 | fileellipses = '...' |
|
19 | 19 | changelogentry = changelogentry.tmpl |
|
20 | 20 | searchentry = changelogentry.tmpl |
|
21 | 21 | changeset = changeset.tmpl |
|
22 | 22 | manifest = manifest.tmpl |
|
23 | 23 | |
|
24 | 24 | nav = '{before%naventry} {after%naventry}' |
|
25 | 25 | navshort = '{before%navshortentry}{after%navshortentry}' |
|
26 | 26 | navgraph = '{before%navgraphentry}{after%navgraphentry}' |
|
27 | 27 | filenav = '{before%filenaventry}{after%filenaventry}' |
|
28 | 28 | |
|
29 | 29 | direntry = ' |
|
30 | 30 | <tr class="parity{parity}"> |
|
31 | 31 | <td><tt>drwxr-xr-x</tt> |
|
32 | 32 | <td> |
|
33 | 33 | <td> |
|
34 | 34 | <td> |
|
35 | 35 | <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">{basename|escape}/</a> |
|
36 | 36 | <a href="{url|urlescape}file/{symrev}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}"> |
|
37 | 37 | {emptydirs|urlescape} |
|
38 | 38 | </a>' |
|
39 | 39 | |
|
40 | 40 | fileentry = ' |
|
41 | 41 | <tr class="parity{parity}"> |
|
42 | 42 | <td><tt>{permissions|permissions}</tt> |
|
43 | 43 | <td align=right><tt class="date">{date|isodate}</tt> |
|
44 | 44 | <td align=right><tt>{size}</tt> |
|
45 | 45 | <td><a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">{basename|escape}</a>' |
|
46 | 46 | |
|
47 | 47 | filerevision = filerevision.tmpl |
|
48 | 48 | fileannotate = fileannotate.tmpl |
|
49 | 49 | filediff = filediff.tmpl |
|
50 | 50 | filelog = filelog.tmpl |
|
51 | 51 | fileline = '<div class="parity{parity}"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</div>' |
|
52 | 52 | filelogentry = filelogentry.tmpl |
|
53 | 53 | |
|
54 | 54 | # The ensures that all table cells have content (even if there |
|
55 | 55 | # is an empty line in the annotated file), which in turn ensures that |
|
56 | 56 | # all table rows have equal height. |
|
57 | 57 | annotateline = ' |
|
58 | 58 | <tr class="parity{parity}{ifeq(node, originalnode, ' thisrev')}"> |
|
59 | 59 | <td class="annotate parity{blockparity}"> |
|
60 | 60 | {if(blockhead, |
|
61 | 61 | '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}"> |
|
62 | 62 | {rev} |
|
63 | 63 | </a>')} |
|
64 | 64 | <div class="annotate-info"> |
|
65 | 65 | <div> |
|
66 | 66 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}"> |
|
67 | 67 | {node|short}</a> |
|
68 | 68 | {desc|escape|firstline} |
|
69 | 69 | </div> |
|
70 | 70 | <div><em>{author|obfuscate}</em></div> |
|
71 | 71 | <div>parents: {parents%annotateparent}</div> |
|
72 | 72 | <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> |
|
73 | 73 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> |
|
74 | 74 | </div> |
|
75 | 75 | </td> |
|
76 | 76 | <td> |
|
77 | 77 | <a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a> |
|
78 | 78 | </td> |
|
79 | 79 | <td><pre> {line|escape}</pre></td> |
|
80 | 80 | </tr>' |
|
81 | 81 | annotateparent = ' |
|
82 | 82 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rev}</a>' |
|
83 | 83 | difflineplus = '<span class="plusline"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}</span>' |
|
84 | 84 | difflineminus = '<span class="minusline"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}</span>' |
|
85 | 85 | difflineat = '<span class="atline"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}</span>' |
|
86 | 86 | diffline = '<a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}' |
|
87 | 87 | changesetlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>' |
|
88 | 88 | changelogparent = ' |
|
89 | 89 | <tr> |
|
90 | 90 | <th class="parent">parent {rev}:</th> |
|
91 | 91 | <td class="parent"> |
|
92 | 92 | {changesetlink} |
|
93 | 93 | </td> |
|
94 | 94 | </tr>' |
|
95 | 95 | changesetparent = ' |
|
96 | 96 | <tr> |
|
97 | 97 | <th class="parent">parent {rev}:</th> |
|
98 | 98 | <td class="parent">{changesetlink}</td> |
|
99 | 99 | </tr>' |
|
100 | 100 | changesetparentdiff = ' |
|
101 | 101 | <tr> |
|
102 | 102 | <th class="parent">parent {rev}:</th> |
|
103 | 103 | <td class="parent">{changesetlink} {ifeq(node, basenode, '(current diff)', '({difffrom})')}</td> |
|
104 | 104 | </tr>' |
|
105 | 105 | difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">diff</a>' |
|
106 | 106 | filerevparent = ' |
|
107 | 107 | <tr> |
|
108 | 108 | <td class="metatag">parent:</td> |
|
109 | 109 | <td> |
|
110 | 110 | <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}"> |
|
111 | 111 | {rename%filerename}{node|short} |
|
112 | 112 | </a> |
|
113 | 113 | </td> |
|
114 | 114 | </tr>' |
|
115 | 115 | filerename = '{file|escape}@' |
|
116 | 116 | filelogrename = ' |
|
117 | 117 | <tr> |
|
118 | 118 | <th>base:</th> |
|
119 | 119 | <td> |
|
120 | 120 | <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}"> |
|
121 | 121 | {file|escape}@{node|short} |
|
122 | 122 | </a> |
|
123 | 123 | </td> |
|
124 | 124 | </tr>' |
|
125 | 125 | fileannotateparent = ' |
|
126 | 126 | <tr> |
|
127 | 127 | <td class="metatag">parent:</td> |
|
128 | 128 | <td> |
|
129 | 129 | <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}"> |
|
130 | 130 | {rename%filerename}{node|short} |
|
131 | 131 | </a> |
|
132 | 132 | </td> |
|
133 | 133 | </tr>' |
|
134 | 134 | changesetchild = ' |
|
135 | 135 | <tr> |
|
136 | 136 | <th class="child">child {rev}:</th> |
|
137 | 137 | <td class="child"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td> |
|
138 | 138 | </tr>' |
|
139 | 139 | changelogchild = ' |
|
140 | 140 | <tr> |
|
141 | 141 | <th class="child">child {rev}:</th> |
|
142 | 142 | <td class="child"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td> |
|
143 | 143 | </tr>' |
|
144 | 144 | filerevchild = ' |
|
145 | 145 | <tr> |
|
146 | 146 | <td class="metatag">child:</td> |
|
147 | 147 | <td><a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td> |
|
148 | 148 | </tr>' |
|
149 | 149 | fileannotatechild = ' |
|
150 | 150 | <tr> |
|
151 | 151 | <td class="metatag">child:</td> |
|
152 | 152 | <td><a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td> |
|
153 | 153 | </tr>' |
|
154 | 154 | tags = tags.tmpl |
|
155 | 155 | tagentry = ' |
|
156 | 156 | <li class="tagEntry parity{parity}"> |
|
157 | 157 | <tt class="node">{node}</tt> |
|
158 | 158 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{tag|escape}</a> |
|
159 | 159 | </li>' |
|
160 | 160 | branches = branches.tmpl |
|
161 | 161 | branchentry = ' |
|
162 | 162 | <li class="tagEntry parity{parity}"> |
|
163 | 163 | <tt class="node">{node}</tt> |
|
164 | 164 | <a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}" class="{status}">{branch|escape}</a> |
|
165 | 165 | </li>' |
|
166 | 166 | diffblock = '<pre class="parity{parity}">{lines}</pre>' |
|
167 | 167 | changelogtag = '<tr><th class="tag">tag:</th><td class="tag">{tag|escape}</td></tr>' |
|
168 | 168 | changesettag = '<tr><th class="tag">tag:</th><td class="tag">{tag|escape}</td></tr>' |
|
169 | 169 | successorlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> ' |
|
170 | 170 | obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}' |
|
171 | 171 | obsfateverb = '{obsfateverb(successors, markers)}' |
|
172 | 172 | obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}' |
|
173 | 173 | obsfateusers = '{if(obsfateusers(markers), ' by {join(obsfateusers(markers)%'{user|obfuscate}', ', ')}')}' |
|
174 | obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}' | |
|
174 | obsfatedate = '{if(obsfatedate(markers), ' {ifeq(min(obsfatedate(markers)), max(obsfatedate(markers)), '<span class="age">{min(obsfatedate(markers))|rfc822date}</span>', 'between <span class="age">{min(obsfatedate(markers))|rfc822date}</span> and <span class="age">{max(obsfatedate(markers))|rfc822date}</span>')}')}' | |
|
175 | obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}' | |
|
175 | 176 | filediffparent = ' |
|
176 | 177 | <tr> |
|
177 | 178 | <th class="parent">parent {rev}:</th> |
|
178 | 179 | <td class="parent"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td> |
|
179 | 180 | </tr>' |
|
180 | 181 | filediffchild = ' |
|
181 | 182 | <tr> |
|
182 | 183 | <th class="child">child {rev}:</th> |
|
183 | 184 | <td class="child"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td> |
|
184 | 185 | </tr>' |
|
185 | 186 | indexentry = ' |
|
186 | 187 | <tr class="parity{parity}"> |
|
187 | 188 | <td><a href="{url|urlescape}{sessionvars%urlparameter}">{name|escape}</a></td> |
|
188 | 189 | <td>{description}</td> |
|
189 | 190 | <td>{contact|obfuscate}</td> |
|
190 | 191 | <td class="age">{lastchange|rfc822date}</td> |
|
191 | 192 | <td class="indexlinks"> |
|
192 | 193 | <a href="{url|urlescape}rss-log">RSS</a> |
|
193 | 194 | <a href="{url|urlescape}atom-log">Atom</a> |
|
194 | 195 | {archives%archiveentry} |
|
195 | 196 | </td> |
|
196 | 197 | </tr>' |
|
197 | 198 | index = index.tmpl |
|
198 | 199 | archiveentry = '<a href="{url|urlescape}archive/{symrev}{extension|urlescape}">{type|escape}</a> ' |
|
199 | 200 | notfound = notfound.tmpl |
|
200 | 201 | error = error.tmpl |
|
201 | 202 | urlparameter = '{separator}{name}={value|urlescape}' |
|
202 | 203 | hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />' |
|
203 | 204 | breadcrumb = '> <a href="{url|urlescape}">{name|escape}</a> ' |
@@ -1,1583 +1,1583 | |||
|
1 | 1 | $ cat >> $HGRCPATH << EOF |
|
2 | 2 | > [phases] |
|
3 | 3 | > # public changeset are not obsolete |
|
4 | 4 | > publish=false |
|
5 | 5 | > [ui] |
|
6 | 6 | > logtemplate="{rev}:{node|short} ({phase}{if(obsolete, ' *{obsolete}*')}{if(instabilities, ' {instabilities}')}) [{tags} {bookmarks}] {desc|firstline}{if(obsfate, " [{join(obsfate, "; ")}]")}\n" |
|
7 | 7 | > EOF |
|
8 | 8 | $ mkcommit() { |
|
9 | 9 | > echo "$1" > "$1" |
|
10 | 10 | > hg add "$1" |
|
11 | 11 | > hg ci -m "add $1" |
|
12 | 12 | > } |
|
13 | 13 | $ getid() { |
|
14 | 14 | > hg log -T "{node}\n" --hidden -r "desc('$1')" |
|
15 | 15 | > } |
|
16 | 16 | |
|
17 | 17 | $ cat > debugkeys.py <<EOF |
|
18 | 18 | > def reposetup(ui, repo): |
|
19 | 19 | > class debugkeysrepo(repo.__class__): |
|
20 | 20 | > def listkeys(self, namespace): |
|
21 | 21 | > ui.write('listkeys %s\n' % (namespace,)) |
|
22 | 22 | > return super(debugkeysrepo, self).listkeys(namespace) |
|
23 | 23 | > |
|
24 | 24 | > if repo.local(): |
|
25 | 25 | > repo.__class__ = debugkeysrepo |
|
26 | 26 | > EOF |
|
27 | 27 | |
|
28 | 28 | $ hg init tmpa |
|
29 | 29 | $ cd tmpa |
|
30 | 30 | $ mkcommit kill_me |
|
31 | 31 | |
|
32 | 32 | Checking that the feature is properly disabled |
|
33 | 33 | |
|
34 | 34 | $ hg debugobsolete -d '0 0' `getid kill_me` -u babar |
|
35 | 35 | abort: creating obsolete markers is not enabled on this repo |
|
36 | 36 | [255] |
|
37 | 37 | |
|
38 | 38 | Enabling it |
|
39 | 39 | |
|
40 | 40 | $ cat >> $HGRCPATH << EOF |
|
41 | 41 | > [experimental] |
|
42 | 42 | > evolution=exchange |
|
43 | 43 | > evolution.createmarkers=True |
|
44 | 44 | > EOF |
|
45 | 45 | |
|
46 | 46 | Killing a single changeset without replacement |
|
47 | 47 | |
|
48 | 48 | $ hg debugobsolete 0 |
|
49 | 49 | abort: changeset references must be full hexadecimal node identifiers |
|
50 | 50 | [255] |
|
51 | 51 | $ hg debugobsolete '00' |
|
52 | 52 | abort: changeset references must be full hexadecimal node identifiers |
|
53 | 53 | [255] |
|
54 | 54 | $ hg debugobsolete -d '0 0' `getid kill_me` -u babar |
|
55 | 55 | obsoleted 1 changesets |
|
56 | 56 | $ hg debugobsolete |
|
57 | 57 | 97b7c2d76b1845ed3eb988cd612611e72406cef0 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'babar'} |
|
58 | 58 | |
|
59 | 59 | (test that mercurial is not confused) |
|
60 | 60 | |
|
61 | 61 | $ hg up null --quiet # having 0 as parent prevents it to be hidden |
|
62 | 62 | $ hg tip |
|
63 | 63 | -1:000000000000 (public) [tip ] |
|
64 | 64 | $ hg up --hidden tip --quiet |
|
65 | 65 | updating to a hidden changeset 97b7c2d76b18 |
|
66 | 66 | (hidden revision '97b7c2d76b18' is pruned) |
|
67 | 67 | |
|
68 | 68 | Killing a single changeset with itself should fail |
|
69 | 69 | (simple local safeguard) |
|
70 | 70 | |
|
71 | 71 | $ hg debugobsolete `getid kill_me` `getid kill_me` |
|
72 | 72 | abort: bad obsmarker input: in-marker cycle with 97b7c2d76b1845ed3eb988cd612611e72406cef0 |
|
73 | 73 | [255] |
|
74 | 74 | |
|
75 | 75 | $ cd .. |
|
76 | 76 | |
|
77 | 77 | Killing a single changeset with replacement |
|
78 | 78 | (and testing the format option) |
|
79 | 79 | |
|
80 | 80 | $ hg init tmpb |
|
81 | 81 | $ cd tmpb |
|
82 | 82 | $ mkcommit a |
|
83 | 83 | $ mkcommit b |
|
84 | 84 | $ mkcommit original_c |
|
85 | 85 | $ hg up "desc('b')" |
|
86 | 86 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
87 | 87 | $ mkcommit new_c |
|
88 | 88 | created new head |
|
89 | 89 | $ hg log -r 'hidden()' --template '{rev}:{node|short} {desc}\n' --hidden |
|
90 | 90 | $ hg debugobsolete --config format.obsstore-version=0 --flag 12 `getid original_c` `getid new_c` -d '121 120' |
|
91 | 91 | obsoleted 1 changesets |
|
92 | 92 | $ hg log -r 'hidden()' --template '{rev}:{node|short} {desc}\n' --hidden |
|
93 | 93 | 2:245bde4270cd add original_c |
|
94 | 94 | $ hg debugrevlog -cd |
|
95 | 95 | # rev p1rev p2rev start end deltastart base p1 p2 rawsize totalsize compression heads chainlen |
|
96 | 96 | 0 -1 -1 0 59 0 0 0 0 58 58 0 1 0 |
|
97 | 97 | 1 0 -1 59 118 59 59 0 0 58 116 0 1 0 |
|
98 | 98 | 2 1 -1 118 193 118 118 59 0 76 192 0 1 0 |
|
99 | 99 | 3 1 -1 193 260 193 193 59 0 66 258 0 2 0 |
|
100 | 100 | $ hg debugobsolete |
|
101 | 101 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
|
102 | 102 | |
|
103 | 103 | (check for version number of the obsstore) |
|
104 | 104 | |
|
105 | 105 | $ dd bs=1 count=1 if=.hg/store/obsstore 2>/dev/null |
|
106 | 106 | \x00 (no-eol) (esc) |
|
107 | 107 | |
|
108 | 108 | do it again (it read the obsstore before adding new changeset) |
|
109 | 109 | |
|
110 | 110 | $ hg up '.^' |
|
111 | 111 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
112 | 112 | $ mkcommit new_2_c |
|
113 | 113 | created new head |
|
114 | 114 | $ hg debugobsolete -d '1337 0' `getid new_c` `getid new_2_c` |
|
115 | 115 | obsoleted 1 changesets |
|
116 | 116 | $ hg debugobsolete |
|
117 | 117 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
|
118 | 118 | cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'} |
|
119 | 119 | |
|
120 | 120 | Register two markers with a missing node |
|
121 | 121 | |
|
122 | 122 | $ hg up '.^' |
|
123 | 123 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
124 | 124 | $ mkcommit new_3_c |
|
125 | 125 | created new head |
|
126 | 126 | $ hg debugobsolete -d '1338 0' `getid new_2_c` 1337133713371337133713371337133713371337 |
|
127 | 127 | obsoleted 1 changesets |
|
128 | 128 | $ hg debugobsolete -d '1339 0' 1337133713371337133713371337133713371337 `getid new_3_c` |
|
129 | 129 | $ hg debugobsolete |
|
130 | 130 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
|
131 | 131 | cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'} |
|
132 | 132 | ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
133 | 133 | 1337133713371337133713371337133713371337 5601fb93a350734d935195fee37f4054c529ff39 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
134 | 134 | |
|
135 | 135 | Test the --index option of debugobsolete command |
|
136 | 136 | $ hg debugobsolete --index |
|
137 | 137 | 0 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
|
138 | 138 | 1 cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'} |
|
139 | 139 | 2 ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
140 | 140 | 3 1337133713371337133713371337133713371337 5601fb93a350734d935195fee37f4054c529ff39 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
141 | 141 | |
|
142 | 142 | Refuse pathological nullid successors |
|
143 | 143 | $ hg debugobsolete -d '9001 0' 1337133713371337133713371337133713371337 0000000000000000000000000000000000000000 |
|
144 | 144 | transaction abort! |
|
145 | 145 | rollback completed |
|
146 | 146 | abort: bad obsolescence marker detected: invalid successors nullid |
|
147 | 147 | [255] |
|
148 | 148 | |
|
149 | 149 | Check that graphlog detect that a changeset is obsolete: |
|
150 | 150 | |
|
151 | 151 | $ hg log -G |
|
152 | 152 | @ 5:5601fb93a350 (draft) [tip ] add new_3_c |
|
153 | 153 | | |
|
154 | 154 | o 1:7c3bad9141dc (draft) [ ] add b |
|
155 | 155 | | |
|
156 | 156 | o 0:1f0dee641bb7 (draft) [ ] add a |
|
157 | 157 | |
|
158 | 158 | |
|
159 | 159 | check that heads does not report them |
|
160 | 160 | |
|
161 | 161 | $ hg heads |
|
162 | 162 | 5:5601fb93a350 (draft) [tip ] add new_3_c |
|
163 | 163 | $ hg heads --hidden |
|
164 | 164 | 5:5601fb93a350 (draft) [tip ] add new_3_c |
|
165 | 165 | 4:ca819180edb9 (draft *obsolete*) [ ] add new_2_c [rewritten as 5:5601fb93a350] |
|
166 | 166 | 3:cdbce2fbb163 (draft *obsolete*) [ ] add new_c [rewritten as 4:ca819180edb9] |
|
167 | 167 | 2:245bde4270cd (draft *obsolete*) [ ] add original_c [rewritten as 3:cdbce2fbb163] |
|
168 | 168 | |
|
169 | 169 | |
|
170 | 170 | check that summary does not report them |
|
171 | 171 | |
|
172 | 172 | $ hg init ../sink |
|
173 | 173 | $ echo '[paths]' >> .hg/hgrc |
|
174 | 174 | $ echo 'default=../sink' >> .hg/hgrc |
|
175 | 175 | $ hg summary --remote |
|
176 | 176 | parent: 5:5601fb93a350 tip |
|
177 | 177 | add new_3_c |
|
178 | 178 | branch: default |
|
179 | 179 | commit: (clean) |
|
180 | 180 | update: (current) |
|
181 | 181 | phases: 3 draft |
|
182 | 182 | remote: 3 outgoing |
|
183 | 183 | |
|
184 | 184 | $ hg summary --remote --hidden |
|
185 | 185 | parent: 5:5601fb93a350 tip |
|
186 | 186 | add new_3_c |
|
187 | 187 | branch: default |
|
188 | 188 | commit: (clean) |
|
189 | 189 | update: 3 new changesets, 4 branch heads (merge) |
|
190 | 190 | phases: 6 draft |
|
191 | 191 | remote: 3 outgoing |
|
192 | 192 | |
|
193 | 193 | check that various commands work well with filtering |
|
194 | 194 | |
|
195 | 195 | $ hg tip |
|
196 | 196 | 5:5601fb93a350 (draft) [tip ] add new_3_c |
|
197 | 197 | $ hg log -r 6 |
|
198 | 198 | abort: unknown revision '6'! |
|
199 | 199 | [255] |
|
200 | 200 | $ hg log -r 4 |
|
201 | 201 | abort: hidden revision '4' was rewritten as: 5601fb93a350! |
|
202 | 202 | (use --hidden to access hidden revisions) |
|
203 | 203 | [255] |
|
204 | 204 | $ hg debugrevspec 'rev(6)' |
|
205 | 205 | $ hg debugrevspec 'rev(4)' |
|
206 | 206 | $ hg debugrevspec 'null' |
|
207 | 207 | -1 |
|
208 | 208 | |
|
209 | 209 | Check that public changeset are not accounted as obsolete: |
|
210 | 210 | |
|
211 | 211 | $ hg --hidden phase --public 2 |
|
212 | 212 | 1 new phase-divergent changesets |
|
213 | 213 | $ hg log -G |
|
214 | 214 | @ 5:5601fb93a350 (draft phase-divergent) [tip ] add new_3_c |
|
215 | 215 | | |
|
216 | 216 | | o 2:245bde4270cd (public) [ ] add original_c |
|
217 | 217 | |/ |
|
218 | 218 | o 1:7c3bad9141dc (public) [ ] add b |
|
219 | 219 | | |
|
220 | 220 | o 0:1f0dee641bb7 (public) [ ] add a |
|
221 | 221 | |
|
222 | 222 | |
|
223 | 223 | And that bumped changeset are detected |
|
224 | 224 | -------------------------------------- |
|
225 | 225 | |
|
226 | 226 | If we didn't filtered obsolete changesets out, 3 and 4 would show up too. Also |
|
227 | 227 | note that the bumped changeset (5:5601fb93a350) is not a direct successor of |
|
228 | 228 | the public changeset |
|
229 | 229 | |
|
230 | 230 | $ hg log --hidden -r 'phasedivergent()' |
|
231 | 231 | 5:5601fb93a350 (draft phase-divergent) [tip ] add new_3_c |
|
232 | 232 | |
|
233 | 233 | And that we can't push bumped changeset |
|
234 | 234 | |
|
235 | 235 | $ hg push ../tmpa -r 0 --force #(make repo related) |
|
236 | 236 | pushing to ../tmpa |
|
237 | 237 | searching for changes |
|
238 | 238 | warning: repository is unrelated |
|
239 | 239 | adding changesets |
|
240 | 240 | adding manifests |
|
241 | 241 | adding file changes |
|
242 | 242 | added 1 changesets with 1 changes to 1 files (+1 heads) |
|
243 | 243 | $ hg push ../tmpa |
|
244 | 244 | pushing to ../tmpa |
|
245 | 245 | searching for changes |
|
246 | 246 | abort: push includes phase-divergent changeset: 5601fb93a350! |
|
247 | 247 | [255] |
|
248 | 248 | |
|
249 | 249 | Fixing "bumped" situation |
|
250 | 250 | We need to create a clone of 5 and add a special marker with a flag |
|
251 | 251 | |
|
252 | 252 | $ hg summary |
|
253 | 253 | parent: 5:5601fb93a350 tip (phase-divergent) |
|
254 | 254 | add new_3_c |
|
255 | 255 | branch: default |
|
256 | 256 | commit: (clean) |
|
257 | 257 | update: 1 new changesets, 2 branch heads (merge) |
|
258 | 258 | phases: 1 draft |
|
259 | 259 | phase-divergent: 1 changesets |
|
260 | 260 | $ hg up '5^' |
|
261 | 261 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
262 | 262 | $ hg revert -ar 5 |
|
263 | 263 | adding new_3_c |
|
264 | 264 | $ hg ci -m 'add n3w_3_c' |
|
265 | 265 | created new head |
|
266 | 266 | $ hg debugobsolete -d '1338 0' --flags 1 `getid new_3_c` `getid n3w_3_c` |
|
267 | 267 | obsoleted 1 changesets |
|
268 | 268 | $ hg log -r 'phasedivergent()' |
|
269 | 269 | $ hg log -G |
|
270 | 270 | @ 6:6f9641995072 (draft) [tip ] add n3w_3_c |
|
271 | 271 | | |
|
272 | 272 | | o 2:245bde4270cd (public) [ ] add original_c |
|
273 | 273 | |/ |
|
274 | 274 | o 1:7c3bad9141dc (public) [ ] add b |
|
275 | 275 | | |
|
276 | 276 | o 0:1f0dee641bb7 (public) [ ] add a |
|
277 | 277 | |
|
278 | 278 | |
|
279 | 279 | Basic exclusive testing |
|
280 | 280 | |
|
281 | 281 | $ hg log -G --hidden |
|
282 | 282 | @ 6:6f9641995072 (draft) [tip ] add n3w_3_c |
|
283 | 283 | | |
|
284 | 284 | | x 5:5601fb93a350 (draft *obsolete*) [ ] add new_3_c [rewritten as 6:6f9641995072] |
|
285 | 285 | |/ |
|
286 | 286 | | x 4:ca819180edb9 (draft *obsolete*) [ ] add new_2_c [rewritten as 5:5601fb93a350] |
|
287 | 287 | |/ |
|
288 | 288 | | x 3:cdbce2fbb163 (draft *obsolete*) [ ] add new_c [rewritten as 4:ca819180edb9] |
|
289 | 289 | |/ |
|
290 | 290 | | o 2:245bde4270cd (public) [ ] add original_c |
|
291 | 291 | |/ |
|
292 | 292 | o 1:7c3bad9141dc (public) [ ] add b |
|
293 | 293 | | |
|
294 | 294 | o 0:1f0dee641bb7 (public) [ ] add a |
|
295 | 295 | |
|
296 | 296 | $ hg debugobsolete --rev 6f9641995072 |
|
297 | 297 | 1337133713371337133713371337133713371337 5601fb93a350734d935195fee37f4054c529ff39 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
298 | 298 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
|
299 | 299 | 5601fb93a350734d935195fee37f4054c529ff39 6f96419950729f3671185b847352890f074f7557 1 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
300 | 300 | ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
301 | 301 | cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'} |
|
302 | 302 | $ hg debugobsolete --rev 6f9641995072 --exclusive |
|
303 | 303 | 5601fb93a350734d935195fee37f4054c529ff39 6f96419950729f3671185b847352890f074f7557 1 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
304 | 304 | $ hg debugobsolete --rev 5601fb93a350 --hidden |
|
305 | 305 | 1337133713371337133713371337133713371337 5601fb93a350734d935195fee37f4054c529ff39 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
306 | 306 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
|
307 | 307 | ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
308 | 308 | cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'} |
|
309 | 309 | $ hg debugobsolete --rev 5601fb93a350 --hidden --exclusive |
|
310 | 310 | $ hg debugobsolete --rev 5601fb93a350+6f9641995072 --hidden --exclusive |
|
311 | 311 | 1337133713371337133713371337133713371337 5601fb93a350734d935195fee37f4054c529ff39 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
312 | 312 | 5601fb93a350734d935195fee37f4054c529ff39 6f96419950729f3671185b847352890f074f7557 1 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
313 | 313 | ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
314 | 314 | |
|
315 | 315 | $ cd .. |
|
316 | 316 | |
|
317 | 317 | Revision 0 is hidden |
|
318 | 318 | -------------------- |
|
319 | 319 | |
|
320 | 320 | $ hg init rev0hidden |
|
321 | 321 | $ cd rev0hidden |
|
322 | 322 | |
|
323 | 323 | $ mkcommit kill0 |
|
324 | 324 | $ hg up -q null |
|
325 | 325 | $ hg debugobsolete `getid kill0` |
|
326 | 326 | obsoleted 1 changesets |
|
327 | 327 | $ mkcommit a |
|
328 | 328 | $ mkcommit b |
|
329 | 329 | |
|
330 | 330 | Should pick the first visible revision as "repo" node |
|
331 | 331 | |
|
332 | 332 | $ hg archive ../archive-null |
|
333 | 333 | $ cat ../archive-null/.hg_archival.txt |
|
334 | 334 | repo: 1f0dee641bb7258c56bd60e93edfa2405381c41e |
|
335 | 335 | node: 7c3bad9141dcb46ff89abf5f61856facd56e476c |
|
336 | 336 | branch: default |
|
337 | 337 | latesttag: null |
|
338 | 338 | latesttagdistance: 2 |
|
339 | 339 | changessincelatesttag: 2 |
|
340 | 340 | |
|
341 | 341 | |
|
342 | 342 | $ cd .. |
|
343 | 343 | |
|
344 | 344 | Can disable transaction summary report |
|
345 | 345 | |
|
346 | 346 | $ hg init transaction-summary |
|
347 | 347 | $ cd transaction-summary |
|
348 | 348 | $ mkcommit a |
|
349 | 349 | $ mkcommit b |
|
350 | 350 | $ hg up -q null |
|
351 | 351 | $ hg --config experimental.evolution.report-instabilities=false debugobsolete `getid a` |
|
352 | 352 | obsoleted 1 changesets |
|
353 | 353 | $ cd .. |
|
354 | 354 | |
|
355 | 355 | Exchange Test |
|
356 | 356 | ============================ |
|
357 | 357 | |
|
358 | 358 | Destination repo does not have any data |
|
359 | 359 | --------------------------------------- |
|
360 | 360 | |
|
361 | 361 | Simple incoming test |
|
362 | 362 | |
|
363 | 363 | $ hg init tmpc |
|
364 | 364 | $ cd tmpc |
|
365 | 365 | $ hg incoming ../tmpb |
|
366 | 366 | comparing with ../tmpb |
|
367 | 367 | 0:1f0dee641bb7 (public) [ ] add a |
|
368 | 368 | 1:7c3bad9141dc (public) [ ] add b |
|
369 | 369 | 2:245bde4270cd (public) [ ] add original_c |
|
370 | 370 | 6:6f9641995072 (draft) [tip ] add n3w_3_c |
|
371 | 371 | |
|
372 | 372 | Try to pull markers |
|
373 | 373 | (extinct changeset are excluded but marker are pushed) |
|
374 | 374 | |
|
375 | 375 | $ hg pull ../tmpb |
|
376 | 376 | pulling from ../tmpb |
|
377 | 377 | requesting all changes |
|
378 | 378 | adding changesets |
|
379 | 379 | adding manifests |
|
380 | 380 | adding file changes |
|
381 | 381 | added 4 changesets with 4 changes to 4 files (+1 heads) |
|
382 | 382 | 5 new obsolescence markers |
|
383 | 383 | new changesets 1f0dee641bb7:6f9641995072 |
|
384 | 384 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
385 | 385 | $ hg debugobsolete |
|
386 | 386 | 1337133713371337133713371337133713371337 5601fb93a350734d935195fee37f4054c529ff39 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
387 | 387 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
|
388 | 388 | 5601fb93a350734d935195fee37f4054c529ff39 6f96419950729f3671185b847352890f074f7557 1 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
389 | 389 | ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
390 | 390 | cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'} |
|
391 | 391 | |
|
392 | 392 | Rollback//Transaction support |
|
393 | 393 | |
|
394 | 394 | $ hg debugobsolete -d '1340 0' aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |
|
395 | 395 | $ hg debugobsolete |
|
396 | 396 | 1337133713371337133713371337133713371337 5601fb93a350734d935195fee37f4054c529ff39 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
397 | 397 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
|
398 | 398 | 5601fb93a350734d935195fee37f4054c529ff39 6f96419950729f3671185b847352890f074f7557 1 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
399 | 399 | ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
400 | 400 | cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'} |
|
401 | 401 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 0 (Thu Jan 01 00:22:20 1970 +0000) {'user': 'test'} |
|
402 | 402 | $ hg rollback -n |
|
403 | 403 | repository tip rolled back to revision 3 (undo debugobsolete) |
|
404 | 404 | $ hg rollback |
|
405 | 405 | repository tip rolled back to revision 3 (undo debugobsolete) |
|
406 | 406 | $ hg debugobsolete |
|
407 | 407 | 1337133713371337133713371337133713371337 5601fb93a350734d935195fee37f4054c529ff39 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
408 | 408 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
|
409 | 409 | 5601fb93a350734d935195fee37f4054c529ff39 6f96419950729f3671185b847352890f074f7557 1 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
410 | 410 | ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
411 | 411 | cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'} |
|
412 | 412 | |
|
413 | 413 | $ cd .. |
|
414 | 414 | |
|
415 | 415 | Try to push markers |
|
416 | 416 | |
|
417 | 417 | $ hg init tmpd |
|
418 | 418 | $ hg -R tmpb push tmpd |
|
419 | 419 | pushing to tmpd |
|
420 | 420 | searching for changes |
|
421 | 421 | adding changesets |
|
422 | 422 | adding manifests |
|
423 | 423 | adding file changes |
|
424 | 424 | added 4 changesets with 4 changes to 4 files (+1 heads) |
|
425 | 425 | 5 new obsolescence markers |
|
426 | 426 | $ hg -R tmpd debugobsolete | sort |
|
427 | 427 | 1337133713371337133713371337133713371337 5601fb93a350734d935195fee37f4054c529ff39 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
428 | 428 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
|
429 | 429 | 5601fb93a350734d935195fee37f4054c529ff39 6f96419950729f3671185b847352890f074f7557 1 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
430 | 430 | ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
431 | 431 | cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'} |
|
432 | 432 | |
|
433 | 433 | Check obsolete keys are exchanged only if source has an obsolete store |
|
434 | 434 | |
|
435 | 435 | $ hg init empty |
|
436 | 436 | $ hg --config extensions.debugkeys=debugkeys.py -R empty push tmpd |
|
437 | 437 | pushing to tmpd |
|
438 | 438 | listkeys phases |
|
439 | 439 | listkeys bookmarks |
|
440 | 440 | no changes found |
|
441 | 441 | listkeys phases |
|
442 | 442 | [1] |
|
443 | 443 | |
|
444 | 444 | clone support |
|
445 | 445 | (markers are copied and extinct changesets are included to allow hardlinks) |
|
446 | 446 | |
|
447 | 447 | $ hg clone tmpb clone-dest |
|
448 | 448 | updating to branch default |
|
449 | 449 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
450 | 450 | $ hg -R clone-dest log -G --hidden |
|
451 | 451 | @ 6:6f9641995072 (draft) [tip ] add n3w_3_c |
|
452 | 452 | | |
|
453 | 453 | | x 5:5601fb93a350 (draft *obsolete*) [ ] add new_3_c [rewritten as 6:6f9641995072] |
|
454 | 454 | |/ |
|
455 | 455 | | x 4:ca819180edb9 (draft *obsolete*) [ ] add new_2_c [rewritten as 5:5601fb93a350] |
|
456 | 456 | |/ |
|
457 | 457 | | x 3:cdbce2fbb163 (draft *obsolete*) [ ] add new_c [rewritten as 4:ca819180edb9] |
|
458 | 458 | |/ |
|
459 | 459 | | o 2:245bde4270cd (public) [ ] add original_c |
|
460 | 460 | |/ |
|
461 | 461 | o 1:7c3bad9141dc (public) [ ] add b |
|
462 | 462 | | |
|
463 | 463 | o 0:1f0dee641bb7 (public) [ ] add a |
|
464 | 464 | |
|
465 | 465 | $ hg -R clone-dest debugobsolete |
|
466 | 466 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
|
467 | 467 | cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'} |
|
468 | 468 | ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
469 | 469 | 1337133713371337133713371337133713371337 5601fb93a350734d935195fee37f4054c529ff39 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
470 | 470 | 5601fb93a350734d935195fee37f4054c529ff39 6f96419950729f3671185b847352890f074f7557 1 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
471 | 471 | |
|
472 | 472 | |
|
473 | 473 | Destination repo have existing data |
|
474 | 474 | --------------------------------------- |
|
475 | 475 | |
|
476 | 476 | On pull |
|
477 | 477 | |
|
478 | 478 | $ hg init tmpe |
|
479 | 479 | $ cd tmpe |
|
480 | 480 | $ hg debugobsolete -d '1339 0' 1339133913391339133913391339133913391339 ca819180edb99ed25ceafb3e9584ac287e240b00 |
|
481 | 481 | $ hg pull ../tmpb |
|
482 | 482 | pulling from ../tmpb |
|
483 | 483 | requesting all changes |
|
484 | 484 | adding changesets |
|
485 | 485 | adding manifests |
|
486 | 486 | adding file changes |
|
487 | 487 | added 4 changesets with 4 changes to 4 files (+1 heads) |
|
488 | 488 | 5 new obsolescence markers |
|
489 | 489 | new changesets 1f0dee641bb7:6f9641995072 |
|
490 | 490 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
491 | 491 | $ hg debugobsolete |
|
492 | 492 | 1339133913391339133913391339133913391339 ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
493 | 493 | 1337133713371337133713371337133713371337 5601fb93a350734d935195fee37f4054c529ff39 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
494 | 494 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
|
495 | 495 | 5601fb93a350734d935195fee37f4054c529ff39 6f96419950729f3671185b847352890f074f7557 1 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
496 | 496 | ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
497 | 497 | cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'} |
|
498 | 498 | |
|
499 | 499 | |
|
500 | 500 | On push |
|
501 | 501 | |
|
502 | 502 | $ hg push ../tmpc |
|
503 | 503 | pushing to ../tmpc |
|
504 | 504 | searching for changes |
|
505 | 505 | no changes found |
|
506 | 506 | 1 new obsolescence markers |
|
507 | 507 | [1] |
|
508 | 508 | $ hg -R ../tmpc debugobsolete |
|
509 | 509 | 1337133713371337133713371337133713371337 5601fb93a350734d935195fee37f4054c529ff39 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
510 | 510 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
|
511 | 511 | 5601fb93a350734d935195fee37f4054c529ff39 6f96419950729f3671185b847352890f074f7557 1 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
512 | 512 | ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
513 | 513 | cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'} |
|
514 | 514 | 1339133913391339133913391339133913391339 ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
515 | 515 | |
|
516 | 516 | detect outgoing obsolete and unstable |
|
517 | 517 | --------------------------------------- |
|
518 | 518 | |
|
519 | 519 | |
|
520 | 520 | $ hg log -G |
|
521 | 521 | o 3:6f9641995072 (draft) [tip ] add n3w_3_c |
|
522 | 522 | | |
|
523 | 523 | | o 2:245bde4270cd (public) [ ] add original_c |
|
524 | 524 | |/ |
|
525 | 525 | o 1:7c3bad9141dc (public) [ ] add b |
|
526 | 526 | | |
|
527 | 527 | o 0:1f0dee641bb7 (public) [ ] add a |
|
528 | 528 | |
|
529 | 529 | $ hg up 'desc("n3w_3_c")' |
|
530 | 530 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
531 | 531 | $ mkcommit original_d |
|
532 | 532 | $ mkcommit original_e |
|
533 | 533 | $ hg debugobsolete --record-parents `getid original_d` -d '0 0' |
|
534 | 534 | obsoleted 1 changesets |
|
535 | 535 | 1 new orphan changesets |
|
536 | 536 | $ hg debugobsolete | grep `getid original_d` |
|
537 | 537 | 94b33453f93bdb8d457ef9b770851a618bf413e1 0 {6f96419950729f3671185b847352890f074f7557} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
538 | 538 | $ hg log -r 'obsolete()' |
|
539 | 539 | 4:94b33453f93b (draft *obsolete*) [ ] add original_d [pruned] |
|
540 | 540 | $ hg summary |
|
541 | 541 | parent: 5:cda648ca50f5 tip (orphan) |
|
542 | 542 | add original_e |
|
543 | 543 | branch: default |
|
544 | 544 | commit: (clean) |
|
545 | 545 | update: 1 new changesets, 2 branch heads (merge) |
|
546 | 546 | phases: 3 draft |
|
547 | 547 | orphan: 1 changesets |
|
548 | 548 | $ hg log -G -r '::orphan()' |
|
549 | 549 | @ 5:cda648ca50f5 (draft orphan) [tip ] add original_e |
|
550 | 550 | | |
|
551 | 551 | x 4:94b33453f93b (draft *obsolete*) [ ] add original_d [pruned] |
|
552 | 552 | | |
|
553 | 553 | o 3:6f9641995072 (draft) [ ] add n3w_3_c |
|
554 | 554 | | |
|
555 | 555 | o 1:7c3bad9141dc (public) [ ] add b |
|
556 | 556 | | |
|
557 | 557 | o 0:1f0dee641bb7 (public) [ ] add a |
|
558 | 558 | |
|
559 | 559 | |
|
560 | 560 | refuse to push obsolete changeset |
|
561 | 561 | |
|
562 | 562 | $ hg push ../tmpc/ -r 'desc("original_d")' |
|
563 | 563 | pushing to ../tmpc/ |
|
564 | 564 | searching for changes |
|
565 | 565 | abort: push includes obsolete changeset: 94b33453f93b! |
|
566 | 566 | [255] |
|
567 | 567 | |
|
568 | 568 | refuse to push unstable changeset |
|
569 | 569 | |
|
570 | 570 | $ hg push ../tmpc/ |
|
571 | 571 | pushing to ../tmpc/ |
|
572 | 572 | searching for changes |
|
573 | 573 | abort: push includes orphan changeset: cda648ca50f5! |
|
574 | 574 | [255] |
|
575 | 575 | |
|
576 | 576 | Test that extinct changeset are properly detected |
|
577 | 577 | |
|
578 | 578 | $ hg log -r 'extinct()' |
|
579 | 579 | |
|
580 | 580 | Don't try to push extinct changeset |
|
581 | 581 | |
|
582 | 582 | $ hg init ../tmpf |
|
583 | 583 | $ hg out ../tmpf |
|
584 | 584 | comparing with ../tmpf |
|
585 | 585 | searching for changes |
|
586 | 586 | 0:1f0dee641bb7 (public) [ ] add a |
|
587 | 587 | 1:7c3bad9141dc (public) [ ] add b |
|
588 | 588 | 2:245bde4270cd (public) [ ] add original_c |
|
589 | 589 | 3:6f9641995072 (draft) [ ] add n3w_3_c |
|
590 | 590 | 4:94b33453f93b (draft *obsolete*) [ ] add original_d [pruned] |
|
591 | 591 | 5:cda648ca50f5 (draft orphan) [tip ] add original_e |
|
592 | 592 | $ hg push ../tmpf -f # -f because be push unstable too |
|
593 | 593 | pushing to ../tmpf |
|
594 | 594 | searching for changes |
|
595 | 595 | adding changesets |
|
596 | 596 | adding manifests |
|
597 | 597 | adding file changes |
|
598 | 598 | added 6 changesets with 6 changes to 6 files (+1 heads) |
|
599 | 599 | 7 new obsolescence markers |
|
600 | 600 | 1 new orphan changesets |
|
601 | 601 | |
|
602 | 602 | no warning displayed |
|
603 | 603 | |
|
604 | 604 | $ hg push ../tmpf |
|
605 | 605 | pushing to ../tmpf |
|
606 | 606 | searching for changes |
|
607 | 607 | no changes found |
|
608 | 608 | [1] |
|
609 | 609 | |
|
610 | 610 | Do not warn about new head when the new head is a successors of a remote one |
|
611 | 611 | |
|
612 | 612 | $ hg log -G |
|
613 | 613 | @ 5:cda648ca50f5 (draft orphan) [tip ] add original_e |
|
614 | 614 | | |
|
615 | 615 | x 4:94b33453f93b (draft *obsolete*) [ ] add original_d [pruned] |
|
616 | 616 | | |
|
617 | 617 | o 3:6f9641995072 (draft) [ ] add n3w_3_c |
|
618 | 618 | | |
|
619 | 619 | | o 2:245bde4270cd (public) [ ] add original_c |
|
620 | 620 | |/ |
|
621 | 621 | o 1:7c3bad9141dc (public) [ ] add b |
|
622 | 622 | | |
|
623 | 623 | o 0:1f0dee641bb7 (public) [ ] add a |
|
624 | 624 | |
|
625 | 625 | $ hg up -q 'desc(n3w_3_c)' |
|
626 | 626 | $ mkcommit obsolete_e |
|
627 | 627 | created new head |
|
628 | 628 | $ hg debugobsolete `getid 'original_e'` `getid 'obsolete_e'` \ |
|
629 | 629 | > -u 'test <test@example.net>' |
|
630 | 630 | obsoleted 1 changesets |
|
631 | 631 | $ hg outgoing ../tmpf # parasite hg outgoing testin |
|
632 | 632 | comparing with ../tmpf |
|
633 | 633 | searching for changes |
|
634 | 634 | 6:3de5eca88c00 (draft) [tip ] add obsolete_e |
|
635 | 635 | $ hg push ../tmpf |
|
636 | 636 | pushing to ../tmpf |
|
637 | 637 | searching for changes |
|
638 | 638 | adding changesets |
|
639 | 639 | adding manifests |
|
640 | 640 | adding file changes |
|
641 | 641 | added 1 changesets with 1 changes to 1 files (+1 heads) |
|
642 | 642 | 1 new obsolescence markers |
|
643 | 643 | obsoleted 1 changesets |
|
644 | 644 | |
|
645 | 645 | test relevance computation |
|
646 | 646 | --------------------------------------- |
|
647 | 647 | |
|
648 | 648 | Checking simple case of "marker relevance". |
|
649 | 649 | |
|
650 | 650 | |
|
651 | 651 | Reminder of the repo situation |
|
652 | 652 | |
|
653 | 653 | $ hg log --hidden --graph |
|
654 | 654 | @ 6:3de5eca88c00 (draft) [tip ] add obsolete_e |
|
655 | 655 | | |
|
656 | 656 | | x 5:cda648ca50f5 (draft *obsolete*) [ ] add original_e [rewritten as 6:3de5eca88c00 by test <test@example.net>] |
|
657 | 657 | | | |
|
658 | 658 | | x 4:94b33453f93b (draft *obsolete*) [ ] add original_d [pruned] |
|
659 | 659 | |/ |
|
660 | 660 | o 3:6f9641995072 (draft) [ ] add n3w_3_c |
|
661 | 661 | | |
|
662 | 662 | | o 2:245bde4270cd (public) [ ] add original_c |
|
663 | 663 | |/ |
|
664 | 664 | o 1:7c3bad9141dc (public) [ ] add b |
|
665 | 665 | | |
|
666 | 666 | o 0:1f0dee641bb7 (public) [ ] add a |
|
667 | 667 | |
|
668 | 668 | |
|
669 | 669 | List of all markers |
|
670 | 670 | |
|
671 | 671 | $ hg debugobsolete |
|
672 | 672 | 1339133913391339133913391339133913391339 ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
673 | 673 | 1337133713371337133713371337133713371337 5601fb93a350734d935195fee37f4054c529ff39 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
674 | 674 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
|
675 | 675 | 5601fb93a350734d935195fee37f4054c529ff39 6f96419950729f3671185b847352890f074f7557 1 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
676 | 676 | ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
677 | 677 | cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'} |
|
678 | 678 | 94b33453f93bdb8d457ef9b770851a618bf413e1 0 {6f96419950729f3671185b847352890f074f7557} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
679 | 679 | cda648ca50f50482b7055c0b0c4c117bba6733d9 3de5eca88c00aa039da7399a220f4a5221faa585 0 (*) {'user': 'test <test@example.net>'} (glob) |
|
680 | 680 | |
|
681 | 681 | List of changesets with no chain |
|
682 | 682 | |
|
683 | 683 | $ hg debugobsolete --hidden --rev ::2 |
|
684 | 684 | |
|
685 | 685 | List of changesets that are included on marker chain |
|
686 | 686 | |
|
687 | 687 | $ hg debugobsolete --hidden --rev 6 |
|
688 | 688 | cda648ca50f50482b7055c0b0c4c117bba6733d9 3de5eca88c00aa039da7399a220f4a5221faa585 0 (*) {'user': 'test <test@example.net>'} (glob) |
|
689 | 689 | |
|
690 | 690 | List of changesets with a longer chain, (including a pruned children) |
|
691 | 691 | |
|
692 | 692 | $ hg debugobsolete --hidden --rev 3 |
|
693 | 693 | 1337133713371337133713371337133713371337 5601fb93a350734d935195fee37f4054c529ff39 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
694 | 694 | 1339133913391339133913391339133913391339 ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
695 | 695 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
|
696 | 696 | 5601fb93a350734d935195fee37f4054c529ff39 6f96419950729f3671185b847352890f074f7557 1 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
697 | 697 | 94b33453f93bdb8d457ef9b770851a618bf413e1 0 {6f96419950729f3671185b847352890f074f7557} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
698 | 698 | ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
699 | 699 | cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'} |
|
700 | 700 | |
|
701 | 701 | List of both |
|
702 | 702 | |
|
703 | 703 | $ hg debugobsolete --hidden --rev 3::6 |
|
704 | 704 | 1337133713371337133713371337133713371337 5601fb93a350734d935195fee37f4054c529ff39 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
705 | 705 | 1339133913391339133913391339133913391339 ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:19 1970 +0000) {'user': 'test'} |
|
706 | 706 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
|
707 | 707 | 5601fb93a350734d935195fee37f4054c529ff39 6f96419950729f3671185b847352890f074f7557 1 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
708 | 708 | 94b33453f93bdb8d457ef9b770851a618bf413e1 0 {6f96419950729f3671185b847352890f074f7557} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
709 | 709 | ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'} |
|
710 | 710 | cda648ca50f50482b7055c0b0c4c117bba6733d9 3de5eca88c00aa039da7399a220f4a5221faa585 0 (*) {'user': 'test <test@example.net>'} (glob) |
|
711 | 711 | cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'} |
|
712 | 712 | |
|
713 | 713 | List of all markers in JSON |
|
714 | 714 | |
|
715 | 715 | $ hg debugobsolete -Tjson |
|
716 | 716 | [ |
|
717 | 717 | { |
|
718 | 718 | "date": [1339.0, 0], |
|
719 | 719 | "flag": 0, |
|
720 | 720 | "metadata": {"user": "test"}, |
|
721 | 721 | "prednode": "1339133913391339133913391339133913391339", |
|
722 | 722 | "succnodes": ["ca819180edb99ed25ceafb3e9584ac287e240b00"] |
|
723 | 723 | }, |
|
724 | 724 | { |
|
725 | 725 | "date": [1339.0, 0], |
|
726 | 726 | "flag": 0, |
|
727 | 727 | "metadata": {"user": "test"}, |
|
728 | 728 | "prednode": "1337133713371337133713371337133713371337", |
|
729 | 729 | "succnodes": ["5601fb93a350734d935195fee37f4054c529ff39"] |
|
730 | 730 | }, |
|
731 | 731 | { |
|
732 | 732 | "date": [121.0, 120], |
|
733 | 733 | "flag": 12, |
|
734 | 734 | "metadata": {"user": "test"}, |
|
735 | 735 | "prednode": "245bde4270cd1072a27757984f9cda8ba26f08ca", |
|
736 | 736 | "succnodes": ["cdbce2fbb16313928851e97e0d85413f3f7eb77f"] |
|
737 | 737 | }, |
|
738 | 738 | { |
|
739 | 739 | "date": [1338.0, 0], |
|
740 | 740 | "flag": 1, |
|
741 | 741 | "metadata": {"user": "test"}, |
|
742 | 742 | "prednode": "5601fb93a350734d935195fee37f4054c529ff39", |
|
743 | 743 | "succnodes": ["6f96419950729f3671185b847352890f074f7557"] |
|
744 | 744 | }, |
|
745 | 745 | { |
|
746 | 746 | "date": [1338.0, 0], |
|
747 | 747 | "flag": 0, |
|
748 | 748 | "metadata": {"user": "test"}, |
|
749 | 749 | "prednode": "ca819180edb99ed25ceafb3e9584ac287e240b00", |
|
750 | 750 | "succnodes": ["1337133713371337133713371337133713371337"] |
|
751 | 751 | }, |
|
752 | 752 | { |
|
753 | 753 | "date": [1337.0, 0], |
|
754 | 754 | "flag": 0, |
|
755 | 755 | "metadata": {"user": "test"}, |
|
756 | 756 | "prednode": "cdbce2fbb16313928851e97e0d85413f3f7eb77f", |
|
757 | 757 | "succnodes": ["ca819180edb99ed25ceafb3e9584ac287e240b00"] |
|
758 | 758 | }, |
|
759 | 759 | { |
|
760 | 760 | "date": [0.0, 0], |
|
761 | 761 | "flag": 0, |
|
762 | 762 | "metadata": {"user": "test"}, |
|
763 | 763 | "parentnodes": ["6f96419950729f3671185b847352890f074f7557"], |
|
764 | 764 | "prednode": "94b33453f93bdb8d457ef9b770851a618bf413e1", |
|
765 | 765 | "succnodes": [] |
|
766 | 766 | }, |
|
767 | 767 | { |
|
768 | 768 | "date": *, (glob) |
|
769 | 769 | "flag": 0, |
|
770 | 770 | "metadata": {"user": "test <test@example.net>"}, |
|
771 | 771 | "prednode": "cda648ca50f50482b7055c0b0c4c117bba6733d9", |
|
772 | 772 | "succnodes": ["3de5eca88c00aa039da7399a220f4a5221faa585"] |
|
773 | 773 | } |
|
774 | 774 | ] |
|
775 | 775 | |
|
776 | 776 | Template keywords |
|
777 | 777 | |
|
778 | 778 | $ hg debugobsolete -r6 -T '{succnodes % "{node|short}"} {date|shortdate}\n' |
|
779 | 779 | 3de5eca88c00 ????-??-?? (glob) |
|
780 | 780 | $ hg debugobsolete -r6 -T '{join(metadata % "{key}={value}", " ")}\n' |
|
781 | 781 | user=test <test@example.net> |
|
782 | 782 | $ hg debugobsolete -r6 -T '{metadata}\n{metadata}\n' |
|
783 | 783 | 'user': 'test <test@example.net>' |
|
784 | 784 | 'user': 'test <test@example.net>' |
|
785 | 785 | $ hg debugobsolete -r6 -T '{succnodes}\n{succnodes}\n' |
|
786 | 786 | 3de5eca88c00aa039da7399a220f4a5221faa585 |
|
787 | 787 | 3de5eca88c00aa039da7399a220f4a5221faa585 |
|
788 | 788 | $ hg debugobsolete -r6 -T '{flag} {get(metadata, "user")}\n' |
|
789 | 789 | 0 test <test@example.net> |
|
790 | 790 | |
|
791 | 791 | Test the debug output for exchange |
|
792 | 792 | ---------------------------------- |
|
793 | 793 | |
|
794 | 794 | $ hg pull ../tmpb --config 'experimental.obsmarkers-exchange-debug=True' # bundle2 |
|
795 | 795 | pulling from ../tmpb |
|
796 | 796 | searching for changes |
|
797 | 797 | no changes found |
|
798 | 798 | obsmarker-exchange: 346 bytes received |
|
799 | 799 | |
|
800 | 800 | check hgweb does not explode |
|
801 | 801 | ==================================== |
|
802 | 802 | |
|
803 | 803 | $ hg unbundle $TESTDIR/bundles/hgweb+obs.hg |
|
804 | 804 | adding changesets |
|
805 | 805 | adding manifests |
|
806 | 806 | adding file changes |
|
807 | 807 | added 62 changesets with 63 changes to 9 files (+60 heads) |
|
808 | 808 | new changesets 50c51b361e60:c15e9edfca13 |
|
809 | 809 | (run 'hg heads .' to see heads, 'hg merge' to merge) |
|
810 | 810 | $ for node in `hg log -r 'desc(babar_)' --template '{node}\n'`; |
|
811 | 811 | > do |
|
812 | 812 | > hg debugobsolete $node |
|
813 | 813 | > done |
|
814 | 814 | obsoleted 1 changesets |
|
815 | 815 | obsoleted 1 changesets |
|
816 | 816 | obsoleted 1 changesets |
|
817 | 817 | obsoleted 1 changesets |
|
818 | 818 | obsoleted 1 changesets |
|
819 | 819 | obsoleted 1 changesets |
|
820 | 820 | obsoleted 1 changesets |
|
821 | 821 | obsoleted 1 changesets |
|
822 | 822 | obsoleted 1 changesets |
|
823 | 823 | obsoleted 1 changesets |
|
824 | 824 | obsoleted 1 changesets |
|
825 | 825 | obsoleted 1 changesets |
|
826 | 826 | obsoleted 1 changesets |
|
827 | 827 | obsoleted 1 changesets |
|
828 | 828 | obsoleted 1 changesets |
|
829 | 829 | obsoleted 1 changesets |
|
830 | 830 | obsoleted 1 changesets |
|
831 | 831 | obsoleted 1 changesets |
|
832 | 832 | obsoleted 1 changesets |
|
833 | 833 | obsoleted 1 changesets |
|
834 | 834 | obsoleted 1 changesets |
|
835 | 835 | obsoleted 1 changesets |
|
836 | 836 | obsoleted 1 changesets |
|
837 | 837 | obsoleted 1 changesets |
|
838 | 838 | obsoleted 1 changesets |
|
839 | 839 | obsoleted 1 changesets |
|
840 | 840 | obsoleted 1 changesets |
|
841 | 841 | obsoleted 1 changesets |
|
842 | 842 | obsoleted 1 changesets |
|
843 | 843 | obsoleted 1 changesets |
|
844 | 844 | obsoleted 1 changesets |
|
845 | 845 | obsoleted 1 changesets |
|
846 | 846 | obsoleted 1 changesets |
|
847 | 847 | obsoleted 1 changesets |
|
848 | 848 | obsoleted 1 changesets |
|
849 | 849 | obsoleted 1 changesets |
|
850 | 850 | obsoleted 1 changesets |
|
851 | 851 | obsoleted 1 changesets |
|
852 | 852 | obsoleted 1 changesets |
|
853 | 853 | obsoleted 1 changesets |
|
854 | 854 | obsoleted 1 changesets |
|
855 | 855 | obsoleted 1 changesets |
|
856 | 856 | obsoleted 1 changesets |
|
857 | 857 | obsoleted 1 changesets |
|
858 | 858 | obsoleted 1 changesets |
|
859 | 859 | obsoleted 1 changesets |
|
860 | 860 | obsoleted 1 changesets |
|
861 | 861 | obsoleted 1 changesets |
|
862 | 862 | obsoleted 1 changesets |
|
863 | 863 | obsoleted 1 changesets |
|
864 | 864 | obsoleted 1 changesets |
|
865 | 865 | obsoleted 1 changesets |
|
866 | 866 | obsoleted 1 changesets |
|
867 | 867 | obsoleted 1 changesets |
|
868 | 868 | obsoleted 1 changesets |
|
869 | 869 | obsoleted 1 changesets |
|
870 | 870 | obsoleted 1 changesets |
|
871 | 871 | obsoleted 1 changesets |
|
872 | 872 | obsoleted 1 changesets |
|
873 | 873 | obsoleted 1 changesets |
|
874 | 874 | $ hg up tip |
|
875 | 875 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
876 | 876 | |
|
877 | 877 | #if serve |
|
878 | 878 | |
|
879 | 879 | $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
|
880 | 880 | $ cat hg.pid >> $DAEMON_PIDS |
|
881 | 881 | |
|
882 | 882 | check changelog view |
|
883 | 883 | |
|
884 | 884 | $ get-with-headers.py --headeronly localhost:$HGPORT 'shortlog/' |
|
885 | 885 | 200 Script output follows |
|
886 | 886 | |
|
887 | 887 | check graph view |
|
888 | 888 | |
|
889 | 889 | $ get-with-headers.py --headeronly localhost:$HGPORT 'graph' |
|
890 | 890 | 200 Script output follows |
|
891 | 891 | |
|
892 | 892 | check filelog view |
|
893 | 893 | |
|
894 | 894 | $ get-with-headers.py --headeronly localhost:$HGPORT 'log/'`hg log -r . -T "{node}"`/'babar' |
|
895 | 895 | 200 Script output follows |
|
896 | 896 | |
|
897 | 897 | $ get-with-headers.py --headeronly localhost:$HGPORT 'rev/68' |
|
898 | 898 | 200 Script output follows |
|
899 | 899 | $ get-with-headers.py --headeronly localhost:$HGPORT 'rev/67' |
|
900 | 900 | 404 Not Found |
|
901 | 901 | [1] |
|
902 | 902 | |
|
903 | 903 | check that web.view config option: |
|
904 | 904 | |
|
905 | 905 | $ killdaemons.py hg.pid |
|
906 | 906 | $ cat >> .hg/hgrc << EOF |
|
907 | 907 | > [web] |
|
908 | 908 | > view=all |
|
909 | 909 | > EOF |
|
910 | 910 | $ wait |
|
911 | 911 | $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
|
912 | 912 | $ get-with-headers.py --headeronly localhost:$HGPORT 'rev/67' |
|
913 | 913 | 200 Script output follows |
|
914 | 914 | $ killdaemons.py hg.pid |
|
915 | 915 | |
|
916 | 916 | Checking _enable=False warning if obsolete marker exists |
|
917 | 917 | |
|
918 | 918 | $ echo '[experimental]' >> $HGRCPATH |
|
919 | 919 | $ echo "evolution=" >> $HGRCPATH |
|
920 | 920 | $ hg log -r tip |
|
921 | 921 | 68:c15e9edfca13 (draft) [tip ] add celestine |
|
922 | 922 | |
|
923 | 923 | reenable for later test |
|
924 | 924 | |
|
925 | 925 | $ echo '[experimental]' >> $HGRCPATH |
|
926 | 926 | $ echo "evolution.exchange=True" >> $HGRCPATH |
|
927 | 927 | $ echo "evolution.createmarkers=True" >> $HGRCPATH |
|
928 | 928 | |
|
929 | 929 | $ rm hg.pid access.log errors.log |
|
930 | 930 | #endif |
|
931 | 931 | |
|
932 | 932 | Several troubles on the same changeset (create an unstable and bumped changeset) |
|
933 | 933 | |
|
934 | 934 | $ hg debugobsolete `getid obsolete_e` |
|
935 | 935 | obsoleted 1 changesets |
|
936 | 936 | 2 new orphan changesets |
|
937 | 937 | $ hg debugobsolete `getid original_c` `getid babar` |
|
938 | 938 | 1 new phase-divergent changesets |
|
939 | 939 | $ hg log --config ui.logtemplate= -r 'phasedivergent() and orphan()' |
|
940 | 940 | changeset: 7:50c51b361e60 |
|
941 | 941 | user: test |
|
942 | 942 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
943 | 943 | instability: orphan, phase-divergent |
|
944 | 944 | summary: add babar |
|
945 | 945 | |
|
946 | 946 | |
|
947 | 947 | test the "obsolete" templatekw |
|
948 | 948 | |
|
949 | 949 | $ hg log -r 'obsolete()' |
|
950 | 950 | 6:3de5eca88c00 (draft *obsolete*) [ ] add obsolete_e [pruned] |
|
951 | 951 | |
|
952 | 952 | test the "troubles" templatekw |
|
953 | 953 | |
|
954 | 954 | $ hg log -r 'phasedivergent() and orphan()' |
|
955 | 955 | 7:50c51b361e60 (draft orphan phase-divergent) [ ] add babar |
|
956 | 956 | |
|
957 | 957 | test the default cmdline template |
|
958 | 958 | |
|
959 | 959 | $ hg log -T default -r 'phasedivergent()' |
|
960 | 960 | changeset: 7:50c51b361e60 |
|
961 | 961 | user: test |
|
962 | 962 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
963 | 963 | instability: orphan, phase-divergent |
|
964 | 964 | summary: add babar |
|
965 | 965 | |
|
966 | 966 | $ hg log -T default -r 'obsolete()' |
|
967 | 967 | changeset: 6:3de5eca88c00 |
|
968 | 968 | parent: 3:6f9641995072 |
|
969 | 969 | user: test |
|
970 | 970 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
971 | 971 | obsolete: pruned |
|
972 | 972 | summary: add obsolete_e |
|
973 | 973 | |
|
974 | 974 | |
|
975 | 975 | test the obsolete labels |
|
976 | 976 | |
|
977 | 977 | $ hg log --config ui.logtemplate= --color=debug -r 'phasedivergent()' |
|
978 | 978 | [log.changeset changeset.draft changeset.unstable instability.orphan instability.phase-divergent|changeset: 7:50c51b361e60] |
|
979 | 979 | [log.user|user: test] |
|
980 | 980 | [log.date|date: Thu Jan 01 00:00:00 1970 +0000] |
|
981 | 981 | [log.instability|instability: orphan, phase-divergent] |
|
982 | 982 | [log.summary|summary: add babar] |
|
983 | 983 | |
|
984 | 984 | |
|
985 | 985 | $ hg log -T default -r 'phasedivergent()' --color=debug |
|
986 | 986 | [log.changeset changeset.draft changeset.unstable instability.orphan instability.phase-divergent|changeset: 7:50c51b361e60] |
|
987 | 987 | [log.user|user: test] |
|
988 | 988 | [log.date|date: Thu Jan 01 00:00:00 1970 +0000] |
|
989 | 989 | [log.instability|instability: orphan, phase-divergent] |
|
990 | 990 | [log.summary|summary: add babar] |
|
991 | 991 | |
|
992 | 992 | |
|
993 | 993 | $ hg log --config ui.logtemplate= --color=debug -r "obsolete()" |
|
994 | 994 | [log.changeset changeset.draft changeset.obsolete|changeset: 6:3de5eca88c00] |
|
995 | 995 | [log.parent changeset.draft|parent: 3:6f9641995072] |
|
996 | 996 | [log.user|user: test] |
|
997 | 997 | [log.date|date: Thu Jan 01 00:00:00 1970 +0000] |
|
998 | 998 | [log.obsfate|obsolete: pruned] |
|
999 | 999 | [log.summary|summary: add obsolete_e] |
|
1000 | 1000 | |
|
1001 | 1001 | |
|
1002 | 1002 | $ hg log -T default -r 'obsolete()' --color=debug |
|
1003 | 1003 | [log.changeset changeset.draft changeset.obsolete|changeset: 6:3de5eca88c00] |
|
1004 | 1004 | [log.parent changeset.draft|parent: 3:6f9641995072] |
|
1005 | 1005 | [log.user|user: test] |
|
1006 | 1006 | [log.date|date: Thu Jan 01 00:00:00 1970 +0000] |
|
1007 | 1007 | [log.obsfate|obsolete: pruned] |
|
1008 | 1008 | [log.summary|summary: add obsolete_e] |
|
1009 | 1009 | |
|
1010 | 1010 | |
|
1011 | 1011 | test summary output |
|
1012 | 1012 | |
|
1013 | 1013 | $ hg up -r 'phasedivergent() and orphan()' |
|
1014 | 1014 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
1015 | 1015 | $ hg summary |
|
1016 | 1016 | parent: 7:50c51b361e60 (orphan, phase-divergent) |
|
1017 | 1017 | add babar |
|
1018 | 1018 | branch: default |
|
1019 | 1019 | commit: (clean) |
|
1020 | 1020 | update: 2 new changesets (update) |
|
1021 | 1021 | phases: 4 draft |
|
1022 | 1022 | orphan: 2 changesets |
|
1023 | 1023 | phase-divergent: 1 changesets |
|
1024 | 1024 | $ hg up -r 'obsolete()' |
|
1025 | 1025 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
1026 | 1026 | $ hg summary |
|
1027 | 1027 | parent: 6:3de5eca88c00 (obsolete) |
|
1028 | 1028 | add obsolete_e |
|
1029 | 1029 | branch: default |
|
1030 | 1030 | commit: (clean) |
|
1031 | 1031 | update: 3 new changesets (update) |
|
1032 | 1032 | phases: 4 draft |
|
1033 | 1033 | orphan: 2 changesets |
|
1034 | 1034 | phase-divergent: 1 changesets |
|
1035 | 1035 | |
|
1036 | 1036 | #if serve |
|
1037 | 1037 | |
|
1038 | 1038 | $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
|
1039 | 1039 | $ cat hg.pid >> $DAEMON_PIDS |
|
1040 | 1040 | |
|
1041 | 1041 | check obsolete changeset |
|
1042 | 1042 | |
|
1043 | 1043 | $ get-with-headers.py localhost:$HGPORT 'log?rev=first(obsolete())&style=paper' | grep '<span class="obsolete">' |
|
1044 | 1044 | <span class="phase">draft</span> <span class="obsolete">obsolete</span> |
|
1045 | 1045 | $ get-with-headers.py localhost:$HGPORT 'log?rev=first(obsolete())&style=coal' | grep '<span class="obsolete">' |
|
1046 | 1046 | <span class="phase">draft</span> <span class="obsolete">obsolete</span> |
|
1047 | 1047 | $ get-with-headers.py localhost:$HGPORT 'log?rev=first(obsolete())&style=gitweb' | grep '<span class="logtags">' |
|
1048 | 1048 | <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="obsoletetag" title="obsolete">obsolete</span> </span> |
|
1049 | 1049 | $ get-with-headers.py localhost:$HGPORT 'log?rev=first(obsolete())&style=monoblue' | grep '<span class="logtags">' |
|
1050 | 1050 | <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="obsoletetag" title="obsolete">obsolete</span> </span> |
|
1051 | 1051 | $ get-with-headers.py localhost:$HGPORT 'log?rev=first(obsolete())&style=spartan' | grep 'class="obsolete"' |
|
1052 | 1052 | <th class="obsolete">obsolete:</th> |
|
1053 | <td class="obsolete">pruned by test</td> | |
|
1053 | <td class="obsolete">pruned by test <span class="age">Thu, 01 Jan 1970 00:00:00 +0000</span></td> | |
|
1054 | 1054 | |
|
1055 | 1055 | check an obsolete changeset that has been rewritten |
|
1056 | 1056 | $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=paper' | grep rewritten |
|
1057 | <td>rewritten as <a href="/rev/3de5eca88c00?style=paper">3de5eca88c00</a> by test <test@example.net></td> | |
|
1057 | <td>rewritten as <a href="/rev/3de5eca88c00?style=paper">3de5eca88c00</a> by test <test@example.net> <span class="age">Thu, 01 Jan 1970 00:00:00 +0000</span></td> | |
|
1058 | 1058 | $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=coal' | grep rewritten |
|
1059 | <td>rewritten as <a href="/rev/3de5eca88c00?style=coal">3de5eca88c00</a> by test <test@example.net></td> | |
|
1059 | <td>rewritten as <a href="/rev/3de5eca88c00?style=coal">3de5eca88c00</a> by test <test@example.net> <span class="age">Thu, 01 Jan 1970 00:00:00 +0000</span></td> | |
|
1060 | 1060 | $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=gitweb' | grep rewritten |
|
1061 | <tr><td>obsolete</td><td>rewritten as <a class="list" href="/rev/3de5eca88c00?style=gitweb">3de5eca88c00</a> by test <test@example.net></td></tr> | |
|
1061 | <tr><td>obsolete</td><td>rewritten as <a class="list" href="/rev/3de5eca88c00?style=gitweb">3de5eca88c00</a> by test <test@example.net> <span class="age">Thu, 01 Jan 1970 00:00:00 +0000</span></td></tr> | |
|
1062 | 1062 | $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=monoblue' | grep rewritten |
|
1063 | <dt>obsolete</dt><dd>rewritten as <a href="/rev/3de5eca88c00?style=monoblue">3de5eca88c00</a> by test <test@example.net></dd> | |
|
1063 | <dt>obsolete</dt><dd>rewritten as <a href="/rev/3de5eca88c00?style=monoblue">3de5eca88c00</a> by test <test@example.net> <span class="age">Thu, 01 Jan 1970 00:00:00 +0000</span></dd> | |
|
1064 | 1064 | $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=spartan' | grep rewritten |
|
1065 | <td class="obsolete">rewritten as <a href="/rev/3de5eca88c00?style=spartan">3de5eca88c00</a> by test <test@example.net></td> | |
|
1065 | <td class="obsolete">rewritten as <a href="/rev/3de5eca88c00?style=spartan">3de5eca88c00</a> by test <test@example.net> <span class="age">Thu, 01 Jan 1970 00:00:00 +0000</span></td> | |
|
1066 | 1066 | |
|
1067 | 1067 | check changeset with instabilities |
|
1068 | 1068 | |
|
1069 | 1069 | $ get-with-headers.py localhost:$HGPORT 'log?rev=first(phasedivergent())&style=paper' | grep '<span class="instability">' |
|
1070 | 1070 | <span class="phase">draft</span> <span class="instability">orphan</span> <span class="instability">phase-divergent</span> |
|
1071 | 1071 | $ get-with-headers.py localhost:$HGPORT 'log?rev=first(phasedivergent())&style=coal' | grep '<span class="instability">' |
|
1072 | 1072 | <span class="phase">draft</span> <span class="instability">orphan</span> <span class="instability">phase-divergent</span> |
|
1073 | 1073 | $ get-with-headers.py localhost:$HGPORT 'log?rev=first(phasedivergent())&style=gitweb' | grep '<span class="logtags">' |
|
1074 | 1074 | <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="instabilitytag" title="orphan">orphan</span> <span class="instabilitytag" title="phase-divergent">phase-divergent</span> </span> |
|
1075 | 1075 | $ get-with-headers.py localhost:$HGPORT 'log?rev=first(phasedivergent())&style=monoblue' | grep '<span class="logtags">' |
|
1076 | 1076 | <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="instabilitytag" title="orphan">orphan</span> <span class="instabilitytag" title="phase-divergent">phase-divergent</span> </span> |
|
1077 | 1077 | $ get-with-headers.py localhost:$HGPORT 'log?rev=first(phasedivergent())&style=spartan' | grep 'class="instabilities"' |
|
1078 | 1078 | <th class="instabilities">instabilities:</th> |
|
1079 | 1079 | <td class="instabilities">orphan phase-divergent </td> |
|
1080 | 1080 | |
|
1081 | 1081 | $ killdaemons.py |
|
1082 | 1082 | |
|
1083 | 1083 | $ rm hg.pid access.log errors.log |
|
1084 | 1084 | #endif |
|
1085 | 1085 | |
|
1086 | 1086 | Test incoming/outcoming with changesets obsoleted remotely, known locally |
|
1087 | 1087 | =============================================================================== |
|
1088 | 1088 | |
|
1089 | 1089 | This test issue 3805 |
|
1090 | 1090 | |
|
1091 | 1091 | $ hg init repo-issue3805 |
|
1092 | 1092 | $ cd repo-issue3805 |
|
1093 | 1093 | $ echo "base" > base |
|
1094 | 1094 | $ hg ci -Am "base" |
|
1095 | 1095 | adding base |
|
1096 | 1096 | $ echo "foo" > foo |
|
1097 | 1097 | $ hg ci -Am "A" |
|
1098 | 1098 | adding foo |
|
1099 | 1099 | $ hg clone . ../other-issue3805 |
|
1100 | 1100 | updating to branch default |
|
1101 | 1101 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1102 | 1102 | $ echo "bar" >> foo |
|
1103 | 1103 | $ hg ci --amend |
|
1104 | 1104 | $ cd ../other-issue3805 |
|
1105 | 1105 | $ hg log -G |
|
1106 | 1106 | @ 1:29f0c6921ddd (draft) [tip ] A |
|
1107 | 1107 | | |
|
1108 | 1108 | o 0:d20a80d4def3 (draft) [ ] base |
|
1109 | 1109 | |
|
1110 | 1110 | $ hg log -G -R ../repo-issue3805 |
|
1111 | 1111 | @ 2:323a9c3ddd91 (draft) [tip ] A |
|
1112 | 1112 | | |
|
1113 | 1113 | o 0:d20a80d4def3 (draft) [ ] base |
|
1114 | 1114 | |
|
1115 | 1115 | $ hg incoming |
|
1116 | 1116 | comparing with $TESTTMP/tmpe/repo-issue3805 |
|
1117 | 1117 | searching for changes |
|
1118 | 1118 | 2:323a9c3ddd91 (draft) [tip ] A |
|
1119 | 1119 | $ hg incoming --bundle ../issue3805.hg |
|
1120 | 1120 | comparing with $TESTTMP/tmpe/repo-issue3805 |
|
1121 | 1121 | searching for changes |
|
1122 | 1122 | 2:323a9c3ddd91 (draft) [tip ] A |
|
1123 | 1123 | $ hg outgoing |
|
1124 | 1124 | comparing with $TESTTMP/tmpe/repo-issue3805 |
|
1125 | 1125 | searching for changes |
|
1126 | 1126 | 1:29f0c6921ddd (draft) [tip ] A |
|
1127 | 1127 | |
|
1128 | 1128 | #if serve |
|
1129 | 1129 | |
|
1130 | 1130 | $ hg serve -R ../repo-issue3805 -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
|
1131 | 1131 | $ cat hg.pid >> $DAEMON_PIDS |
|
1132 | 1132 | |
|
1133 | 1133 | $ hg incoming http://localhost:$HGPORT |
|
1134 | 1134 | comparing with http://localhost:$HGPORT/ |
|
1135 | 1135 | searching for changes |
|
1136 | 1136 | 2:323a9c3ddd91 (draft) [tip ] A |
|
1137 | 1137 | $ hg outgoing http://localhost:$HGPORT |
|
1138 | 1138 | comparing with http://localhost:$HGPORT/ |
|
1139 | 1139 | searching for changes |
|
1140 | 1140 | 1:29f0c6921ddd (draft) [tip ] A |
|
1141 | 1141 | |
|
1142 | 1142 | $ killdaemons.py |
|
1143 | 1143 | |
|
1144 | 1144 | #endif |
|
1145 | 1145 | |
|
1146 | 1146 | This test issue 3814 |
|
1147 | 1147 | |
|
1148 | 1148 | (nothing to push but locally hidden changeset) |
|
1149 | 1149 | |
|
1150 | 1150 | $ cd .. |
|
1151 | 1151 | $ hg init repo-issue3814 |
|
1152 | 1152 | $ cd repo-issue3805 |
|
1153 | 1153 | $ hg push -r 323a9c3ddd91 ../repo-issue3814 |
|
1154 | 1154 | pushing to ../repo-issue3814 |
|
1155 | 1155 | searching for changes |
|
1156 | 1156 | adding changesets |
|
1157 | 1157 | adding manifests |
|
1158 | 1158 | adding file changes |
|
1159 | 1159 | added 2 changesets with 2 changes to 2 files |
|
1160 | 1160 | 1 new obsolescence markers |
|
1161 | 1161 | $ hg out ../repo-issue3814 |
|
1162 | 1162 | comparing with ../repo-issue3814 |
|
1163 | 1163 | searching for changes |
|
1164 | 1164 | no changes found |
|
1165 | 1165 | [1] |
|
1166 | 1166 | |
|
1167 | 1167 | Test that a local tag blocks a changeset from being hidden |
|
1168 | 1168 | |
|
1169 | 1169 | $ hg tag -l visible -r 1 --hidden |
|
1170 | 1170 | $ hg log -G |
|
1171 | 1171 | @ 2:323a9c3ddd91 (draft) [tip ] A |
|
1172 | 1172 | | |
|
1173 | 1173 | | x 1:29f0c6921ddd (draft *obsolete*) [visible ] A [rewritten using amend as 2:323a9c3ddd91] |
|
1174 | 1174 | |/ |
|
1175 | 1175 | o 0:d20a80d4def3 (draft) [ ] base |
|
1176 | 1176 | |
|
1177 | 1177 | Test that removing a local tag does not cause some commands to fail |
|
1178 | 1178 | |
|
1179 | 1179 | $ hg tag -l -r tip tiptag |
|
1180 | 1180 | $ hg tags |
|
1181 | 1181 | tiptag 2:323a9c3ddd91 |
|
1182 | 1182 | tip 2:323a9c3ddd91 |
|
1183 | 1183 | visible 1:29f0c6921ddd |
|
1184 | 1184 | $ hg --config extensions.strip= strip -r tip --no-backup |
|
1185 | 1185 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
1186 | 1186 | $ hg tags |
|
1187 | 1187 | visible 1:29f0c6921ddd |
|
1188 | 1188 | tip 1:29f0c6921ddd |
|
1189 | 1189 | |
|
1190 | 1190 | Test bundle overlay onto hidden revision |
|
1191 | 1191 | |
|
1192 | 1192 | $ cd .. |
|
1193 | 1193 | $ hg init repo-bundleoverlay |
|
1194 | 1194 | $ cd repo-bundleoverlay |
|
1195 | 1195 | $ echo "A" > foo |
|
1196 | 1196 | $ hg ci -Am "A" |
|
1197 | 1197 | adding foo |
|
1198 | 1198 | $ echo "B" >> foo |
|
1199 | 1199 | $ hg ci -m "B" |
|
1200 | 1200 | $ hg up 0 |
|
1201 | 1201 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1202 | 1202 | $ echo "C" >> foo |
|
1203 | 1203 | $ hg ci -m "C" |
|
1204 | 1204 | created new head |
|
1205 | 1205 | $ hg log -G |
|
1206 | 1206 | @ 2:c186d7714947 (draft) [tip ] C |
|
1207 | 1207 | | |
|
1208 | 1208 | | o 1:44526ebb0f98 (draft) [ ] B |
|
1209 | 1209 | |/ |
|
1210 | 1210 | o 0:4b34ecfb0d56 (draft) [ ] A |
|
1211 | 1211 | |
|
1212 | 1212 | |
|
1213 | 1213 | $ hg clone -r1 . ../other-bundleoverlay |
|
1214 | 1214 | adding changesets |
|
1215 | 1215 | adding manifests |
|
1216 | 1216 | adding file changes |
|
1217 | 1217 | added 2 changesets with 2 changes to 1 files |
|
1218 | 1218 | new changesets 4b34ecfb0d56:44526ebb0f98 |
|
1219 | 1219 | updating to branch default |
|
1220 | 1220 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1221 | 1221 | $ cd ../other-bundleoverlay |
|
1222 | 1222 | $ echo "B+" >> foo |
|
1223 | 1223 | $ hg ci --amend -m "B+" |
|
1224 | 1224 | $ hg log -G --hidden |
|
1225 | 1225 | @ 2:b7d587542d40 (draft) [tip ] B+ |
|
1226 | 1226 | | |
|
1227 | 1227 | | x 1:44526ebb0f98 (draft *obsolete*) [ ] B [rewritten using amend as 2:b7d587542d40] |
|
1228 | 1228 | |/ |
|
1229 | 1229 | o 0:4b34ecfb0d56 (draft) [ ] A |
|
1230 | 1230 | |
|
1231 | 1231 | |
|
1232 | 1232 | $ hg incoming ../repo-bundleoverlay --bundle ../bundleoverlay.hg |
|
1233 | 1233 | comparing with ../repo-bundleoverlay |
|
1234 | 1234 | searching for changes |
|
1235 | 1235 | 1:44526ebb0f98 (draft) [ ] B |
|
1236 | 1236 | 2:c186d7714947 (draft) [tip ] C |
|
1237 | 1237 | $ hg log -G -R ../bundleoverlay.hg |
|
1238 | 1238 | o 3:c186d7714947 (draft) [tip ] C |
|
1239 | 1239 | | |
|
1240 | 1240 | | @ 2:b7d587542d40 (draft) [ ] B+ |
|
1241 | 1241 | |/ |
|
1242 | 1242 | o 0:4b34ecfb0d56 (draft) [ ] A |
|
1243 | 1243 | |
|
1244 | 1244 | |
|
1245 | 1245 | #if serve |
|
1246 | 1246 | |
|
1247 | 1247 | Test issue 4506 |
|
1248 | 1248 | |
|
1249 | 1249 | $ cd .. |
|
1250 | 1250 | $ hg init repo-issue4506 |
|
1251 | 1251 | $ cd repo-issue4506 |
|
1252 | 1252 | $ echo "0" > foo |
|
1253 | 1253 | $ hg add foo |
|
1254 | 1254 | $ hg ci -m "content-0" |
|
1255 | 1255 | |
|
1256 | 1256 | $ hg up null |
|
1257 | 1257 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
1258 | 1258 | $ echo "1" > bar |
|
1259 | 1259 | $ hg add bar |
|
1260 | 1260 | $ hg ci -m "content-1" |
|
1261 | 1261 | created new head |
|
1262 | 1262 | $ hg up 0 |
|
1263 | 1263 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
1264 | 1264 | $ hg graft 1 |
|
1265 | 1265 | grafting 1:1c9eddb02162 "content-1" (tip) |
|
1266 | 1266 | |
|
1267 | 1267 | $ hg debugobsolete `hg log -r1 -T'{node}'` `hg log -r2 -T'{node}'` |
|
1268 | 1268 | obsoleted 1 changesets |
|
1269 | 1269 | |
|
1270 | 1270 | $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
|
1271 | 1271 | $ cat hg.pid >> $DAEMON_PIDS |
|
1272 | 1272 | |
|
1273 | 1273 | $ get-with-headers.py --headeronly localhost:$HGPORT 'rev/1' |
|
1274 | 1274 | 404 Not Found |
|
1275 | 1275 | [1] |
|
1276 | 1276 | $ get-with-headers.py --headeronly localhost:$HGPORT 'file/tip/bar' |
|
1277 | 1277 | 200 Script output follows |
|
1278 | 1278 | $ get-with-headers.py --headeronly localhost:$HGPORT 'annotate/tip/bar' |
|
1279 | 1279 | 200 Script output follows |
|
1280 | 1280 | |
|
1281 | 1281 | $ killdaemons.py |
|
1282 | 1282 | |
|
1283 | 1283 | #endif |
|
1284 | 1284 | |
|
1285 | 1285 | Test heads computation on pending index changes with obsolescence markers |
|
1286 | 1286 | $ cd .. |
|
1287 | 1287 | $ cat >$TESTTMP/test_extension.py << EOF |
|
1288 | 1288 | > from __future__ import absolute_import |
|
1289 | 1289 | > from mercurial.i18n import _ |
|
1290 | 1290 | > from mercurial import cmdutil, registrar |
|
1291 | 1291 | > |
|
1292 | 1292 | > cmdtable = {} |
|
1293 | 1293 | > command = registrar.command(cmdtable) |
|
1294 | 1294 | > @command(b"amendtransient",[], _('hg amendtransient [rev]')) |
|
1295 | 1295 | > def amend(ui, repo, *pats, **opts): |
|
1296 | 1296 | > opts['message'] = 'Test' |
|
1297 | 1297 | > opts['logfile'] = None |
|
1298 | 1298 | > cmdutil.amend(ui, repo, repo['.'], {}, pats, opts) |
|
1299 | 1299 | > ui.write('%s\n' % repo.changelog.headrevs()) |
|
1300 | 1300 | > EOF |
|
1301 | 1301 | $ cat >> $HGRCPATH << EOF |
|
1302 | 1302 | > [extensions] |
|
1303 | 1303 | > testextension=$TESTTMP/test_extension.py |
|
1304 | 1304 | > EOF |
|
1305 | 1305 | $ hg init repo-issue-nativerevs-pending-changes |
|
1306 | 1306 | $ cd repo-issue-nativerevs-pending-changes |
|
1307 | 1307 | $ mkcommit a |
|
1308 | 1308 | $ mkcommit b |
|
1309 | 1309 | $ hg up ".^" |
|
1310 | 1310 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
1311 | 1311 | $ echo aa > a |
|
1312 | 1312 | $ hg amendtransient |
|
1313 | 1313 | 1 new orphan changesets |
|
1314 | 1314 | [1, 2] |
|
1315 | 1315 | |
|
1316 | 1316 | Test cache consistency for the visible filter |
|
1317 | 1317 | 1) We want to make sure that the cached filtered revs are invalidated when |
|
1318 | 1318 | bookmarks change |
|
1319 | 1319 | $ cd .. |
|
1320 | 1320 | $ cat >$TESTTMP/test_extension.py << EOF |
|
1321 | 1321 | > from __future__ import absolute_import, print_function |
|
1322 | 1322 | > import weakref |
|
1323 | 1323 | > from mercurial import ( |
|
1324 | 1324 | > bookmarks, |
|
1325 | 1325 | > cmdutil, |
|
1326 | 1326 | > extensions, |
|
1327 | 1327 | > repoview, |
|
1328 | 1328 | > ) |
|
1329 | 1329 | > def _bookmarkchanged(orig, bkmstoreinst, *args, **kwargs): |
|
1330 | 1330 | > reporef = weakref.ref(bkmstoreinst._repo) |
|
1331 | 1331 | > def trhook(tr): |
|
1332 | 1332 | > repo = reporef() |
|
1333 | 1333 | > hidden1 = repoview.computehidden(repo) |
|
1334 | 1334 | > hidden = repoview.filterrevs(repo, 'visible') |
|
1335 | 1335 | > if sorted(hidden1) != sorted(hidden): |
|
1336 | 1336 | > print("cache inconsistency") |
|
1337 | 1337 | > bkmstoreinst._repo.currenttransaction().addpostclose('test_extension', trhook) |
|
1338 | 1338 | > orig(bkmstoreinst, *args, **kwargs) |
|
1339 | 1339 | > def extsetup(ui): |
|
1340 | 1340 | > extensions.wrapfunction(bookmarks.bmstore, '_recordchange', |
|
1341 | 1341 | > _bookmarkchanged) |
|
1342 | 1342 | > EOF |
|
1343 | 1343 | |
|
1344 | 1344 | $ hg init repo-cache-inconsistency |
|
1345 | 1345 | $ cd repo-issue-nativerevs-pending-changes |
|
1346 | 1346 | $ mkcommit a |
|
1347 | 1347 | a already tracked! |
|
1348 | 1348 | $ mkcommit b |
|
1349 | 1349 | $ hg id |
|
1350 | 1350 | 13bedc178fce tip |
|
1351 | 1351 | $ echo "hello" > b |
|
1352 | 1352 | $ hg commit --amend -m "message" |
|
1353 | 1353 | $ hg book bookb -r 13bedc178fce --hidden |
|
1354 | 1354 | bookmarking hidden changeset 13bedc178fce |
|
1355 | 1355 | (hidden revision '13bedc178fce' was rewritten as: a9b1f8652753) |
|
1356 | 1356 | $ hg log -r 13bedc178fce |
|
1357 | 1357 | 4:13bedc178fce (draft *obsolete*) [ bookb] add b [rewritten using amend as 5:a9b1f8652753] |
|
1358 | 1358 | $ hg book -d bookb |
|
1359 | 1359 | $ hg log -r 13bedc178fce |
|
1360 | 1360 | abort: hidden revision '13bedc178fce' was rewritten as: a9b1f8652753! |
|
1361 | 1361 | (use --hidden to access hidden revisions) |
|
1362 | 1362 | [255] |
|
1363 | 1363 | |
|
1364 | 1364 | Empty out the test extension, as it isn't compatible with later parts |
|
1365 | 1365 | of the test. |
|
1366 | 1366 | $ echo > $TESTTMP/test_extension.py |
|
1367 | 1367 | |
|
1368 | 1368 | Test ability to pull changeset with locally applying obsolescence markers |
|
1369 | 1369 | (issue4945) |
|
1370 | 1370 | |
|
1371 | 1371 | $ cd .. |
|
1372 | 1372 | $ hg init issue4845 |
|
1373 | 1373 | $ cd issue4845 |
|
1374 | 1374 | |
|
1375 | 1375 | $ echo foo > f0 |
|
1376 | 1376 | $ hg add f0 |
|
1377 | 1377 | $ hg ci -m '0' |
|
1378 | 1378 | $ echo foo > f1 |
|
1379 | 1379 | $ hg add f1 |
|
1380 | 1380 | $ hg ci -m '1' |
|
1381 | 1381 | $ echo foo > f2 |
|
1382 | 1382 | $ hg add f2 |
|
1383 | 1383 | $ hg ci -m '2' |
|
1384 | 1384 | |
|
1385 | 1385 | $ echo bar > f2 |
|
1386 | 1386 | $ hg commit --amend --config experimental.evolution.createmarkers=True |
|
1387 | 1387 | $ hg log -G |
|
1388 | 1388 | @ 3:b0551702f918 (draft) [tip ] 2 |
|
1389 | 1389 | | |
|
1390 | 1390 | o 1:e016b03fd86f (draft) [ ] 1 |
|
1391 | 1391 | | |
|
1392 | 1392 | o 0:a78f55e5508c (draft) [ ] 0 |
|
1393 | 1393 | |
|
1394 | 1394 | $ hg log -G --hidden |
|
1395 | 1395 | @ 3:b0551702f918 (draft) [tip ] 2 |
|
1396 | 1396 | | |
|
1397 | 1397 | | x 2:e008cf283490 (draft *obsolete*) [ ] 2 [rewritten using amend as 3:b0551702f918] |
|
1398 | 1398 | |/ |
|
1399 | 1399 | o 1:e016b03fd86f (draft) [ ] 1 |
|
1400 | 1400 | | |
|
1401 | 1401 | o 0:a78f55e5508c (draft) [ ] 0 |
|
1402 | 1402 | |
|
1403 | 1403 | |
|
1404 | 1404 | $ hg strip --hidden -r 2 --config extensions.strip= --config devel.strip-obsmarkers=no |
|
1405 | 1405 | saved backup bundle to $TESTTMP/tmpe/issue4845/.hg/strip-backup/e008cf283490-ede36964-backup.hg |
|
1406 | 1406 | $ hg debugobsolete |
|
1407 | 1407 | e008cf2834908e5d6b0f792a9d4b0e2272260fb8 b0551702f918510f01ae838ab03a463054c67b46 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'amend', 'user': 'test'} |
|
1408 | 1408 | $ hg log -G |
|
1409 | 1409 | @ 2:b0551702f918 (draft) [tip ] 2 |
|
1410 | 1410 | | |
|
1411 | 1411 | o 1:e016b03fd86f (draft) [ ] 1 |
|
1412 | 1412 | | |
|
1413 | 1413 | o 0:a78f55e5508c (draft) [ ] 0 |
|
1414 | 1414 | |
|
1415 | 1415 | $ hg log -G --hidden |
|
1416 | 1416 | @ 2:b0551702f918 (draft) [tip ] 2 |
|
1417 | 1417 | | |
|
1418 | 1418 | o 1:e016b03fd86f (draft) [ ] 1 |
|
1419 | 1419 | | |
|
1420 | 1420 | o 0:a78f55e5508c (draft) [ ] 0 |
|
1421 | 1421 | |
|
1422 | 1422 | $ hg debugbundle .hg/strip-backup/e008cf283490-*-backup.hg |
|
1423 | 1423 | Stream params: {Compression: BZ} |
|
1424 | 1424 | changegroup -- {nbchanges: 1, version: 02} |
|
1425 | 1425 | e008cf2834908e5d6b0f792a9d4b0e2272260fb8 |
|
1426 | 1426 | phase-heads -- {} |
|
1427 | 1427 | e008cf2834908e5d6b0f792a9d4b0e2272260fb8 draft |
|
1428 | 1428 | |
|
1429 | 1429 | $ hg pull .hg/strip-backup/e008cf283490-*-backup.hg |
|
1430 | 1430 | pulling from .hg/strip-backup/e008cf283490-ede36964-backup.hg |
|
1431 | 1431 | searching for changes |
|
1432 | 1432 | no changes found |
|
1433 | 1433 | $ hg debugobsolete |
|
1434 | 1434 | e008cf2834908e5d6b0f792a9d4b0e2272260fb8 b0551702f918510f01ae838ab03a463054c67b46 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'amend', 'user': 'test'} |
|
1435 | 1435 | $ hg log -G |
|
1436 | 1436 | @ 2:b0551702f918 (draft) [tip ] 2 |
|
1437 | 1437 | | |
|
1438 | 1438 | o 1:e016b03fd86f (draft) [ ] 1 |
|
1439 | 1439 | | |
|
1440 | 1440 | o 0:a78f55e5508c (draft) [ ] 0 |
|
1441 | 1441 | |
|
1442 | 1442 | $ hg log -G --hidden |
|
1443 | 1443 | @ 2:b0551702f918 (draft) [tip ] 2 |
|
1444 | 1444 | | |
|
1445 | 1445 | o 1:e016b03fd86f (draft) [ ] 1 |
|
1446 | 1446 | | |
|
1447 | 1447 | o 0:a78f55e5508c (draft) [ ] 0 |
|
1448 | 1448 | |
|
1449 | 1449 | |
|
1450 | 1450 | Testing that strip remove markers: |
|
1451 | 1451 | |
|
1452 | 1452 | $ hg strip -r 1 --config extensions.strip= |
|
1453 | 1453 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
1454 | 1454 | saved backup bundle to $TESTTMP/tmpe/issue4845/.hg/strip-backup/e016b03fd86f-65ede734-backup.hg |
|
1455 | 1455 | $ hg debugobsolete |
|
1456 | 1456 | $ hg log -G |
|
1457 | 1457 | @ 0:a78f55e5508c (draft) [tip ] 0 |
|
1458 | 1458 | |
|
1459 | 1459 | $ hg log -G --hidden |
|
1460 | 1460 | @ 0:a78f55e5508c (draft) [tip ] 0 |
|
1461 | 1461 | |
|
1462 | 1462 | $ hg debugbundle .hg/strip-backup/e016b03fd86f-*-backup.hg |
|
1463 | 1463 | Stream params: {Compression: BZ} |
|
1464 | 1464 | changegroup -- {nbchanges: 2, version: 02} |
|
1465 | 1465 | e016b03fd86fcccc54817d120b90b751aaf367d6 |
|
1466 | 1466 | b0551702f918510f01ae838ab03a463054c67b46 |
|
1467 | 1467 | obsmarkers -- {} |
|
1468 | 1468 | version: 1 (92 bytes) |
|
1469 | 1469 | e008cf2834908e5d6b0f792a9d4b0e2272260fb8 b0551702f918510f01ae838ab03a463054c67b46 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'amend', 'user': 'test'} |
|
1470 | 1470 | phase-heads -- {} |
|
1471 | 1471 | b0551702f918510f01ae838ab03a463054c67b46 draft |
|
1472 | 1472 | |
|
1473 | 1473 | $ hg unbundle .hg/strip-backup/e016b03fd86f-*-backup.hg |
|
1474 | 1474 | adding changesets |
|
1475 | 1475 | adding manifests |
|
1476 | 1476 | adding file changes |
|
1477 | 1477 | added 2 changesets with 2 changes to 2 files |
|
1478 | 1478 | 1 new obsolescence markers |
|
1479 | 1479 | new changesets e016b03fd86f:b0551702f918 |
|
1480 | 1480 | (run 'hg update' to get a working copy) |
|
1481 | 1481 | $ hg debugobsolete | sort |
|
1482 | 1482 | e008cf2834908e5d6b0f792a9d4b0e2272260fb8 b0551702f918510f01ae838ab03a463054c67b46 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'amend', 'user': 'test'} |
|
1483 | 1483 | $ hg log -G |
|
1484 | 1484 | o 2:b0551702f918 (draft) [tip ] 2 |
|
1485 | 1485 | | |
|
1486 | 1486 | o 1:e016b03fd86f (draft) [ ] 1 |
|
1487 | 1487 | | |
|
1488 | 1488 | @ 0:a78f55e5508c (draft) [ ] 0 |
|
1489 | 1489 | |
|
1490 | 1490 | $ hg log -G --hidden |
|
1491 | 1491 | o 2:b0551702f918 (draft) [tip ] 2 |
|
1492 | 1492 | | |
|
1493 | 1493 | o 1:e016b03fd86f (draft) [ ] 1 |
|
1494 | 1494 | | |
|
1495 | 1495 | @ 0:a78f55e5508c (draft) [ ] 0 |
|
1496 | 1496 | |
|
1497 | 1497 | Test that 'hg debugobsolete --index --rev' can show indices of obsmarkers when |
|
1498 | 1498 | only a subset of those are displayed (because of --rev option) |
|
1499 | 1499 | $ hg init doindexrev |
|
1500 | 1500 | $ cd doindexrev |
|
1501 | 1501 | $ echo a > a |
|
1502 | 1502 | $ hg ci -Am a |
|
1503 | 1503 | adding a |
|
1504 | 1504 | $ hg ci --amend -m aa |
|
1505 | 1505 | $ echo b > b |
|
1506 | 1506 | $ hg ci -Am b |
|
1507 | 1507 | adding b |
|
1508 | 1508 | $ hg ci --amend -m bb |
|
1509 | 1509 | $ echo c > c |
|
1510 | 1510 | $ hg ci -Am c |
|
1511 | 1511 | adding c |
|
1512 | 1512 | $ hg ci --amend -m cc |
|
1513 | 1513 | $ echo d > d |
|
1514 | 1514 | $ hg ci -Am d |
|
1515 | 1515 | adding d |
|
1516 | 1516 | $ hg ci --amend -m dd --config experimental.evolution.track-operation=1 |
|
1517 | 1517 | $ hg debugobsolete --index --rev "3+7" |
|
1518 | 1518 | 1 6fdef60fcbabbd3d50e9b9cbc2a240724b91a5e1 d27fb9b066076fd921277a4b9e8b9cb48c95bc6a 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '1', 'operation': 'amend', 'user': 'test'} |
|
1519 | 1519 | 3 4715cf767440ed891755448016c2b8cf70760c30 7ae79c5d60f049c7b0dd02f5f25b9d60aaf7b36d 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '1', 'operation': 'amend', 'user': 'test'} |
|
1520 | 1520 | $ hg debugobsolete --index --rev "3+7" -Tjson |
|
1521 | 1521 | [ |
|
1522 | 1522 | { |
|
1523 | 1523 | "date": [0.0, 0], |
|
1524 | 1524 | "flag": 0, |
|
1525 | 1525 | "index": 1, |
|
1526 | 1526 | "metadata": {"ef1": "1", "operation": "amend", "user": "test"}, |
|
1527 | 1527 | "prednode": "6fdef60fcbabbd3d50e9b9cbc2a240724b91a5e1", |
|
1528 | 1528 | "succnodes": ["d27fb9b066076fd921277a4b9e8b9cb48c95bc6a"] |
|
1529 | 1529 | }, |
|
1530 | 1530 | { |
|
1531 | 1531 | "date": [0.0, 0], |
|
1532 | 1532 | "flag": 0, |
|
1533 | 1533 | "index": 3, |
|
1534 | 1534 | "metadata": {"ef1": "1", "operation": "amend", "user": "test"}, |
|
1535 | 1535 | "prednode": "4715cf767440ed891755448016c2b8cf70760c30", |
|
1536 | 1536 | "succnodes": ["7ae79c5d60f049c7b0dd02f5f25b9d60aaf7b36d"] |
|
1537 | 1537 | } |
|
1538 | 1538 | ] |
|
1539 | 1539 | |
|
1540 | 1540 | Test the --delete option of debugobsolete command |
|
1541 | 1541 | $ hg debugobsolete --index |
|
1542 | 1542 | 0 cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b f9bd49731b0b175e42992a3c8fa6c678b2bc11f1 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '1', 'operation': 'amend', 'user': 'test'} |
|
1543 | 1543 | 1 6fdef60fcbabbd3d50e9b9cbc2a240724b91a5e1 d27fb9b066076fd921277a4b9e8b9cb48c95bc6a 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '1', 'operation': 'amend', 'user': 'test'} |
|
1544 | 1544 | 2 1ab51af8f9b41ef8c7f6f3312d4706d870b1fb74 29346082e4a9e27042b62d2da0e2de211c027621 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '1', 'operation': 'amend', 'user': 'test'} |
|
1545 | 1545 | 3 4715cf767440ed891755448016c2b8cf70760c30 7ae79c5d60f049c7b0dd02f5f25b9d60aaf7b36d 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '1', 'operation': 'amend', 'user': 'test'} |
|
1546 | 1546 | $ hg debugobsolete --delete 1 --delete 3 |
|
1547 | 1547 | deleted 2 obsolescence markers |
|
1548 | 1548 | $ hg debugobsolete |
|
1549 | 1549 | cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b f9bd49731b0b175e42992a3c8fa6c678b2bc11f1 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '1', 'operation': 'amend', 'user': 'test'} |
|
1550 | 1550 | 1ab51af8f9b41ef8c7f6f3312d4706d870b1fb74 29346082e4a9e27042b62d2da0e2de211c027621 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '1', 'operation': 'amend', 'user': 'test'} |
|
1551 | 1551 | |
|
1552 | 1552 | Test adding changeset after obsmarkers affecting it |
|
1553 | 1553 | (eg: during pull, or unbundle) |
|
1554 | 1554 | |
|
1555 | 1555 | $ mkcommit e |
|
1556 | 1556 | $ hg bundle -r . --base .~1 ../bundle-2.hg |
|
1557 | 1557 | 1 changesets found |
|
1558 | 1558 | $ getid . |
|
1559 | 1559 | $ hg --config extensions.strip= strip -r . |
|
1560 | 1560 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
1561 | 1561 | saved backup bundle to $TESTTMP/tmpe/issue4845/doindexrev/.hg/strip-backup/9bc153528424-ee80edd4-backup.hg |
|
1562 | 1562 | $ hg debugobsolete 9bc153528424ea266d13e57f9ff0d799dfe61e4b |
|
1563 | 1563 | $ hg unbundle ../bundle-2.hg |
|
1564 | 1564 | adding changesets |
|
1565 | 1565 | adding manifests |
|
1566 | 1566 | adding file changes |
|
1567 | 1567 | added 1 changesets with 1 changes to 1 files |
|
1568 | 1568 | (run 'hg update' to get a working copy) |
|
1569 | 1569 | $ hg log -G |
|
1570 | 1570 | @ 7:7ae79c5d60f0 (draft) [tip ] dd |
|
1571 | 1571 | | |
|
1572 | 1572 | | o 6:4715cf767440 (draft) [ ] d |
|
1573 | 1573 | |/ |
|
1574 | 1574 | o 5:29346082e4a9 (draft) [ ] cc |
|
1575 | 1575 | | |
|
1576 | 1576 | o 3:d27fb9b06607 (draft) [ ] bb |
|
1577 | 1577 | | |
|
1578 | 1578 | | o 2:6fdef60fcbab (draft) [ ] b |
|
1579 | 1579 | |/ |
|
1580 | 1580 | o 1:f9bd49731b0b (draft) [ ] aa |
|
1581 | 1581 | |
|
1582 | 1582 | |
|
1583 | 1583 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now