Show More
@@ -177,6 +177,7 b' def uisetup(ui):' | |||||
177 | wireproto.permissions['putlfile'] = 'push' |
|
177 | wireproto.permissions['putlfile'] = 'push' | |
178 | wireproto.permissions['getlfile'] = 'pull' |
|
178 | wireproto.permissions['getlfile'] = 'pull' | |
179 | wireproto.permissions['statlfile'] = 'pull' |
|
179 | wireproto.permissions['statlfile'] = 'pull' | |
|
180 | wireproto.permissions['lheads'] = 'pull' | |||
180 |
|
181 | |||
181 | extensions.wrapfunction(webcommands, 'decodepath', overrides.decodepath) |
|
182 | extensions.wrapfunction(webcommands, 'decodepath', overrides.decodepath) | |
182 |
|
183 |
@@ -721,6 +721,7 b' def batch(repo, proto, cmds, others):' | |||||
721 | res.append(escapearg(result)) |
|
721 | res.append(escapearg(result)) | |
722 | return ';'.join(res) |
|
722 | return ';'.join(res) | |
723 |
|
723 | |||
|
724 | permissions['between'] = 'pull' | |||
724 | @wireprotocommand('between', 'pairs') |
|
725 | @wireprotocommand('between', 'pairs') | |
725 | def between(repo, proto, pairs): |
|
726 | def between(repo, proto, pairs): | |
726 | pairs = [decodelist(p, '-') for p in pairs.split(" ")] |
|
727 | pairs = [decodelist(p, '-') for p in pairs.split(" ")] | |
@@ -729,6 +730,7 b' def between(repo, proto, pairs):' | |||||
729 | r.append(encodelist(b) + "\n") |
|
730 | r.append(encodelist(b) + "\n") | |
730 | return "".join(r) |
|
731 | return "".join(r) | |
731 |
|
732 | |||
|
733 | permissions['branchmap'] = 'pull' | |||
732 | @wireprotocommand('branchmap') |
|
734 | @wireprotocommand('branchmap') | |
733 | def branchmap(repo, proto): |
|
735 | def branchmap(repo, proto): | |
734 | branchmap = repo.branchmap() |
|
736 | branchmap = repo.branchmap() | |
@@ -739,6 +741,7 b' def branchmap(repo, proto):' | |||||
739 | heads.append('%s %s' % (branchname, branchnodes)) |
|
741 | heads.append('%s %s' % (branchname, branchnodes)) | |
740 | return '\n'.join(heads) |
|
742 | return '\n'.join(heads) | |
741 |
|
743 | |||
|
744 | permissions['branches'] = 'pull' | |||
742 | @wireprotocommand('branches', 'nodes') |
|
745 | @wireprotocommand('branches', 'nodes') | |
743 | def branches(repo, proto, nodes): |
|
746 | def branches(repo, proto, nodes): | |
744 | nodes = decodelist(nodes) |
|
747 | nodes = decodelist(nodes) | |
@@ -747,6 +750,7 b' def branches(repo, proto, nodes):' | |||||
747 | r.append(encodelist(b) + "\n") |
|
750 | r.append(encodelist(b) + "\n") | |
748 | return "".join(r) |
|
751 | return "".join(r) | |
749 |
|
752 | |||
|
753 | permissions['clonebundles'] = 'pull' | |||
750 | @wireprotocommand('clonebundles', '') |
|
754 | @wireprotocommand('clonebundles', '') | |
751 | def clonebundles(repo, proto): |
|
755 | def clonebundles(repo, proto): | |
752 | """Server command for returning info for available bundles to seed clones. |
|
756 | """Server command for returning info for available bundles to seed clones. | |
@@ -809,6 +813,7 b' def _capabilities(repo, proto):' | |||||
809 |
|
813 | |||
810 | # If you are writing an extension and consider wrapping this function. Wrap |
|
814 | # If you are writing an extension and consider wrapping this function. Wrap | |
811 | # `_capabilities` instead. |
|
815 | # `_capabilities` instead. | |
|
816 | permissions['capabilities'] = 'pull' | |||
812 | @wireprotocommand('capabilities') |
|
817 | @wireprotocommand('capabilities') | |
813 | def capabilities(repo, proto): |
|
818 | def capabilities(repo, proto): | |
814 | return ' '.join(_capabilities(repo, proto)) |
|
819 | return ' '.join(_capabilities(repo, proto)) | |
@@ -834,6 +839,7 b' def changegroupsubset(repo, proto, bases' | |||||
834 | gen = iter(lambda: cg.read(32768), '') |
|
839 | gen = iter(lambda: cg.read(32768), '') | |
835 | return streamres(gen=gen) |
|
840 | return streamres(gen=gen) | |
836 |
|
841 | |||
|
842 | permissions['debugwireargs'] = 'pull' | |||
837 | @wireprotocommand('debugwireargs', 'one two *') |
|
843 | @wireprotocommand('debugwireargs', 'one two *') | |
838 | def debugwireargs(repo, proto, one, two, others): |
|
844 | def debugwireargs(repo, proto, one, two, others): | |
839 | # only accept optional args from the known set |
|
845 | # only accept optional args from the known set | |
@@ -907,11 +913,13 b' def getbundle(repo, proto, others):' | |||||
907 |
|
913 | |||
908 | return streamres(gen=chunks, prefer_uncompressed=not prefercompressed) |
|
914 | return streamres(gen=chunks, prefer_uncompressed=not prefercompressed) | |
909 |
|
915 | |||
|
916 | permissions['heads'] = 'pull' | |||
910 | @wireprotocommand('heads') |
|
917 | @wireprotocommand('heads') | |
911 | def heads(repo, proto): |
|
918 | def heads(repo, proto): | |
912 | h = repo.heads() |
|
919 | h = repo.heads() | |
913 | return encodelist(h) + "\n" |
|
920 | return encodelist(h) + "\n" | |
914 |
|
921 | |||
|
922 | permissions['hello'] = 'pull' | |||
915 | @wireprotocommand('hello') |
|
923 | @wireprotocommand('hello') | |
916 | def hello(repo, proto): |
|
924 | def hello(repo, proto): | |
917 | '''the hello command returns a set of lines describing various |
|
925 | '''the hello command returns a set of lines describing various | |
@@ -929,6 +937,7 b' def listkeys(repo, proto, namespace):' | |||||
929 | d = repo.listkeys(encoding.tolocal(namespace)).items() |
|
937 | d = repo.listkeys(encoding.tolocal(namespace)).items() | |
930 | return pushkeymod.encodekeys(d) |
|
938 | return pushkeymod.encodekeys(d) | |
931 |
|
939 | |||
|
940 | permissions['lookup'] = 'pull' | |||
932 | @wireprotocommand('lookup', 'key') |
|
941 | @wireprotocommand('lookup', 'key') | |
933 | def lookup(repo, proto, key): |
|
942 | def lookup(repo, proto, key): | |
934 | try: |
|
943 | try: | |
@@ -941,6 +950,7 b' def lookup(repo, proto, key):' | |||||
941 | success = 0 |
|
950 | success = 0 | |
942 | return "%d %s\n" % (success, r) |
|
951 | return "%d %s\n" % (success, r) | |
943 |
|
952 | |||
|
953 | permissions['known'] = 'pull' | |||
944 | @wireprotocommand('known', 'nodes *') |
|
954 | @wireprotocommand('known', 'nodes *') | |
945 | def known(repo, proto, nodes, others): |
|
955 | def known(repo, proto, nodes, others): | |
946 | return ''.join(b and "1" or "0" for b in repo.known(decodelist(nodes))) |
|
956 | return ''.join(b and "1" or "0" for b in repo.known(decodelist(nodes))) |
@@ -259,60 +259,52 b' test http authentication' | |||||
259 | $ hg rollback -q |
|
259 | $ hg rollback -q | |
260 |
|
260 | |||
261 | $ sed 's/.*] "/"/' < ../access.log |
|
261 | $ sed 's/.*] "/"/' < ../access.log | |
262 |
"GET /?cmd=capabilities HTTP/1.1" |
|
262 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
263 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
263 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
264 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
264 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
265 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
265 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
266 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
266 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
267 |
"GET /?cmd=listkeys HTTP/1.1" |
|
267 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
|
268 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |||
|
269 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |||
268 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
270 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
269 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
271 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
270 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
271 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
272 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
273 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
|||
274 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
275 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
276 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
272 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
277 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
273 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
|
274 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |||
278 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
275 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
279 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
276 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
280 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
281 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
277 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
282 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
278 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
|
279 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |||
283 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
280 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
284 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
281 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
285 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
286 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
282 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
287 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
283 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
|
284 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |||
288 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
285 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
289 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
286 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
290 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
291 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
287 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
292 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
288 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
|
289 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |||
293 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
290 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
294 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
291 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
295 | "GET /?cmd=stream_out HTTP/1.1" 401 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
296 | "GET /?cmd=stream_out HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
292 | "GET /?cmd=stream_out HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
297 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
293 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
298 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D5fed3813f7f5e1824344fdc9cf8f63bb662c292d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
294 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D5fed3813f7f5e1824344fdc9cf8f63bb662c292d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
299 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
295 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
|
296 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |||
300 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
297 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
301 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
302 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
298 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
303 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
299 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
304 | "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
300 | "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
305 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
301 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
306 |
"GET /?cmd=capabilities HTTP/1.1" |
|
302 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
307 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
303 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
308 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
304 | "GET /?cmd=capabilities HTTP/1.1" 403 - | |
309 |
"GET /?cmd=capabilities HTTP/1.1" |
|
305 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
310 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
311 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
312 | "GET /?cmd=listkeys HTTP/1.1" 403 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
313 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
306 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
314 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D7f4e523d01f2cc3765ac8934da3d14db775ff872 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
307 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D7f4e523d01f2cc3765ac8934da3d14db775ff872 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
315 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
316 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
308 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
317 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
309 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
318 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
310 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
@@ -63,9 +63,11 b' web.deny_read=* prevents access to wire ' | |||||
63 | $ cat hg.pid > $DAEMON_PIDS |
|
63 | $ cat hg.pid > $DAEMON_PIDS | |
64 |
|
64 | |||
65 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities' |
|
65 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities' | |
66 | 200 Script output follows |
|
66 | 401 read not authorized | |
67 |
|
67 | |||
68 | lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=$BUNDLE2_COMPRESSIONS$ (no-eol) |
|
68 | 0 | |
|
69 | read not authorized | |||
|
70 | [1] | |||
69 |
|
71 | |||
70 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=stream_out' |
|
72 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=stream_out' | |
71 | 401 read not authorized |
|
73 | 401 read not authorized | |
@@ -117,8 +119,6 b" TODO custom commands don't check permiss" | |||||
117 |
|
119 | |||
118 | $ hg --cwd ../test2 pull http://localhost:$HGPORT/ |
|
120 | $ hg --cwd ../test2 pull http://localhost:$HGPORT/ | |
119 | pulling from http://localhost:$HGPORT/ |
|
121 | pulling from http://localhost:$HGPORT/ | |
120 | searching for changes |
|
|||
121 | no changes found |
|
|||
122 | abort: authorization failed |
|
122 | abort: authorization failed | |
123 | [255] |
|
123 | [255] | |
124 |
|
124 | |||
@@ -130,9 +130,11 b' web.deny_read=* with REMOTE_USER set sti' | |||||
130 | $ cat hg.pid > $DAEMON_PIDS |
|
130 | $ cat hg.pid > $DAEMON_PIDS | |
131 |
|
131 | |||
132 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities' |
|
132 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities' | |
133 | 200 Script output follows |
|
133 | 401 read not authorized | |
134 |
|
134 | |||
135 | lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=$BUNDLE2_COMPRESSIONS$ (no-eol) |
|
135 | 0 | |
|
136 | read not authorized | |||
|
137 | [1] | |||
136 |
|
138 | |||
137 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=stream_out' |
|
139 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=stream_out' | |
138 | 401 read not authorized |
|
140 | 401 read not authorized | |
@@ -177,8 +179,6 b" TODO custom commands don't check permiss" | |||||
177 |
|
179 | |||
178 | $ hg --cwd ../test2 pull http://localhost:$HGPORT/ |
|
180 | $ hg --cwd ../test2 pull http://localhost:$HGPORT/ | |
179 | pulling from http://localhost:$HGPORT/ |
|
181 | pulling from http://localhost:$HGPORT/ | |
180 | searching for changes |
|
|||
181 | no changes found |
|
|||
182 | abort: authorization failed |
|
182 | abort: authorization failed | |
183 | [255] |
|
183 | [255] | |
184 |
|
184 | |||
@@ -237,8 +237,6 b" TODO custom commands don't check permiss" | |||||
237 |
|
237 | |||
238 | $ hg --cwd ../test2 pull http://localhost:$HGPORT/ |
|
238 | $ hg --cwd ../test2 pull http://localhost:$HGPORT/ | |
239 | pulling from http://localhost:$HGPORT/ |
|
239 | pulling from http://localhost:$HGPORT/ | |
240 | searching for changes |
|
|||
241 | no changes found |
|
|||
242 | abort: authorization failed |
|
240 | abort: authorization failed | |
243 | [255] |
|
241 | [255] | |
244 |
|
242 | |||
@@ -292,8 +290,6 b" TODO custom commands don't check permiss" | |||||
292 |
|
290 | |||
293 | $ hg --cwd ../test2 pull http://localhost:$HGPORT/ |
|
291 | $ hg --cwd ../test2 pull http://localhost:$HGPORT/ | |
294 | pulling from http://localhost:$HGPORT/ |
|
292 | pulling from http://localhost:$HGPORT/ | |
295 | searching for changes |
|
|||
296 | no changes found |
|
|||
297 | abort: authorization failed |
|
293 | abort: authorization failed | |
298 | [255] |
|
294 | [255] | |
299 |
|
295 | |||
@@ -501,8 +497,6 b" TODO custom commands don't check permiss" | |||||
501 |
|
497 | |||
502 | $ hg --cwd ../test2 pull http://localhost:$HGPORT/ |
|
498 | $ hg --cwd ../test2 pull http://localhost:$HGPORT/ | |
503 | pulling from http://localhost:$HGPORT/ |
|
499 | pulling from http://localhost:$HGPORT/ | |
504 | searching for changes |
|
|||
505 | no changes found |
|
|||
506 | abort: authorization failed |
|
500 | abort: authorization failed | |
507 | [255] |
|
501 | [255] | |
508 |
|
502 | |||
@@ -556,8 +550,6 b" TODO custom commands don't check permiss" | |||||
556 |
|
550 | |||
557 | $ hg --cwd ../test2 pull http://localhost:$HGPORT/ |
|
551 | $ hg --cwd ../test2 pull http://localhost:$HGPORT/ | |
558 | pulling from http://localhost:$HGPORT/ |
|
552 | pulling from http://localhost:$HGPORT/ | |
559 | searching for changes |
|
|||
560 | no changes found |
|
|||
561 | abort: authorization failed |
|
553 | abort: authorization failed | |
562 | [255] |
|
554 | [255] | |
563 |
|
555 | |||
@@ -665,8 +657,6 b" TODO custom commands don't check permiss" | |||||
665 |
|
657 | |||
666 | $ hg --cwd ../test2 pull http://localhost:$HGPORT/ |
|
658 | $ hg --cwd ../test2 pull http://localhost:$HGPORT/ | |
667 | pulling from http://localhost:$HGPORT/ |
|
659 | pulling from http://localhost:$HGPORT/ | |
668 | searching for changes |
|
|||
669 | no changes found |
|
|||
670 | abort: authorization failed |
|
660 | abort: authorization failed | |
671 | [255] |
|
661 | [255] | |
672 |
|
662 | |||
@@ -683,9 +673,11 b' web.allow-pull=false denies read access ' | |||||
683 | $ cat hg.pid > $DAEMON_PIDS |
|
673 | $ cat hg.pid > $DAEMON_PIDS | |
684 |
|
674 | |||
685 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities' |
|
675 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities' | |
686 | 200 Script output follows |
|
676 | 401 pull not authorized | |
687 |
|
677 | |||
688 | lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=$BUNDLE2_COMPRESSIONS$ (no-eol) |
|
678 | 0 | |
|
679 | pull not authorized | |||
|
680 | [1] | |||
689 |
|
681 | |||
690 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=listkeys' --requestheader 'x-hgarg-1=namespace=phases' |
|
682 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=listkeys' --requestheader 'x-hgarg-1=namespace=phases' | |
691 | 401 pull not authorized |
|
683 | 401 pull not authorized | |
@@ -730,8 +722,6 b" TODO custom commands don't check permiss" | |||||
730 |
|
722 | |||
731 | $ hg --cwd ../test2 pull http://localhost:$HGPORT/ |
|
723 | $ hg --cwd ../test2 pull http://localhost:$HGPORT/ | |
732 | pulling from http://localhost:$HGPORT/ |
|
724 | pulling from http://localhost:$HGPORT/ | |
733 | searching for changes |
|
|||
734 | no changes found |
|
|||
735 | abort: authorization failed |
|
725 | abort: authorization failed | |
736 | [255] |
|
726 | [255] | |
737 |
|
727 | |||
@@ -1487,13 +1477,11 b' Reset server to remove REQUEST_METHOD ha' | |||||
1487 |
|
1477 | |||
1488 | $ hg --cwd ../test2 push -B bm http://localhost:$HGPORT/ |
|
1478 | $ hg --cwd ../test2 push -B bm http://localhost:$HGPORT/ | |
1489 | pushing to http://localhost:$HGPORT/ |
|
1479 | pushing to http://localhost:$HGPORT/ | |
1490 | searching for changes |
|
|||
1491 | abort: authorization failed |
|
1480 | abort: authorization failed | |
1492 | [255] |
|
1481 | [255] | |
1493 |
|
1482 | |||
1494 | $ hg --cwd ../test2 push http://localhost:$HGPORT/ |
|
1483 | $ hg --cwd ../test2 push http://localhost:$HGPORT/ | |
1495 | pushing to http://localhost:$HGPORT/ |
|
1484 | pushing to http://localhost:$HGPORT/ | |
1496 | searching for changes |
|
|||
1497 | abort: authorization failed |
|
1485 | abort: authorization failed | |
1498 | [255] |
|
1486 | [255] | |
1499 |
|
1487 |
@@ -254,6 +254,7 b' test http authentication' | |||||
254 | http auth: user user, password **** |
|
254 | http auth: user user, password **** | |
255 | sending capabilities command |
|
255 | sending capabilities command | |
256 | devel-peer-request: GET http://localhost:$HGPORT2/?cmd=capabilities |
|
256 | devel-peer-request: GET http://localhost:$HGPORT2/?cmd=capabilities | |
|
257 | http auth: user user, password **** | |||
257 | devel-peer-request: finished in *.???? seconds (200) (glob) |
|
258 | devel-peer-request: finished in *.???? seconds (200) (glob) | |
258 | query 1; heads |
|
259 | query 1; heads | |
259 | sending batch command |
|
260 | sending batch command | |
@@ -270,7 +271,6 b' test http authentication' | |||||
270 | devel-peer-request: Vary X-HgArg-1,X-HgProto-1 |
|
271 | devel-peer-request: Vary X-HgArg-1,X-HgProto-1 | |
271 | devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
272 | devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
272 | devel-peer-request: 16 bytes of commands arguments in headers |
|
273 | devel-peer-request: 16 bytes of commands arguments in headers | |
273 | http auth: user user, password **** |
|
|||
274 | devel-peer-request: finished in *.???? seconds (200) (glob) |
|
274 | devel-peer-request: finished in *.???? seconds (200) (glob) | |
275 | received listkey for "phases": 58 bytes |
|
275 | received listkey for "phases": 58 bytes | |
276 | checking for updated bookmarks |
|
276 | checking for updated bookmarks | |
@@ -340,57 +340,49 b' test http authentication' | |||||
340 | $ hg rollback -q |
|
340 | $ hg rollback -q | |
341 |
|
341 | |||
342 | $ sed 's/.*] "/"/' < ../access.log |
|
342 | $ sed 's/.*] "/"/' < ../access.log | |
343 |
"GET /?cmd=capabilities HTTP/1.1" |
|
343 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
344 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
344 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
345 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
345 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
346 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
346 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
347 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
347 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
348 |
"GET /?cmd=listkeys HTTP/1.1" |
|
348 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
|
349 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |||
|
350 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |||
349 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
351 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
350 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
352 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
351 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
352 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
353 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
354 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
|||
355 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
356 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
357 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
353 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
358 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
354 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
|
355 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |||
359 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
356 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
360 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
357 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
361 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
362 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
358 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
363 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
359 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
|
360 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |||
364 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
361 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
365 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
362 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
366 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
367 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
363 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
368 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
364 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
|
365 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |||
369 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
366 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
370 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
367 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
371 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
372 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
368 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
373 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
369 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
|
370 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |||
374 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
371 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
375 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
372 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
376 | "GET /?cmd=stream_out HTTP/1.1" 401 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
377 | "GET /?cmd=stream_out HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
373 | "GET /?cmd=stream_out HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
378 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D5fed3813f7f5e1824344fdc9cf8f63bb662c292d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
374 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D5fed3813f7f5e1824344fdc9cf8f63bb662c292d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
379 | "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=0&common=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
375 | "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=0&common=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
|
376 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |||
380 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
377 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
381 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
378 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
382 | "GET /?cmd=getbundle HTTP/1.1" 401 - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=1&common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
383 | "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=1&common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
379 | "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=1&common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
384 |
"GET /?cmd=capabilities HTTP/1.1" |
|
380 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
385 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
381 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
386 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
382 | "GET /?cmd=capabilities HTTP/1.1" 403 - | |
387 |
"GET /?cmd=capabilities HTTP/1.1" |
|
383 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
388 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
389 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
390 | "GET /?cmd=listkeys HTTP/1.1" 403 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
391 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
384 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
392 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D7f4e523d01f2cc3765ac8934da3d14db775ff872 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
385 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D7f4e523d01f2cc3765ac8934da3d14db775ff872 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
393 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
394 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
386 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
395 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
387 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
396 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
388 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
@@ -398,9 +390,9 b' test http authentication' | |||||
398 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
390 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
399 | "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=666f726365* (glob) |
|
391 | "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=666f726365* (glob) | |
400 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
392 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
|
393 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |||
401 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
394 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
402 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D7f4e523d01f2cc3765ac8934da3d14db775ff872 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
395 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D7f4e523d01f2cc3765ac8934da3d14db775ff872 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
403 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
|||
404 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
396 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
405 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
397 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ | |
406 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
|
398 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ |
@@ -434,11 +434,11 b' a large file from the server rather than' | |||||
434 | > EOF |
|
434 | > EOF | |
435 | $ hg clone --config ui.interactive=true --config extensions.getpass=get_pass.py \ |
|
435 | $ hg clone --config ui.interactive=true --config extensions.getpass=get_pass.py \ | |
436 | > http://user@localhost:$HGPORT credentialclone |
|
436 | > http://user@localhost:$HGPORT credentialclone | |
437 | requesting all changes |
|
|||
438 | http authorization required for http://localhost:$HGPORT/ |
|
437 | http authorization required for http://localhost:$HGPORT/ | |
439 | realm: mercurial |
|
438 | realm: mercurial | |
440 | user: user |
|
439 | user: user | |
441 |
password: |
|
440 | password: requesting all changes | |
|
441 | adding changesets | |||
442 | adding manifests |
|
442 | adding manifests | |
443 | adding file changes |
|
443 | adding file changes | |
444 | added 1 changesets with 1 changes to 1 files |
|
444 | added 1 changesets with 1 changes to 1 files |
@@ -50,7 +50,6 b' expect error, cloning not allowed' | |||||
50 | $ hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log |
|
50 | $ hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log | |
51 | $ cat hg.pid >> $DAEMON_PIDS |
|
51 | $ cat hg.pid >> $DAEMON_PIDS | |
52 | $ hg clone http://localhost:$HGPORT/ test4 # bundle2+ |
|
52 | $ hg clone http://localhost:$HGPORT/ test4 # bundle2+ | |
53 | requesting all changes |
|
|||
54 | abort: authorization failed |
|
53 | abort: authorization failed | |
55 | [255] |
|
54 | [255] | |
56 | $ hg clone http://localhost:$HGPORT/ test4 --config devel.legacy.exchange=bundle1 |
|
55 | $ hg clone http://localhost:$HGPORT/ test4 --config devel.legacy.exchange=bundle1 | |
@@ -74,7 +73,6 b' expect error, pulling not allowed' | |||||
74 |
|
73 | |||
75 | $ req |
|
74 | $ req | |
76 | pulling from http://localhost:$HGPORT/ |
|
75 | pulling from http://localhost:$HGPORT/ | |
77 | searching for changes |
|
|||
78 | abort: authorization failed |
|
76 | abort: authorization failed | |
79 | % serve errors |
|
77 | % serve errors | |
80 |
|
78 |
General Comments 0
You need to be logged in to leave comments.
Login now