Use ._vcs_is_versioned() in VCS._children()
authorW. Trevor King <wking@drexel.edu>
Wed, 30 Dec 2009 02:17:39 +0000 (21:17 -0500)
committerW. Trevor King <wking@drexel.edu>
Wed, 30 Dec 2009 02:17:39 +0000 (21:17 -0500)
Otherwise Arch will return '.arch-ids' in its list, etc.

libbe/storage/vcs/base.py

index 6ece16d3009facca3cab2c3f864c702fb92f734a..b47ed2fa2c34c3797b9cdf68af765184106c492f 100644 (file)
@@ -760,6 +760,9 @@ os.listdir(self.get_path("bugs")):
                                  listdir(os.path.join(path, c))])
             elif c in ['id-cache', 'version']:
                 children[i] = None
+            elif self.interspersed_vcs_files \
+                    and self._vcs_is_versioned(c) == False:
+                children[i] = None
         for i,c in enumerate(children):
             if c == None: continue
             cpath = os.path.join(path, c)