##// END OF EJS Templates
hgweb: show obsolescence status of a commit...
av6 -
r35088:69ea10d5 default
parent child Browse files
Show More
@@ -263,11 +263,12 b" filecompchild = '"
263 263 shortlog = shortlog.tmpl
264 264 graph = graph.tmpl
265 265 phasetag = '{ifeq(phase, 'public', '', '<span class="phasetag" title="{phase|escape}">{phase|escape}</span> ')}'
266 obsoletetag = '{if(obsolete, '<span class="obsoletetag" title="obsolete">obsolete</span> ')}'
266 267 tagtag = '<span class="tagtag" title="{name|escape}">{name|escape}</span> '
267 268 branchtag = '<span class="branchtag" title="{name|escape}">{name|escape}</span> '
268 269 inbranchtag = '<span class="inbranchtag" title="{name|escape}">{name|escape}</span> '
269 270 bookmarktag = '<span class="bookmarktag" title="{name|escape}">{name|escape}</span> '
270 alltags = '<span class="logtags">{phasetag}{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span>'
271 alltags = '<span class="logtags">{phasetag}{obsoletetag}{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span>'
271 272 shortlogentry = '
272 273 <tr class="parity{parity}">
273 274 <td class="age"><i class="age">{date|rfc822date}</i></td>
@@ -222,11 +222,12 b" filecompchild = '"
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 obsoletetag = '{if(obsolete, '<span class="obsoletetag" title="obsolete">obsolete</span> ')}'
225 226 tagtag = '<span class="tagtag" title="{name|escape}">{name|escape}</span> '
226 227 branchtag = '<span class="branchtag" title="{name|escape}">{name|escape}</span> '
227 228 inbranchtag = '<span class="inbranchtag" title="{name|escape}">{name|escape}</span> '
228 229 bookmarktag = '<span class="bookmarktag" title="{name|escape}">{name|escape}</span> '
229 alltags = '<span class="logtags">{phasetag}{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span>'
230 alltags = '<span class="logtags">{phasetag}{obsoletetag}{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span>'
230 231 shortlogentry = '
231 232 <tr class="parity{parity}">
232 233 <td class="nowrap age">{date|rfc822date}</td>
@@ -199,12 +199,13 b" branchentry = '"
199 199 </td>
200 200 </tr>'
201 201 phasetag = '{ifeq(phase, 'public', '', '<span class="phase">{phase|escape}</span> ')}'
202 obsoletetag = '{if(obsolete, '<span class="obsolete">obsolete</span> ')}'
202 203 changelogtag = '<span class="tag">{name|escape}</span> '
203 204 changesettag = '<span class="tag">{tag|escape}</span> '
204 205 changesetbookmark = '<span class="tag">{bookmark|escape}</span> '
205 206 changelogbranchhead = '<span class="branchhead">{name|escape}</span> '
206 207 changelogbranchname = '<span class="branchname">{name|escape}</span> '
207 alltags = '{phasetag}{inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}{bookmarks%changelogtag}'
208 alltags = '{phasetag}{obsoletetag}{inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}{bookmarks%changelogtag}'
208 209
209 210 filediffparent = '
210 211 <tr>
@@ -22,6 +22,10 b''
22 22 <th class="phase">phase:</th>
23 23 <td class="phase">{phase|escape}</td>
24 24 </tr>')}
25 {if(obsolete, '<tr>
26 <th class="obsolete">obsolete:</th>
27 <td class="obsolete">yes</td>
28 </tr>')}
25 29 <tr>
26 30 <th class="files"><a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a>:</th>
27 31 <td class="files">{files}</td>
@@ -37,6 +37,10 b''
37 37 <th class="phase">phase:</th>
38 38 <td class="phase">{phase|escape}</td>
39 39 </tr>')}
40 {if(obsolete, '<tr>
41 <th class="obsolete">obsolete:</th>
42 <td class="obsolete">yes</td>
43 </tr>')}
40 44 <tr>
41 45 <th class="files">files:</th>
42 46 <td class="files">{files}</td>
@@ -126,6 +126,10 b' span.logtags span.phasetag {'
126 126 background-color: #dfafff;
127 127 border-color: #e2b8ff #ce48ff #ce48ff #e2b8ff;
128 128 }
129 span.logtags span.obsoletetag {
130 background-color: #dddddd;
131 border-color: #e4e4e4 #a3a3a3 #a3a3a3 #e4e4e4;
132 }
129 133 span.logtags span.tagtag {
130 134 background-color: #ffffaa;
131 135 border-color: #ffffcc #ffee00 #ffee00 #ffffcc;
@@ -237,6 +237,10 b' span.logtags span.phasetag {'
237 237 background-color: #dfafff;
238 238 border-color: #e2b8ff #ce48ff #ce48ff #e2b8ff;
239 239 }
240 span.logtags span.obsoletetag {
241 background-color: #dddddd;
242 border-color: #e4e4e4 #a3a3a3 #a3a3a3 #e4e4e4;
243 }
240 244 span.logtags span.tagtag {
241 245 background-color: #ffffaa;
242 246 border-color: #ffffcc #ffee00 #ffee00 #ffffcc;
@@ -146,6 +146,15 b' a { text-decoration:none; }'
146 146 vertical-align: baseline;
147 147 }
148 148
149 .obsolete {
150 color: #999;
151 font-size: 70%;
152 border-bottom: 1px dashed #999;
153 font-weight: normal;
154 margin-left: .5em;
155 vertical-align: baseline;
156 }
157
149 158 .tag {
150 159 color: #999;
151 160 font-size: 70%;
@@ -340,7 +340,7 b' static file'
340 340
341 341 $ get-with-headers.py --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server
342 342 200 Script output follows
343 content-length: 9151
343 content-length: 9261
344 344 content-type: text/css
345 345
346 346 body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; background: white; color: black; }
@@ -471,6 +471,10 b' static file'
471 471 background-color: #dfafff;
472 472 border-color: #e2b8ff #ce48ff #ce48ff #e2b8ff;
473 473 }
474 span.logtags span.obsoletetag {
475 background-color: #dddddd;
476 border-color: #e4e4e4 #a3a3a3 #a3a3a3 #e4e4e4;
477 }
474 478 span.logtags span.tagtag {
475 479 background-color: #ffffaa;
476 480 border-color: #ffffcc #ffee00 #ffee00 #ffffcc;
@@ -1015,6 +1015,30 b' test summary output'
1015 1015 orphan: 2 changesets
1016 1016 phase-divergent: 1 changesets
1017 1017
1018 #if serve
1019
1020 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
1021 $ cat hg.pid >> $DAEMON_PIDS
1022
1023 check obsolete changeset
1024
1025 $ get-with-headers.py localhost:$HGPORT 'log?rev=first(obsolete())&style=paper' | grep '<span class="obsolete">'
1026 <span class="phase">draft</span> <span class="obsolete">obsolete</span>
1027 $ get-with-headers.py localhost:$HGPORT 'log?rev=first(obsolete())&style=coal' | grep '<span class="obsolete">'
1028 <span class="phase">draft</span> <span class="obsolete">obsolete</span>
1029 $ get-with-headers.py localhost:$HGPORT 'log?rev=first(obsolete())&style=gitweb' | grep '<span class="logtags">'
1030 <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="obsoletetag" title="obsolete">obsolete</span> </span>
1031 $ get-with-headers.py localhost:$HGPORT 'log?rev=first(obsolete())&style=monoblue' | grep '<span class="logtags">'
1032 <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="obsoletetag" title="obsolete">obsolete</span> </span>
1033 $ get-with-headers.py localhost:$HGPORT 'log?rev=first(obsolete())&style=spartan' | grep 'class="obsolete"'
1034 <th class="obsolete">obsolete:</th>
1035 <td class="obsolete">yes</td>
1036
1037 $ killdaemons.py
1038
1039 $ rm hg.pid access.log errors.log
1040 #endif
1041
1018 1042 Test incoming/outcoming with changesets obsoleted remotely, known locally
1019 1043 ===============================================================================
1020 1044
General Comments 0
You need to be logged in to leave comments. Login now