Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • thg thg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 829
    • Issues 829
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mercurial
  • TortoiseHg
  • thgthg
  • Issues
  • #5224
Closed
Open
Created Sep 18, 2018 by Bitbucket Importer@bitbucket_importerOwner

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

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking