diff --git a/hgext/churn.py b/hgext/churn.py --- a/hgext/churn.py +++ b/hgext/churn.py @@ -129,6 +129,8 @@ def churn(ui, repo, *pats, **opts): aliases = repo.wjoin('.hgchurn') if aliases: for l in open(aliases, "r"): + if not l.strip(): + continue alias, actual = l.split('=' in l and '=' or None, 1) amap[alias.strip()] = actual.strip() diff --git a/tests/test-churn b/tests/test-churn --- a/tests/test-churn +++ b/tests/test-churn @@ -38,6 +38,7 @@ cd .. echo % churn with aliases cat > ../aliases <