Mercurial > hg
comparison tests/test-obsolete.t @ 35089:69ea10d5b00c
hgweb: show obsolescence status of a commit
As with phases, spartan theme shows a simple "obsolete: yes" on its own line
(this allows replacing "yes" with something more useful in future, like output
of obsfate* template functions). Everywhere else a new "tag" is added to the
same line that has phase, branch, etc of a changeset; in gitweb and monoblue
the element has gray background, in paper and coal the element is gray with a
dashed underline.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 18 Nov 2017 12:04:08 +0800 |
parents | a7e49a5b3e6f |
children | 38fe3fe4bbb6 |
comparison
equal
deleted
inserted
replaced
35088:a9454beb9dd8 | 35089:69ea10d5b00c |
---|---|
1013 update: 3 new changesets (update) | 1013 update: 3 new changesets (update) |
1014 phases: 4 draft | 1014 phases: 4 draft |
1015 orphan: 2 changesets | 1015 orphan: 2 changesets |
1016 phase-divergent: 1 changesets | 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 Test incoming/outcoming with changesets obsoleted remotely, known locally | 1042 Test incoming/outcoming with changesets obsoleted remotely, known locally |
1019 =============================================================================== | 1043 =============================================================================== |
1020 | 1044 |
1021 This test issue 3805 | 1045 This test issue 3805 |
1022 | 1046 |