At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 3768
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Canonical.com Patch Queue Manager <[EMAIL PROTECTED]>
branch nick: +trunk
timestamp: Tue 2008-10-07 09:33:16 +0100
message:
  (mbp) Don't treat ENOENT from readdir as indicating end-of-directory
modified:
  bzrlib/_readdir_pyx.pyx        readdir.pyx-20060609152855-rm6v321vuaqyh9tu-1
    ------------------------------------------------------------
    revno: 3766.2.1
    revision-id: [EMAIL PROTECTED]
    parent: [EMAIL PROTECTED]
    committer: Martin Pool <[EMAIL PROTECTED]>
    branch nick: readdir-enoent
    timestamp: Tue 2008-10-07 16:14:00 +1100
    message:
      Don't treat ENOENT from readdir as indicating end-of-directory
    modified:
      bzrlib/_readdir_pyx.pyx        
readdir.pyx-20060609152855-rm6v321vuaqyh9tu-1
=== modified file 'bzrlib/_readdir_pyx.pyx'
--- a/bzrlib/_readdir_pyx.pyx   2008-10-07 06:02:24 +0000
+++ b/bzrlib/_readdir_pyx.pyx   2008-10-07 08:33:16 +0000
@@ -304,15 +304,10 @@
                 else:
                     break
             if entry == NULL:
-                if errno == ENOTDIR or errno == ENOENT or errno == 0:
+                if errno == ENOTDIR or errno == 0:
                     # We see ENOTDIR at the end of a normal directory.
                     # As ENOTDIR for read_dir(file) is triggered on opendir,
                     # we consider ENOTDIR to be 'no error'.
-                    #
-                    # XXX: ENOENT is listed as 'invalid position in the dir 
stream' for
-                    # readdir.  It's not clear what we should do about that
-                    # case; at the moment we treat it as the end of the
-                    # directory.
                     continue
                 else:
                     raise OSError(errno, strerror(errno))


-- 
bazaar-commits mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/bazaar-commits

Reply via email to