diff --git a/hgext/censor.py b/hgext/censor.py --- a/hgext/censor.py +++ b/hgext/censor.py @@ -83,7 +83,7 @@ raise error.Abort(_('file does not exist at revision %s') % rev) fnode = fctx.filenode() - headctxs = [repo[c] for c in repo.heads()] + headctxs = (repo[c] for c in repo.heads()) heads = [c for c in headctxs if path in c and c.filenode(path) == fnode] if heads: headlist = ', '.join([short(c.node()) for c in heads])