diff --git a/tests/test-obsolete.t b/tests/test-obsolete.t
--- a/tests/test-obsolete.t
+++ b/tests/test-obsolete.t
@@ -894,6 +894,69 @@
$ get-with-headers.py --headeronly localhost:$HGPORT 'log/'`hg log -r . -T "{node}"`/'babar'
200 Script output follows
+check filelog view for hidden commits (obsolete ones are hidden here)
+
+ $ get-with-headers.py localhost:$HGPORT 'log/'`hg log -r . -T "{node}"`/'babar' | grep obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+ draft obsolete
+
$ get-with-headers.py --headeronly localhost:$HGPORT 'rev/68'
200 Script output follows
$ get-with-headers.py --headeronly localhost:$HGPORT 'rev/67'