##// END OF EJS Templates
util: checknlink should remove file it creates if an exception occurs...
Tony Tung -
r29832:bac1829e default
parent child Browse files
Show More
@@ -1341,6 +1341,10 b' def checknlink(testfile):'
1341 try:
1341 try:
1342 posixfile(f1, 'w').close()
1342 posixfile(f1, 'w').close()
1343 except IOError:
1343 except IOError:
1344 try:
1345 os.unlink(f1)
1346 except OSError:
1347 pass
1344 return False
1348 return False
1345
1349
1346 f2 = testfile + ".hgtmp2"
1350 f2 = testfile + ".hgtmp2"
General Comments 0
You need to be logged in to leave comments. Login now