--- coderev-0.1/codediff.py Sat Aug 23 17:05:39 2008 +++ coderev-0.2/codediff.py Sat Aug 23 17:07:26 2008
@@ -3,14 +3,14 @@ # Homepage: http://code.google.com/p/coderev # License: GPLv2, see "COPYING" # -# $Id: codediff.py 3 2008-08-19 04:06:17Z mattwyl $ +# $Id: codediff.py 9 2008-08-21 14:08:53Z mattwyl $ '''Diff two files/directories and produce HTML pages.''' import sys, os, stat, errno, time, re, difflib, filecmp _myname = os.path.basename(sys.argv[0]) -_revision = '$Revision: 3 $'.split()[1] +_revision = '$Revision: 9 $'.split()[1] ########## globals & templates begin ##########
@@ -148,20 +148,20 @@ Generated by %(myname)s r%(revision)s at %(time)s </i>""" -_global_dir_ignore_list = [ - '\bCVS$', - '\bSCCS$', - '\b\\.svn$', -] - -_global_file_ignore_list = [ - '.*\\.o$', - '.*\\.swp$', - '.*\\.bak$', - '.*\\.old$', - '.*\\~$', - '\\.cvsignore$', -] +_global_dir_ignore_list = ( + r'^CVS$', + r'^SCCS$', + r'^\.svn$', +) + +_global_file_ignore_list = ( + r'.*\.o$', + r'.*\.swp$', + r'.*\.bak$', + r'.*\.old$', + r'.*~$', + r'^\.cvsignore$', +) ########## globals & templates end ##########
@@ -285,7 +285,7 @@ plen = len(prefix) for root, dirs, files in os.walk(dir): - for d in dirs: + for d in [k for k in dirs]: if inIgnoreList(d, _global_dir_ignore_list): dirs.remove(d) for f in files: