diff -r 9d12416a1593 -r ef7b48e6388d tests/test-obsolete-divergent.t
--- a/tests/test-obsolete-divergent.t Sun Feb 18 15:53:48 2018 -0500
+++ b/tests/test-obsolete-divergent.t Mon Feb 19 12:30:23 2018 +0800
@@ -621,6 +621,29 @@
a139f71be9da
$ hg log -r 'contentdivergent()'
+#if serve
+
+ $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid --config web.view=all \
+ > -A access.log -E errors.log
+ $ cat hg.pid >> $DAEMON_PIDS
+
+check an obsolete changeset that was rewritten and also split
+
+ $ get-with-headers.py localhost:$HGPORT 'rev/e442cfc57690?style=paper' | egrep 'rewritten|split'
+
rewritten as bed64f5d2f5a by test Thu, 01 Jan 1970 00:00:00 +0000split as 7ae126973a96 14608b260df8 by test Thu, 01 Jan 1970 00:00:00 +0000 |
+ $ get-with-headers.py localhost:$HGPORT 'rev/e442cfc57690?style=coal' | egrep 'rewritten|split'
+ rewritten as bed64f5d2f5a by test Thu, 01 Jan 1970 00:00:00 +0000split as 7ae126973a96 14608b260df8 by test Thu, 01 Jan 1970 00:00:00 +0000 |
+ $ get-with-headers.py localhost:$HGPORT 'rev/e442cfc57690?style=gitweb' | egrep 'rewritten|split'
+ obsolete | rewritten as bed64f5d2f5a by test Thu, 01 Jan 1970 00:00:00 +0000split as 7ae126973a96 14608b260df8 by test Thu, 01 Jan 1970 00:00:00 +0000 |
+ $ get-with-headers.py localhost:$HGPORT 'rev/e442cfc57690?style=monoblue' | egrep 'rewritten|split'
+ obsoleterewritten as bed64f5d2f5a by test Thu, 01 Jan 1970 00:00:00 +0000split as 7ae126973a96 14608b260df8 by test Thu, 01 Jan 1970 00:00:00 +0000
+ $ get-with-headers.py localhost:$HGPORT 'rev/e442cfc57690?style=spartan' | egrep 'rewritten|split'
+ rewritten as bed64f5d2f5a by test Thu, 01 Jan 1970 00:00:00 +0000split as 7ae126973a96 14608b260df8 by test Thu, 01 Jan 1970 00:00:00 +0000 |
+
+ $ killdaemons.py
+
+#endif
+
$ cd ..