--- a/hgext/churn.py Sun Aug 29 22:37:58 2010 +0200
+++ b/hgext/churn.py Sun Aug 29 10:54:22 2010 +0200
@@ -129,6 +129,8 @@
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()
--- a/tests/test-churn Sun Aug 29 22:37:58 2010 +0200
+++ b/tests/test-churn Sun Aug 29 10:54:22 2010 +0200
@@ -38,6 +38,7 @@
echo % churn with aliases
cat > ../aliases <<EOF
user1 alias1
+
user3 alias3
EOF
hg churn --aliases ../aliases