##// END OF EJS Templates
util: move md5 back next to sha1 and allow to call it without an argument...
util: move md5 back next to sha1 and allow to call it without an argument This effectively backs out changeset 908c5906091b. The API change is done so that both util.sha1 and util.md5 can be called the same way. The function is moved in order to use it for md5 checksumming for an upcoming bundle2 feature.

File last commit:

r22046:7a9cbb31 default
r22958:bb7a911b default
Show More
test-bad-pull.t
33 lines | 818 B | text/troff | Tads3Lexer
Matt Mackall
tests: replace exit 80 with #require
r22046 #require serve
Mads Kiilerich
tests: use 'hghave serve' to guard tests that requires serve daemon management
r15446
Adrian Buehlmann
test-bad-pull: partially adjust for Windows...
r17019 #if windows
$ hg clone http://localhost:$HGPORT/ copy
abort: * (glob)
[255]
#else
Martin Geisler
tests: unify test-bad-pull
r11859 $ hg clone http://localhost:$HGPORT/ copy
abort: error: Connection refused
Matt Mackall
tests: add exit codes to unified tests
r12316 [255]
Adrian Buehlmann
test-bad-pull: partially adjust for Windows...
r17019 #endif
Martin Geisler
tests: unify test-bad-pull
r11859
Mads Kiilerich
tests: remove hacks for testing if file or directory exists
r15515 $ test -d copy
[1]
Martin Geisler
tests: unify test-bad-pull
r11859
$ cat > dumb.py <<EOF
> import BaseHTTPServer, SimpleHTTPServer, os, signal
> def run(server_class=BaseHTTPServer.HTTPServer,
> handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler):
> server_address = ('localhost', int(os.environ['HGPORT']))
> httpd = server_class(server_address, handler_class)
Matt Mackall
tests: fix shutdown race in test-bad-pull
r16334 > open("listening", "w")
Matt Mackall
tests: eliminate daemon race in test-bad-pull
r16296 > httpd.handle_request()
Martin Geisler
tests: unify test-bad-pull
r11859 > run()
> EOF
Matt Mackall
tests: fix shutdown race in test-bad-pull
r16334 $ python dumb.py 2> log &
$ P=$!
Mads Kiilerich
tests: use 'do sleep 0' instead of 'do true', also on first line of command...
r16496 $ while [ ! -f listening ]; do sleep 0; done
Matt Mackall
tests: fix shutdown race in test-bad-pull
r16334 $ hg clone http://localhost:$HGPORT/foo copy2
abort: HTTP Error 404: * (glob)
[255]
$ wait $P