change selection of rename diff causes traceback
Created originally on Bitbucket by sborho (Steve Borho)
{{{ Traceback (most recent call last): File "/home/steve/tools/tortoisehg-dev/hggtk/status.py", line 882, in _diff_tree_row_act self._update_diff_header(dmodel, wfile, newvalue) File "/home/steve/tools/tortoisehg-dev/hggtk/status.py", line 650, in _update_diff_header newtext = self._shelve_chunks[row[DM_CHUNK_ID]].selpretty(sel) File "/home/steve/tools/tortoisehg-dev/hggtk/hgshelve.py", line 116, in selpretty if selected(i): File "/home/steve/tools/tortoisehg-dev/hggtk/status.py", line 649, in sel = lambda x: not dmodel[hc+x+1][DM_REJECTED] IndexError: could not find tree path }}}
I found a simple repro case, just hg mv a file and make modifications to the target. Bring up the commit window and then toggle either the rename source or target files. You get the above traceback.