Show More
@@ -9,7 +9,7 b' import struct, os, util' | |||
|
9 | 9 | import filelog, manifest, changelog, dirstate, repo |
|
10 | 10 | from node import * |
|
11 | 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 | 14 | class localrepository: |
|
15 | 15 | def __init__(self, ui, path=None, create=0): |
@@ -1221,7 +1221,9 b' class localrepository:' | |||
|
1221 | 1221 | t = self.file(f).read(get[f]) |
|
1222 | 1222 | try: |
|
1223 | 1223 | self.wwrite(f, t) |
|
1224 | except IOError: | |
|
1224 | except IOError, e: | |
|
1225 | if e.errno != errno.ENOENT: | |
|
1226 | raise | |
|
1225 | 1227 | os.makedirs(os.path.dirname(self.wjoin(f))) |
|
1226 | 1228 | self.wwrite(f, t) |
|
1227 | 1229 | util.set_exec(self.wjoin(f), mf2[f]) |
General Comments 0
You need to be logged in to leave comments.
Login now