# HG changeset patch # User Benoit Boissinot # Date 1137600468 -3600 # Node ID 11cd38286fdbd87402a16058c1d8b1afc5636bbe # Parent f2b1df3dbcbbde87e1d384e60137b34e6ae2abc3 fix for hgweb.filterfiles some variable weren't converted, fix a possible out of range error diff --git a/mercurial/hgweb.py b/mercurial/hgweb.py --- a/mercurial/hgweb.py +++ b/mercurial/hgweb.py @@ -227,10 +227,10 @@ class hgweb(object): def diff(self, node1, node2, files): def filterfiles(filters, files): - l = [x for x in list if x in filters] + l = [x for x in files if x in filters] for t in filters: - if t[-1] != os.sep: + if t and t[-1] != os.sep: t += os.sep l += [x for x in files if x.startswith(t)] return l