Mercurial > hg
changeset 12068:2e7647d25458 stable
churn: do not crash on empty lines in alias file
author | Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de> |
---|---|
date | Sun, 29 Aug 2010 10:54:22 +0200 |
parents | a4fbbe0fbc38 |
children | 7c3c44413bc1 |
files | hgext/churn.py tests/test-churn |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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()