# HG changeset patch # User Ludovic Chabant # Date 1355977849 28800 # Node ID 793234411100a02573dd42a0d4599151634b8151 # Parent 256e563c49b7bac1bfeccad86eba07ede946df66 Fixed Mercurial files incorrectly included as pages. diff -r 256e563c49b7 -r 793234411100 wikked/fs.py --- a/wikked/fs.py Wed Dec 19 20:29:54 2012 -0800 +++ b/wikked/fs.py Wed Dec 19 20:30:49 2012 -0800 @@ -29,8 +29,12 @@ dirnames[:] = [d for d in dirnames if os.path.join(dirpath, d) not in self.excluded] for filename in filenames: path = os.path.join(dirpath, filename) + if path in self.excluded: + continue rel_path = os.path.relpath(path, self.root) rel_path_split = os.path.splitext(rel_path) + if rel_path_split[1] == '': + continue url = re.sub(r'[^A-Za-z0-9_\.\-\(\)/]+', '-', rel_path_split[0].lower()) yield { 'url': url, diff -r 256e563c49b7 -r 793234411100 wikked/scm.py --- a/wikked/scm.py Wed Dec 19 20:29:54 2012 -0800 +++ b/wikked/scm.py Wed Dec 19 20:30:49 2012 -0800 @@ -70,7 +70,8 @@ self._run('commit', ignore_path, '-m', 'Created .hgignore.') def getSpecialDirs(self): - return [ os.path.join(self.root, '.hg') ] + specials = [ '.hg', '.hgignore', '.hgtags' ] + return [ os.path.join(self.root, d) for d in specials ] def getHistory(self, path): st_out = self._run('status', path)