# HG changeset patch # User Christian Ebert # Date 1166346976 -3600 # Node ID 9fdf507badfc7d77a4a7c4c9be34520a15b11130 # Parent bd97d6fde3248d3ca1efbe2a46c1b022d5bef85e Double check encode filtered filenames diff -r bd97d6fde324 -r 9fdf507badfc hgkw/kwexpander.py --- a/hgkw/kwexpander.py Sat Dec 16 15:55:11 2006 +0100 +++ b/hgkw/kwexpander.py Sun Dec 17 10:16:16 2006 +0100 @@ -24,14 +24,15 @@ # only check files that have hgkwencode assigned as encode filter files = [] + # python2.4: files = set() for pat, cmd in repo.ui.configitems('encode'): if cmd.endswith(kwencodefilter): mf = mercurial.util.matcher(repo.root, '', [pat], [], [])[1] for candidate in candidates: - if mf(candidate): - # check again that there really are no duplicates - # if candidate not in files ??? + if mf(candidate) and candidate not in files: files.append(candidate) + # python2.4: + # if mf(candidate): files.add(candidate) if not files: # nothing to do return False