##// END OF EJS Templates
Fix misleading abort message when permissions are bad.
Eric Hopper -
r1353:a0c68981 default
parent child Browse files
Show More
@@ -9,7 +9,7 b' import struct, os, util'
9 import filelog, manifest, changelog, dirstate, repo
9 import filelog, manifest, changelog, dirstate, repo
10 from node import *
10 from node import *
11 from demandload import *
11 from demandload import *
12 demandload(globals(), "re lock transaction tempfile stat mdiff")
12 demandload(globals(), "re lock transaction tempfile stat mdiff errno")
13
13
14 class localrepository:
14 class localrepository:
15 def __init__(self, ui, path=None, create=0):
15 def __init__(self, ui, path=None, create=0):
@@ -1221,7 +1221,9 b' class localrepository:'
1221 t = self.file(f).read(get[f])
1221 t = self.file(f).read(get[f])
1222 try:
1222 try:
1223 self.wwrite(f, t)
1223 self.wwrite(f, t)
1224 except IOError:
1224 except IOError, e:
1225 if e.errno != errno.ENOENT:
1226 raise
1225 os.makedirs(os.path.dirname(self.wjoin(f)))
1227 os.makedirs(os.path.dirname(self.wjoin(f)))
1226 self.wwrite(f, t)
1228 self.wwrite(f, t)
1227 util.set_exec(self.wjoin(f), mf2[f])
1229 util.set_exec(self.wjoin(f), mf2[f])
General Comments 0
You need to be logged in to leave comments. Login now