Code

hg-to-git: fix parent analysis
authorStelian Pop <stelian@popies.net>
Fri, 15 Feb 2008 21:20:44 +0000 (22:20 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Feb 2008 07:01:49 +0000 (23:01 -0800)
commit13bf1a99764ea751f6fa75502309d8b91529623a
tree8e270b04467ece55d4421e006cf4dba028294759
parent87f1b8849bf0094e0b20cd294e1f2b04976ddf41
hg-to-git: fix parent analysis

Fix a bug in the hg-to-git convertor introduced by commit
1bc7c13af9f936aa80893100120b542338a10bf4: when searching the changeset
parents, 'hg log' returns an extra space at the end of the line, which
confuses the .split(' ') based tokenizer:

    Traceback (most recent call last):
      File "hg-to-git.py", line 123, in <module>
          hgchildren[mparent] += ( str(cset), )
      KeyError: ''

Signed-off-by: Stelian Pop <stelian@popies.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/hg-to-git/hg-to-git.py