~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_readdir_pyx.pyx

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-10-15 21:28:14 UTC
  • mfrom: (4634.75.2 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20091015212814-i4j0hjrcob5cdw6j
(mbp) Fix bug #446033 by skipping non-existing entries in readdir.

Show diffs side-by-side

added added

removed removed

Lines of Context:
343
343
                            raise OSError(errno, "lstat: " + strerror(errno),
344
344
                                path + "/" + entry.d_name)
345
345
                        else:
346
 
                            kind = _missing
347
 
                            statvalue = None
 
346
                            # the file seems to have disappeared after being
 
347
                            # seen by readdir - perhaps a transient temporary
 
348
                            # file.  there's no point returning it.
 
349
                            continue
348
350
                    # We append a 5-tuple that can be modified in-place by the C
349
351
                    # api:
350
352
                    # inode to sort on (to replace with top_path)