1. TortoiseHg
  2. TortoiseHg
  3. thg
  4. Issues
Issue #3462 resolved

AttributeError whan selecting a deleted patch in revision history view

Simon H.
created an issue

I get the following error message when selecting a patch who's file is deleted. (The patch example.diff is listed in series, but the file example.diff does not exist.) The failure happens when the patch is selected in revision history view or in patch queue view (MQPatchesWidget).

** Mercurial version (2.8).  TortoiseHg version (2.10)
** Command: 
** CWD: C:\Users\simon\Documents\div\develop\hg\mercurial
** Encoding: cp1252
** Extensions loaded: winhide, strip, mq, eol, run_py
** Python version: 2.7.3 (default, Apr 10 2012, 23:24:47) [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-4.8.4 PyQt-4.10.2 QScintilla-2.7.2
Traceback (most recent call last):
  File "tortoisehg\hgqt\repowidget.pyo", line 945, in onRevisionSelected
  File "tortoisehg\hgqt\revdetails.pyo", line 248, in onRevisionSelected
  File "tortoisehg\hgqt\csinfo.pyo", line 453, in update
  File "tortoisehg\hgqt\csinfo.pyo", line 367, in get_markup
  File "tortoisehg\hgqt\csinfo.pyo", line 313, in get_markup
  File "tortoisehg\hgqt\csinfo.pyo", line 248, in get_data
  File "tortoisehg\hgqt\revpanel.pyo", line 78, in data_func
  File "tortoisehg\hgqt\csinfo.pyo", line 361, in get_data
  File "tortoisehg\hgqt\csinfo.pyo", line 252, in get_data
  File "tortoisehg\hgqt\csinfo.pyo", line 236, in preset_func
  File "tortoisehg\util\patchctx.pyo", line 174, in thgmqoriginalparent
AttributeError: 'patchctx' object has no attribute '_ph'

Comments (1)

  1. Log in to comment