Code Repositories xandikos / f3d1883
ignore magic files. Jelmer Vernooń≥ a month ago
2 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
527527 tree = self.repo.object_store[ctag.encode('ascii')]
528528 for (name, mode, sha) in tree.iteritems():
529529 name = name.decode(DEFAULT_ENCODING)
530 if name == CONFIG_FILENAME:
531 continue
530532 yield (name, mode, sha)
531533
532534 @classmethod
700702 tree = self.repo.object_store[ctag.encode('ascii')]
701703 for (name, mode, sha) in tree.iteritems():
702704 name = name.decode(DEFAULT_ENCODING)
705 if name == CONFIG_FILENAME:
706 continue
703707 yield (name, mode, sha)
704708 else:
705709 index = self.repo.open_index()
706710 for (name, sha, mode) in index.iterobjects():
707711 name = name.decode(DEFAULT_ENCODING)
712 if name == CONFIG_FILENAME:
713 continue
708714 yield (name, mode, sha)
709715
710716 def subdirectories(self):
208208 for name in os.listdir(self.path):
209209 if name.endswith('.tmp'):
210210 continue
211 if name == CONFIG_FILENAME:
212 continue
211213 if name.endswith('.ics'):
212214 content_type = 'text/calendar'
213215 elif name.endswith('.vcf'):