comparison mercurial/transaction.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 688d03d6997a
children 0ceea19182a9
comparison
equal deleted inserted replaced
514:874e577e332e 515:03f27b1381f9
63 print "failed to truncate", f 63 print "failed to truncate", f
64 64
65 self.entries = [] 65 self.entries = []
66 66
67 print "rollback completed" 67 print "rollback completed"
68 68
69 def rollback(opener, file): 69 def rollback(opener, file):
70 for l in open(file).readlines(): 70 for l in open(file).readlines():
71 f, o = l.split('\0') 71 f, o = l.split('\0')
72 opener(f, "a").truncate(int(o)) 72 opener(f, "a").truncate(int(o))
73 os.unlink(file) 73 os.unlink(file)