hg2git.py: Don't complain die for non-existent heads
commit191928202b5156a466f2c3ec200ae7058e4ea889
authorRocco Rutte <pdmef@gmx.net>
Mon, 12 Mar 2007 11:13:48 +0000 (12 11:13 +0000)
committerRocco Rutte <pdmef@gmx.net>
Mon, 12 Mar 2007 11:13:48 +0000 (12 11:13 +0000)
tree9ea7d55985a04a575f4838350ccb5bf0aec4d386
parente448736a0b0d4b2d280e44843ef814ef575bf302
hg2git.py: Don't complain die for non-existent heads

Previously, when no head was present under .git/refs/heads, we simply
died as we couldn't open the file. Now, simply return None in case we
cannot read from it.

Signed-off-by: Rocco Rutte <pdmef@gmx.net>
hg2git.py