Remove \" from the user string before trying to extract name and email
authorFrej Drejhammar <frej.drejhammar@gmail.com>
Fri, 18 Mar 2011 18:12:45 +0000 (19:12 +0100)
committerFrej Drejhammar <frej.drejhammar@gmail.com>
Fri, 18 Mar 2011 18:12:45 +0000 (19:12 +0100)
commit486690e1764f63448f261c7bd95e8b2f1e28773b
tree2ee2da394628f243a43bce71353bbae3c34ebaca
parentc8a45848968a21c3021489a6ba3ab1ffe5ef2a90
Remove \" from the user string before trying to extract name and email

Signed-off-by: Frej Drejhammar <frej.drejhammar@gmail.com>
Reported-by: Cole Robinson <crobinso@redhat.com>
Thank's to Cole Robinson for reporting the bug and providing a fix
which was adapted to this patch.

The original bug report:

I was recently converting a few mercurial repositories to git, and
noticed certain commits had their date reset to Jan 1 1970.

An example repo:

http://hg.fedorahosted.org/hg/virt-manager

An example commit:

http://hg.fedorahosted.org/hg/virt-manager/rev/41182500ddef

After some poking, it seems the culprit was that the "author:" was
surrounded by quotation marks
hg2git.py