• Matt Harbison's avatar
    visdiff: use scmutil.revsymbol() to resolve --change · 2c8f85f3a8e7
    Matt Harbison authored
    I triggered this by accidentally double clicking a file in the shelved half of
    the shelf widget:
        Traceback (most recent call last):
          File "tortoisehg\hgqt\chunks.pyo", line 166, in vdiff
          File "tortoisehg\hgqt\visdiff.pyo", line 216, in visualdiff
          File "tortoisehg\hgqt\thgrepo.pyo", line 772, in __getitem__
          File "mercurial\localrepo.pyo", line 856, in __getitem__
          File "mercurial\context.pyo", line 439, in __init__
        ProgrammingError: unsupported changeid 'patch' of type <type 'str'>
    Now it pops up a message saying 'Unable to find changeset'.  Oddly, the value of
    --change in this case is 'patch', and I wasn't able to trigger this with visual
    branch : stable