1. 19 May, 2019 1 commit
    • Matt Harbison's avatar
      py3: migrate unicode() to pycompat.unicode() · 6a0080d4e5a5
      Matt Harbison authored
      Fixed up after running `2to3 -w -n -f unicode .`, and re-adding the dropped u''
      prefixes.  The pycompat.unicode() hack is copied into setup.py because that
      module declares the dependency on mercurial.
      6a0080d4e5a5
  2. 14 Apr, 2019 1 commit
  3. 12 Apr, 2019 1 commit
  4. 24 Mar, 2019 1 commit
  5. 23 Mar, 2019 1 commit
  6. 08 Oct, 2018 1 commit
  7. 03 Oct, 2018 1 commit
    • 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
      diff.
      
      --HG--
      branch : stable
      2c8f85f3a8e7
  8. 26 May, 2018 2 commits
  9. 06 Dec, 2017 1 commit
  10. 25 Sep, 2016 1 commit
  11. 08 Dec, 2015 1 commit
  12. 11 Aug, 2015 1 commit
    • Matt Harbison's avatar
      visdiff: preserve the executable bit after editing a file · fbc4c289547c
      Matt Harbison authored
      I noticed on OS X that editing an executable shell script in visual diff would
      reset the file to 644 after saving.  The problem only occurred if a snapshot was
      required, e.g. if there was more than one file in the diff.  It looks like
      util.copyfile() preserves the mode when copying from $tmp back to wdir(), so it
      was just a matter of copying the mode when first creating the temp file.
      
      This code was ripped off from the extdiff extension prior to it switching to
      using archive, but I left out the symlink case since this code isn't using
      wopener.  Perhaps this should be switched to use archive as well, which would
      allow subrepo support.
      
      --HG--
      branch : stable
      fbc4c289547c
  13. 03 Aug, 2014 1 commit
  14. 10 Aug, 2015 3 commits
  15. 01 Feb, 2014 1 commit
  16. 01 Dec, 2013 1 commit
  17. 02 Jun, 2013 1 commit
  18. 22 Apr, 2012 1 commit
  19. 10 Feb, 2012 1 commit
  20. 22 Jan, 2012 1 commit
  21. 27 Dec, 2011 1 commit
  22. 08 Nov, 2011 1 commit
  23. 23 Jan, 2012 2 commits
  24. 06 Sep, 2011 1 commit
  25. 03 Jul, 2011 1 commit
  26. 31 May, 2011 1 commit
  27. 29 Apr, 2011 1 commit
  28. 27 Apr, 2011 1 commit
  29. 16 May, 2011 1 commit
  30. 27 Mar, 2011 1 commit
  31. 13 Mar, 2011 1 commit
  32. 07 Mar, 2011 2 commits
  33. 04 Mar, 2011 1 commit
  34. 08 Mar, 2011 1 commit
  35. 02 Mar, 2011 1 commit