# HG changeset patch # User Anton Shestakov # Date 1519014623 -28800 # Node ID ef7b48e6388d57a7c2d9b6626d9d0dda7db41b51 # Parent 9d12416a1593ae9cca96ddaa5d8dfa6d1d18740f tests: check obsolete changeset with two obsfate entries It's more interesting to see how a changeset that was both rewritten and split looks in hgweb. 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' + 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=monoblue' | 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=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 .. diff -r 9d12416a1593 -r ef7b48e6388d tests/test-obsolete.t --- a/tests/test-obsolete.t Sun Feb 18 15:53:48 2018 -0500 +++ b/tests/test-obsolete.t Mon Feb 19 12:30:23 2018 +0800 @@ -1052,18 +1052,6 @@ obsolete: pruned by test Thu, 01 Jan 1970 00:00:00 +0000 -check an obsolete changeset that has been rewritten - $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=paper' | grep rewritten - rewritten as 3de5eca88c00 by test <test@example.net> Thu, 01 Jan 1970 00:00:00 +0000 - $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=coal' | grep rewritten - rewritten as 3de5eca88c00 by test <test@example.net> Thu, 01 Jan 1970 00:00:00 +0000 - $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=gitweb' | grep rewritten - obsoleterewritten as 3de5eca88c00 by test <test@example.net> Thu, 01 Jan 1970 00:00:00 +0000 - $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=monoblue' | grep rewritten -
obsolete
rewritten as 3de5eca88c00 by test <test@example.net> Thu, 01 Jan 1970 00:00:00 +0000
- $ get-with-headers.py localhost:$HGPORT 'rev/cda648ca50f5?style=spartan' | grep rewritten - rewritten as 3de5eca88c00 by test <test@example.net> Thu, 01 Jan 1970 00:00:00 +0000 - check changeset with instabilities $ get-with-headers.py localhost:$HGPORT 'log?rev=first(phasedivergent())&style=paper' | grep ''