comparison tests/test-convert-authormap @ 7962:62154415821f

convert: fix authormap handling of lines without '=' Unpacking the result from str.split raises ValueError, not IndexError, if the line does not contain a '='.
author Marti Raudsepp <marti@juffo.org>
date Sat, 04 Apr 2009 15:41:32 +0200
parents 52e442fe43f4
children 43b70a964e0d
comparison
equal deleted inserted replaced
7961:52e442fe43f4 7962:62154415821f
13 cd .. 13 cd ..
14 14
15 # Explicit --authors 15 # Explicit --authors
16 cat > authormap.txt <<EOF 16 cat > authormap.txt <<EOF
17 user name = Long User Name 17 user name = Long User Name
18
19 this line is ignored
18 EOF 20 EOF
19 21
20 hg convert --authors authormap.txt orig new 22 hg convert --authors authormap.txt orig new
21 echo $? 23 echo $?
22 cat new/.hg/authormap 24 cat new/.hg/authormap