PatchError: unhandled transition: hunk -> other
Created originally on Bitbucket by nickcrane66 (Nick Crane)
I sometime get this error in the commit view after CodeMaid clean up make several changes to my source file. Error also occurs in shelve tool. However, the file changes can be viewed OK in file folder view mode.
#!python
** Mercurial version (4.7.1). TortoiseHg version (4.7.1)
** Command:
** CWD: C:\WINDOWS
** Encoding: cp1252
** Extensions loaded: histedit, strip, mq, shelve, tortoisehg.util.configitems
** Python version: 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x64
** Qt-5.9.2 PyQt-5.9.1 QScintilla-2.10.2.dev1711012104
Traceback (most recent call last):
File "tortoisehg\hgqt\status.pyo", line 637, in onCurrentChange
File "tortoisehg\hgqt\filedata.pyo", line 220, in load
File "tortoisehg\hgqt\filedata.pyo", line 400, in _readStatus
File "mercurial\patch.pyo", line 1676, in parsepatch
PatchError: unhandled transition: hunk -> other
Oddly, just adding a CR/LF at the end of the file removes the error.
Attachments: TestRepos.zip