# HG changeset patch # User Francisco J Ballesteros # Date 1316257135 -7200 # Node ID 85bfcff9b97abc1dc6f755fae2468024c77e6213 # Parent f2c0a67fca658301215f0a7c1093ad61f458ce68 regexp fix: make codereview ignore [568].* and *.[568] files for hg change (without -a). R=nix-dev, noah.evans, nemo CC=nix-dev http://codereview.appspot.com/5044042 diff -r f2c0a67fca65 -r 85bfcff9b97a sys/lib/codereview/codereview.py --- a/sys/lib/codereview/codereview.py Fri Sep 16 19:50:58 2011 +0200 +++ b/sys/lib/codereview/codereview.py Sat Sep 17 12:58:55 2011 +0200 @@ -129,7 +129,7 @@ ####################################################################### # RE for files ignored for hg change unless -a is given. -ignored_for_change = "^((386|amd64)/bin/|386/init$|amd64init$|acme/bin/)" +ignored_for_change = "((^(386|amd64)/bin/)|(386/init$)|(amd64init$)|(^acme/bin/)|(\.[568]$)|(/[568]\.))" ####################################################################### @@ -976,7 +976,7 @@ # change list edition # def ExcludedForChange(file): - return not re.match(ignored_for_change, file) + return not re.search(ignored_for_change, file) # # filter the file name list files to contain only those files that