comparison mercurial/lock.py @ 515:03f27b1381f9

Whitespace cleanups -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Whitespace cleanups manifest hash: ac954bc3a4f034c12638a259ecd65841f5b63c5c -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCwuubywK+sNU5EO8RAluIAJ98XQpNdZUpSmYKgDmrMRlbL76ZzQCfes0t rknNUN/PhtyA4bzL646dOz4= =UyCE -----END PGP SIGNATURE-----
author mpm@selenic.com
date Wed, 29 Jun 2005 10:42:35 -0800
parents c6a2e41c8c60
children 5ca319a641e1 574869103985
comparison
equal deleted inserted replaced
514:874e577e332e 515:03f27b1381f9
29 except LockHeld, inst: 29 except LockHeld, inst:
30 if self.wait: 30 if self.wait:
31 time.sleep(1) 31 time.sleep(1)
32 continue 32 continue
33 raise inst 33 raise inst
34 34
35 def trylock(self): 35 def trylock(self):
36 pid = os.getpid() 36 pid = os.getpid()
37 try: 37 try:
38 util.makelock(str(pid), self.f) 38 util.makelock(str(pid), self.f)
39 self.held = 1 39 self.held = 1