# HG changeset patch # User Anton Shestakov # Date 1484069107 -28800 # Node ID 4259df518223d72646c7688164c6f4924bbf2c5c # Parent 9cb0bb0f29f06fa88ac4f41d8743871b33c48548 hgweb: test the order of archive links diff -r 9cb0bb0f29f0 -r 4259df518223 tests/test-archive.t --- a/tests/test-archive.t Thu Jan 05 17:16:51 2017 +0000 +++ b/tests/test-archive.t Wed Jan 11 01:25:07 2017 +0800 @@ -61,6 +61,13 @@ $ hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log $ cat hg.pid >> $DAEMON_PIDS +check archive links' order + + $ get-with-headers.py localhost:$HGPORT "?revcount=1" | grep '/archive/tip.' + zip + gz + bz2 + invalid arch type should give 404 $ get-with-headers.py localhost:$HGPORT "archive/tip.invalid" | head -n 1