##// END OF EJS Templates
churn: do not crash on empty lines in alias file
Ronny Pfannschmidt -
r12068:2e7647d2 stable
parent child Browse files
Show More
@@ -129,6 +129,8 b' def churn(ui, repo, *pats, **opts):'
129 129 aliases = repo.wjoin('.hgchurn')
130 130 if aliases:
131 131 for l in open(aliases, "r"):
132 if not l.strip():
133 continue
132 134 alias, actual = l.split('=' in l and '=' or None, 1)
133 135 amap[alias.strip()] = actual.strip()
134 136
@@ -38,6 +38,7 b' cd ..'
38 38 echo % churn with aliases
39 39 cat > ../aliases <<EOF
40 40 user1 alias1
41
41 42 user3 alias3
42 43 EOF
43 44 hg churn --aliases ../aliases
General Comments 0
You need to be logged in to leave comments. Login now