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

Detect renames + Accept selected matches = exception

Piotr Klecha
created an issue

Detect renames dialog fails with exception when selecting files and using "Accept selected matches", "Accept all matches" works fine. I am using version from current tip (rev: 356419639d82e738e22bdc686edbf2186b111473).

{{{

!python

Mercurial version (1.8.2). TortoiseHg version (2.0.4+100-356419639d82) Command: CWD: C:\cvs-projekty\Market_CVS-Hg\Market Extensions loaded: histedit, rebase, transplant, hgexternals, mq, hggit, crecord, graphlog, record, convert, projrc Python version: 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] Windows version: (6, 1, 7600, 2, '') Processor architecture: x64 Qt-4.7.1 PyQt-4.8.3 Traceback (most recent call last): File "c:\Program Files (x86)\TortoiseHg=== Your title here... ===\source\thg\tortoisehg\hgqt\guess.py", line 236, in acceptMatch src, dest, percent = item TypeError: 'QModelIndex' object is not iterable

}}}

Comments (4)

  1. André Sintzoff

    If you are running the default tip of thg, why are you running such "old" hg?

    hg 1.8.2 is compatible with thg 2.0.3

    default tip of thg is mainly compatible with default tip of hg

  2. Piotr Klecha reporter

    I updated both hg and thg to latest stable versions and the error is the same:

    ** Mercurial version (1.8.3+8-3c65cdcf3ba6).  TortoiseHg version (2.0.4+42-161fbab6745a)
    ** Command: 
    ** CWD: E:\cvs-projekty\hg_test\hg_new_with_sub
    ** Extensions loaded: histedit, rebase, transplant, hgexternals, mq, hggit, crecord, graphlog, record, convert, projrc
    ** Python version: 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)]
    ** Windows version: (6, 1, 7600, 2, '')
    ** Processor architecture: x64
    ** Qt-4.7.1 PyQt-4.8.3
    Traceback (most recent call last):
      File "c:\Program Files (x86)\TortoiseHg\source\thg\tortoisehg\hgqt\guess.py", line 227, in acceptMatch
        src, dest, percent = item
    TypeError: 'QModelIndex' object is not iterable
    
  3. Log in to comment