# HG changeset patch # User Anton Shestakov # Date 1432922769 -28800 # Node ID fe0aac1082f3faccd9f4c29908be2b0f7c98af0f # Parent 8be8c2d3559abf5588a9e9979070104908c00a35 tests: descending empty dirs works in all hgweb styles, test them too The tested feature was added to multiple hgweb styles in c21d236ca897, but only paper was tested. Let's test everything now, including monoblue, which only got the feature some 6 years late in e50d8b21f4f4. diff -r 8be8c2d3559a -r fe0aac1082f3 tests/test-hgweb-descend-empties.t --- a/tests/test-hgweb-descend-empties.t Sat May 30 01:57:19 2015 +0800 +++ b/tests/test-hgweb-descend-empties.t Sat May 30 02:06:09 2015 +0800 @@ -27,7 +27,7 @@ $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log $ cat hg.pid >> $DAEMON_PIDS -manifest with descending +manifest with descending (paper) $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file' 200 Script output follows @@ -143,6 +143,423 @@ +manifest with descending (coal) + + $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file?style=coal' + 200 Script output follows + + + + + + + + + + test: c9f45f7a1659 / + + + +
+ + +
+ +

directory / @ 0:c9f45f7a1659 tip

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
namesizepermissions
[up]drwxr-xr-x
+ + dir. a1/ + + + a2/a3/a4 + + drwxr-xr-x
+ + dir. b1/ + + + b2/b3 + + drwxr-xr-x
+ + dir. d1/ + + + d2 + + drwxr-xr-x
+
+
+ + + + + + + +manifest with descending (monoblue) + + $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file?style=monoblue' + 200 Script output follows + + + + + + + + + + test: files + + + + + +
+ + + + + +

/ default tip

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
drwxr-xr-x[up]
drwxr-xr-x + a1 + a2/a3/a4 + files
drwxr-xr-x + b1 + b2/b3 + files
drwxr-xr-x + d1 + d2 + files
+ + + + +
+

mercurial

+
+ +
+
+
+
+ +
+ + + + + +manifest with descending (gitweb) + + $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file?style=gitweb' + 200 Script output follows + + + + + + + + + + + test: files + + + + + + + + + +
/ default tip
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
drwxr-xr-x[up]
drwxr-xr-x + a1 + a2/a3/a4 +
drwxr-xr-x + b1 + b2/b3 +
drwxr-xr-x + d1 + d2 +
+ + + + + + + +manifest with descending (spartan) + + $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file?style=spartan' + 200 Script output follows + + + + + + + + + + test: files for changeset c9f45f7a1659 + + + +
+ changelog + shortlog + graph + tags + branches + changeset + + help +
+ +

Mercurial / files for changeset c9f45f7a1659: /

+ + + + + + + + +
drwxr-xr-x  +   +   + [up] +
drwxr-xr-x  +   +   + + a1/ + + a2/a3/a4 + +
drwxr-xr-x  +   +   + + b1/ + + b2/b3 + +
drwxr-xr-x  +   +   + + d1/ + + d2 + + +
+ + + + + + + + $ cat errors.log $ cd ..