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. 24 Mar, 2019 1 commit
  3. 18 May, 2019 1 commit
  4. 05 May, 2019 7 commits
  5. 30 Apr, 2019 1 commit
  6. 29 Apr, 2019 3 commits
  7. 14 Apr, 2019 12 commits
  8. 15 Apr, 2019 1 commit
  9. 13 Apr, 2019 1 commit
  10. 12 Apr, 2019 1 commit
  11. 11 Apr, 2019 1 commit
  12. 06 Apr, 2019 1 commit
    • muxator's avatar
      revpanel: also pass ctx to link_markup() · 66912253dda1
      muxator authored
      The next commit will enable support for using generic mercurial templates in
      changeset.link. In preparation of this, it is necessary to pass ctx to the
      markup function.
      66912253dda1
  13. 08 Apr, 2019 1 commit
  14. 12 Apr, 2019 2 commits
  15. 06 Apr, 2019 1 commit
    • Matt Harbison's avatar
      revdetails: fix a crash when clicking a hash hyperlink in File History · 3d620283d66f
      Matt Harbison authored
      When clicking on a cset hyperlink in File History > Revision Details, this
      popped up:
      
          Traceback (most recent call last):
            File "tortoisehg\hgqt\revdetails.pyo", line 603, in linkActivated
            File "tortoisehg\hgqt\revdetails.pyo", line 562, in setRev
            File "tortoisehg\hgqt\revdetails.pyo", line 298, in onRevisionSelected
            File "tortoisehg\hgqt\thgrepo.pyo", line 772, in __getitem__
            File "mercurial\localrepo.pyo", line 1277, in __getitem__
          ProgrammingError: unsupported changeid 'c62038d6f988' of type <type 'unicode'>
      
      Most of the existing callers pass an int to setRev(), with the possible
      exception of the default parameter in the RevDetailsDialog constructor.  So this
      can't be converted any closer to the repo lookup.
      
      --HG--
      branch : stable
      3d620283d66f
  16. 05 Apr, 2019 1 commit
  17. 06 Apr, 2019 3 commits
    • muxator's avatar
      revpanel: just some newlines in create_markup_func() · 0cb4ae8344dc
      muxator authored
      Let's try to better witespace-separate the various subfunctions, since in the
      next commits we are going to mess with them.
      0cb4ae8344dc
    • muxator's avatar
      patchctx: fix crash when clicking on unapplied mq patch. · 8acf1cec570b
      muxator authored
      Without this patch, clicking on an unapplied mq patch causes the following
      stack trace:
      
        [...]
        ** Mercurial version (4.9+7-a62690659d6b+20190223).  TortoiseHg version (4.9+25-a4f12d0cab7c)
        [...]
        Traceback (most recent call last):
          File "<base>/thg/tortoisehg/hgqt/revdetails.py", line 397, in _onFileSelected
            self.fileview.display(model.fileData(index))
          File "<base>/thg/tortoisehg/hgqt/fileview.py", line 498, in display
            fd.load(self.isChangeSelectionEnabled())
          File "<base>/thg/tortoisehg/hgqt/filedata.py", line 494, in load
            self.diff = ctx.thgmqpatchdata(wfile)
          File "<base>/thg/tortoisehg/util/patchctx.py", line 190, in thgmqpatchdata
        NameError: global name 'pycompat' is not defined
      
      This was a small overlook in 679593c2dbe6 (py3: replace cStringIO with
      pycompat.bytesio)
      8acf1cec570b
    • muxator's avatar
      patchctx: merge together two imports and use new import style · 4394446559d2
      muxator authored
      No functional changes
      4394446559d2
  18. 27 Mar, 2019 1 commit
    • Matt Harbison's avatar
      py3: import _winreg as winreg · a4f12d0cab7c
      Matt Harbison authored
      This is kind of messy, and I've got no way to test bugtraq, so I don't want to
      change anything.  There's no thg equivalent of pycompat that I know of, and the
      windows module handles this already, so it seems OK to use.
      a4f12d0cab7c