Mercurial > hg > mercurial-crew-with-dirclash
annotate tests/test-bad-pull @ 422:10c43444a38e
[PATCH] Enables lock work under the other 'OS'
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[PATCH] Enables lock work under the other 'OS'
From: K Thananchayan <thananck@yahoo.com>
os.symlink is not supported under Windows. This patch
introduces util.mklockf, util.getlowner that use
regular files under Winodws but symlink under unix.
tweaked by mpm:
- changed function names
- fixed to work on UNIX
manifest hash: 6f650a78a3b203dcad2f861582500b6b4036599a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCuN5sywK+sNU5EO8RAva8AJ9L9z/JHRAJS1bix48ZzSpn9ZUyPwCffhmg
UfLSFBmd5tPDDi3mgsrdDEA=
=ZYS9
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Tue, 21 Jun 2005 19:43:40 -0800 |
parents | fbe8834923c5 |
children | c5705ab9cebd |
rev | line source |
---|---|
395 | 1 #!/bin/bash |
2 | |
3 mkdir copy | |
4 cd copy | |
5 hg init http://localhost:20059/ | |
6 hg verify | |
7 hg co | |
8 cat foo | |
9 hg manifest | |
10 | |
11 cat > dumb.py <<EOF | |
12 import BaseHTTPServer, SimpleHTTPServer, signal | |
13 | |
14 def run(server_class=BaseHTTPServer.HTTPServer, | |
15 handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler): | |
16 server_address = ('localhost', 20059) | |
17 httpd = server_class(server_address, handler_class) | |
18 httpd.serve_forever() | |
19 | |
20 signal.signal(signal.SIGTERM, lambda x: sys.exit(0)) | |
21 run() | |
22 EOF | |
23 | |
24 python dumb.py 2>/dev/null & | |
25 | |
26 mkdir copy2 | |
27 cd copy2 | |
28 hg init http://localhost:20059/foo | |
29 hg verify | |
30 hg co | |
31 cat foo | |
32 hg manifest | |
33 | |
34 kill %1 |