[issue3264] patch.py IndexError when applying patch

cheater bugs at mercurial.selenic.com
Sun Feb 12 13:49:37 UTC 2012


New submission from cheater <cheater00 at gmail.com>:

I noticed that patch.py crashes on applying a specific patch. This is most
easily discovered if you use hg crecord, and append some lines to the end of
the tracked file. It then creates a git format diff which kills mercurial.
This was tested with 1.4 which was on my Ubuntu 10.04 at the time and with
2.1+27-cb756482c1aa.

Attaching traceback to this comment. In this traceback I run hg cr, which
then creates a patch and tries to apply it.

----------
messages: 19055
nosy: cheater
priority: bug
status: unread
title: patch.py IndexError when applying patch
topic: hg, patch

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3264>
____________________________________________________



More information about the Mercurial-devel mailing list