Mercurial > hg
changeset 17375:499e284f3f32
Merge from crew-stable
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Wed, 15 Aug 2012 16:33:26 -0700 |
parents | ff3c89cf1477 (current diff) 0cec762790ed (diff) |
children | 3738d6254bd3 |
files | |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/store.py Wed Aug 15 23:03:40 2012 +0200 +++ b/mercurial/store.py Wed Aug 15 16:33:26 2012 -0700 @@ -7,7 +7,7 @@ from i18n import _ import osutil, scmutil, util -import os, stat +import os, stat, errno _sha = util.sha1 @@ -398,12 +398,14 @@ def datafiles(self): rewrite = False existing = [] - for f in self.fncache: + for f in sorted(self.fncache): ef = self.encode(f) try: yield f, ef, self.getsize(ef) existing.append(f) - except OSError: + except OSError, err: + if err.errno != errno.ENOENT: + raise # nonexistent entry rewrite = True if rewrite: