##// END OF EJS Templates
store: only one kind of OSError means "nonexistent entry"
Bryan O'Sullivan -
r17374:0cec7627 stable
parent child Browse files
Show More
@@ -7,7 +7,7 b''
7
7
8 from i18n import _
8 from i18n import _
9 import osutil, scmutil, util
9 import osutil, scmutil, util
10 import os, stat
10 import os, stat, errno
11
11
12 _sha = util.sha1
12 _sha = util.sha1
13
13
@@ -403,7 +403,9 b' class fncachestore(basicstore):'
403 try:
403 try:
404 yield f, ef, self.getsize(ef)
404 yield f, ef, self.getsize(ef)
405 existing.append(f)
405 existing.append(f)
406 except OSError:
406 except OSError, err:
407 if err.errno != errno.ENOENT:
408 raise
407 # nonexistent entry
409 # nonexistent entry
408 rewrite = True
410 rewrite = True
409 if rewrite:
411 if rewrite:
General Comments 0
You need to be logged in to leave comments. Login now