Mercurial > hg
comparison tests/test-hgweb-no-request-uri @ 6796:943f066c0d58
Backed out changeset 4879468fa28f (incorrect Content-Length on Windows)
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Wed, 02 Jul 2008 12:02:33 +0200 |
parents | 4879468fa28f |
children | 2cfdabe235fb |
comparison
equal
deleted
inserted
replaced
6785:4879468fa28f | 6796:943f066c0d58 |
---|---|
42 } | 42 } |
43 | 43 |
44 output = StringIO() | 44 output = StringIO() |
45 env['PATH_INFO'] = '/' | 45 env['PATH_INFO'] = '/' |
46 env['QUERY_STRING'] = 'style=atom' | 46 env['QUERY_STRING'] = 'style=atom' |
47 content = hgweb('.', name = 'repo')(env, startrsp) | 47 hgweb('.', name = 'repo')(env, startrsp) |
48 sys.stdout.write(output.getvalue()) | 48 print output.getvalue() |
49 sys.stdout.write(''.join(content)) | |
50 print '---- ERRORS' | 49 print '---- ERRORS' |
51 print errors.getvalue() | 50 print errors.getvalue() |
52 | 51 |
53 output = StringIO() | 52 output = StringIO() |
54 env['PATH_INFO'] = '/file/tip/' | 53 env['PATH_INFO'] = '/file/tip/' |
55 env['QUERY_STRING'] = 'style=raw' | 54 env['QUERY_STRING'] = 'style=raw' |
56 content = hgweb('.', name = 'repo')(env, startrsp) | 55 hgweb('.', name = 'repo')(env, startrsp) |
57 sys.stdout.write(output.getvalue()) | 56 print output.getvalue() |
58 sys.stdout.write(''.join(content)) | |
59 print '---- ERRORS' | 57 print '---- ERRORS' |
60 print errors.getvalue() | 58 print errors.getvalue() |
61 | 59 |
62 output = StringIO() | 60 output = StringIO() |
63 env['PATH_INFO'] = '/' | 61 env['PATH_INFO'] = '/' |
64 env['QUERY_STRING'] = 'style=raw' | 62 env['QUERY_STRING'] = 'style=raw' |
65 content = hgwebdir({'repo': '.'})(env, startrsp) | 63 hgwebdir({'repo': '.'})(env, startrsp) |
66 sys.stdout.write(output.getvalue()) | 64 print output.getvalue() |
67 sys.stdout.write(''.join(content)) | |
68 print '---- ERRORS' | 65 print '---- ERRORS' |
69 print errors.getvalue() | 66 print errors.getvalue() |
70 | 67 |
71 output = StringIO() | 68 output = StringIO() |
72 env['PATH_INFO'] = '/repo/file/tip/' | 69 env['PATH_INFO'] = '/repo/file/tip/' |
73 env['QUERY_STRING'] = 'style=raw' | 70 env['QUERY_STRING'] = 'style=raw' |
74 content = hgwebdir({'repo': '.'})(env, startrsp) | 71 hgwebdir({'repo': '.'})(env, startrsp) |
75 sys.stdout.write(output.getvalue()) | 72 print output.getvalue() |
76 sys.stdout.write(''.join(content)) | |
77 print '---- ERRORS' | 73 print '---- ERRORS' |
78 print errors.getvalue() | 74 print errors.getvalue() |
79 EOF | 75 EOF |
80 | 76 |
81 python request.py | sed "s/http:\/\/127\.0\.0\.1:[0-9]*\//http:\/\/127.0.0.1\//" | 77 python request.py | sed "s/http:\/\/127\.0\.0\.1:[0-9]*\//http:\/\/127.0.0.1\//" |