tests/test-hgweb-commands.t
changeset 33262 8e6f4939a69a
parent 32995 7c82bfd55d47
child 34322 10e162bb9bf5
equal deleted inserted replaced
33261:be49f3fdcd10 33262:8e6f4939a69a
  2263   > wsgicgi.launch(app)
  2263   > wsgicgi.launch(app)
  2264   > HGWEB
  2264   > HGWEB
  2265   $ . "$TESTDIR/cgienv"
  2265   $ . "$TESTDIR/cgienv"
  2266   $ PATH_INFO=/bookmarks; export PATH_INFO
  2266   $ PATH_INFO=/bookmarks; export PATH_INFO
  2267   $ QUERY_STRING='style=raw'
  2267   $ QUERY_STRING='style=raw'
  2268   $ python hgweb.cgi | grep -v ETag:
  2268   $ $PYTHON hgweb.cgi | grep -v ETag:
  2269   Status: 200 Script output follows\r (esc)
  2269   Status: 200 Script output follows\r (esc)
  2270   Content-Type: text/plain; charset=ascii\r (esc)
  2270   Content-Type: text/plain; charset=ascii\r (esc)
  2271   \r (esc)
  2271   \r (esc)
  2272 
  2272 
  2273 listbookmarks hides secret bookmarks
  2273 listbookmarks hides secret bookmarks
  2274 
  2274 
  2275   $ PATH_INFO=/; export PATH_INFO
  2275   $ PATH_INFO=/; export PATH_INFO
  2276   $ QUERY_STRING='cmd=listkeys&namespace=bookmarks'
  2276   $ QUERY_STRING='cmd=listkeys&namespace=bookmarks'
  2277   $ python hgweb.cgi
  2277   $ $PYTHON hgweb.cgi
  2278   Status: 200 Script output follows\r (esc)
  2278   Status: 200 Script output follows\r (esc)
  2279   Content-Type: application/mercurial-0.1\r (esc)
  2279   Content-Type: application/mercurial-0.1\r (esc)
  2280   Content-Length: 0\r (esc)
  2280   Content-Length: 0\r (esc)
  2281   \r (esc)
  2281   \r (esc)
  2282 
  2282 
  2283 search works with filtering
  2283 search works with filtering
  2284 
  2284 
  2285   $ PATH_INFO=/log; export PATH_INFO
  2285   $ PATH_INFO=/log; export PATH_INFO
  2286   $ QUERY_STRING='rev=babar'
  2286   $ QUERY_STRING='rev=babar'
  2287   $ python hgweb.cgi > search
  2287   $ $PYTHON hgweb.cgi > search
  2288   $ grep Status search
  2288   $ grep Status search
  2289   Status: 200 Script output follows\r (esc)
  2289   Status: 200 Script output follows\r (esc)
  2290 
  2290 
  2291 summary works with filtering (issue3810)
  2291 summary works with filtering (issue3810)
  2292 
  2292 
  2293   $ PATH_INFO=/summary; export PATH_INFO
  2293   $ PATH_INFO=/summary; export PATH_INFO
  2294   $ QUERY_STRING='style=monoblue'; export QUERY_STRING
  2294   $ QUERY_STRING='style=monoblue'; export QUERY_STRING
  2295   $ python hgweb.cgi > summary.out
  2295   $ $PYTHON hgweb.cgi > summary.out
  2296   $ grep "^Status" summary.out
  2296   $ grep "^Status" summary.out
  2297   Status: 200 Script output follows\r (esc)
  2297   Status: 200 Script output follows\r (esc)
  2298 
  2298 
  2299 proper status for filtered revision
  2299 proper status for filtered revision
  2300 
  2300 
  2301 
  2301 
  2302 (missing rev)
  2302 (missing rev)
  2303 
  2303 
  2304   $ PATH_INFO=/rev/5; export PATH_INFO
  2304   $ PATH_INFO=/rev/5; export PATH_INFO
  2305   $ QUERY_STRING='style=raw'
  2305   $ QUERY_STRING='style=raw'
  2306   $ python hgweb.cgi #> search
  2306   $ $PYTHON hgweb.cgi #> search
  2307   Status: 404 Not Found\r (esc)
  2307   Status: 404 Not Found\r (esc)
  2308   ETag: W/"*"\r (glob) (esc)
  2308   ETag: W/"*"\r (glob) (esc)
  2309   Content-Type: text/plain; charset=ascii\r (esc)
  2309   Content-Type: text/plain; charset=ascii\r (esc)
  2310   \r (esc)
  2310   \r (esc)
  2311   
  2311   
  2315 
  2315 
  2316 (filtered rev)
  2316 (filtered rev)
  2317 
  2317 
  2318   $ PATH_INFO=/rev/4; export PATH_INFO
  2318   $ PATH_INFO=/rev/4; export PATH_INFO
  2319   $ QUERY_STRING='style=raw'
  2319   $ QUERY_STRING='style=raw'
  2320   $ python hgweb.cgi #> search
  2320   $ $PYTHON hgweb.cgi #> search
  2321   Status: 404 Not Found\r (esc)
  2321   Status: 404 Not Found\r (esc)
  2322   ETag: W/"*"\r (glob) (esc)
  2322   ETag: W/"*"\r (glob) (esc)
  2323   Content-Type: text/plain; charset=ascii\r (esc)
  2323   Content-Type: text/plain; charset=ascii\r (esc)
  2324   \r (esc)
  2324   \r (esc)
  2325   
  2325   
  2343   grafting 5:aed2d9c1d0e7 "5"
  2343   grafting 5:aed2d9c1d0e7 "5"
  2344 (turning the initial root secret (filtered))
  2344 (turning the initial root secret (filtered))
  2345   $ hg phase --force --secret 0
  2345   $ hg phase --force --secret 0
  2346   $ PATH_INFO=/graph/; export PATH_INFO
  2346   $ PATH_INFO=/graph/; export PATH_INFO
  2347   $ QUERY_STRING=''
  2347   $ QUERY_STRING=''
  2348   $ python hgweb.cgi | grep Status
  2348   $ $PYTHON hgweb.cgi | grep Status
  2349   Status: 200 Script output follows\r (esc)
  2349   Status: 200 Script output follows\r (esc)
  2350 (check rendered revision)
  2350 (check rendered revision)
  2351   $ QUERY_STRING='style=raw'
  2351   $ QUERY_STRING='style=raw'
  2352   $ python hgweb.cgi | grep -v ETag
  2352   $ $PYTHON hgweb.cgi | grep -v ETag
  2353   Status: 200 Script output follows\r (esc)
  2353   Status: 200 Script output follows\r (esc)
  2354   Content-Type: text/plain; charset=ascii\r (esc)
  2354   Content-Type: text/plain; charset=ascii\r (esc)
  2355   \r (esc)
  2355   \r (esc)
  2356   
  2356   
  2357   # HG graph
  2357   # HG graph