Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
thg
thg
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 798
    • Issues 798
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

There will be about 1h of downtime on 2020-03-02 at 13:00 UTC+1 (change of servers and upgrade to Heptapod 0.20.0 final)

  • mercurial
  • TortoiseHg
  • thgthg
  • Issues
  • #5224

Closed
Open
Opened 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

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: mercurial/tortoisehg/thg#5224