From a21cb937260594d542f09efb6b4be6f72425c6d0 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Tue, 25 Apr 2006 09:38:43 -0800 Subject: [PATCH] remove a few debug statements.. comment a bit better... [git-p4: depot-paths = "//depot/": change = 769] --- FSStorage.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/FSStorage.py b/FSStorage.py index 3083576..e322959 100644 --- a/FSStorage.py +++ b/FSStorage.py @@ -35,7 +35,7 @@ class FSObject(object): self.pstat = nstat self.doUpdate() except OSError, x: - log.msg('OSError: %s' % x) + log.msg('os.stat, OSError: %s' % x) if x.errno in (errno.ENOENT, errno.ENOTDIR, errno.EPERM, ): # We can't access it anymore, delete it self.cd.delItem(self.id) @@ -120,14 +120,12 @@ class FSDirectory(FSObject, StorageFolder): def doUpdate(self): # We need to rescan this dir, and see if our children has # changed any. - log.msg('doUpdate: %s, path: %s' % (self.title, self.FSpath)) children = sets.Set(os.listdir(self.FSpath)) for i in self.pathObjmap: if i not in children: # delete self.cd.delItem(self.pathObjmap[i]) - log.msg('doUpdate: %s, children: %s' % (self.title, children)) for i in children: fname = os.path.join(self.FSpath, i) if i in self.pathObjmap: @@ -146,11 +144,9 @@ class FSDirectory(FSObject, StorageFolder): if nf is not None: self.pathObjmap[i] = nf - log.msg('i: %s, nf: %s' % (i, nf)) # sort our children - log.msg('doUpdate: %s, sorting: %s' % (self.title, list.__str__(self))) self.sort(lambda x, y: cmp(x.title, y.title)) - log.msg('sorted') + # Pass up to handle UpdateID StorageFolder.doUpdate(self)