# HG changeset patch # User Marti Raudsepp # Date 1238861078 -7200 # Node ID 43b70a964e0dd9bcf27f44a38491747647a7ba39 # Parent c03f42159aface8c88f7b153caee8d4d15c7496e convert: handle comments starting with '#' in authormap files diff -r c03f42159afa -r 43b70a964e0d hgext/convert/convcmd.py --- a/hgext/convert/convcmd.py Sat Apr 04 17:55:52 2009 +0200 +++ b/hgext/convert/convcmd.py Sat Apr 04 18:04:38 2009 +0200 @@ -198,7 +198,8 @@ afile = open(authorfile, 'r') for line in afile: - if line.strip() == '': + line = line.strip() + if not line or line.startswith('#'): continue try: diff -r c03f42159afa -r 43b70a964e0d tests/test-convert-authormap --- a/tests/test-convert-authormap Sat Apr 04 17:55:52 2009 +0200 +++ b/tests/test-convert-authormap Sat Apr 04 18:04:38 2009 +0200 @@ -16,6 +16,7 @@ cat > authormap.txt <