--- a/tests/test-hgweb-commands.t Thu Jan 31 01:44:29 2013 +0100
+++ b/tests/test-hgweb-commands.t Thu Jan 31 22:30:52 2013 +0100
@@ -1392,4 +1392,33 @@
$ grep Status search
Status: 200 Script output follows\r (esc)
+proper status for filtered revision
+
+
+(missing rev)
+
+ $ PATH_INFO=/rev/5; export PATH_INFO
+ $ QUERY_STRING='style=raw'
+ $ python hgweb.cgi #> search
+ Status: 404 Not Found\r (esc)
+ ETag: *\r (glob) (esc)
+ Content-Type: text/plain; charset=ascii\r (esc)
+ \r (esc)
+
+ error: unknown revision '5'
+
+
+
+(filtered rev)
+
+ $ PATH_INFO=/rev/4; export PATH_INFO
+ $ QUERY_STRING='style=raw'
+ $ python hgweb.cgi #> search
+ Status: 404 Not Found\r (esc)
+ ETag: *\r (glob) (esc)
+ Content-Type: text/plain; charset=ascii\r (esc)
+ \r (esc)
+
+ error: unknown revision '4'
+
$ cd ..