1. 15 Nov, 2019 2 commits
  2. 13 Nov, 2019 4 commits
  3. 12 Nov, 2019 4 commits
  4. 08 Nov, 2019 2 commits
  5. 06 Nov, 2019 3 commits
    • muxator's avatar
      py3: make commit functionality working on py2 & py3 · 7d1cc65e24cc
      muxator authored
      Before this change, trying to commit something under python3 would fail with a
      set of messages like the following one:
      
          File "/opt/mercurial/thg/tortoisehg/hgqt/commit.py", line 604, in mqPerformAction
            return self.commit()
          File "/opt/mercurial/thg/tortoisehg/hgqt/commit.py", line 952, in commit
            'issue.linkmandatory')
          File "/usr/lib/python3/dist-packages/mercurial/ui.py", line 688, in configbool
            v = self._config(section, name, default, untrusted=untrusted)
          File "/usr/lib/python3/dist-packages/mercurial/ui.py", line 585, in _config
            msg %= (section, name)
        TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'
      
      And, in addition, this traceback would be triggered when trying to split the
      'autoinc' string:
      
          File "/opt/mercurial/thg/tortoisehg/hgqt/commit.py", line 604, in mqPerformAction
            return self.commit()
          File "/opt/mercurial/thg/tortoisehg/hgqt/commit.py", line 1101, in commit
            for fname in self.opts.get('autoinc', '').split(b','):
        TypeError: must be str or None, not bytes
      
      Tested compatibility with:
        - python2.7, mercurial 5.1.2
        - python3.7, mercurial 5.2
      7d1cc65e24cc
    • muxator's avatar
      py3: the commit widget no longer crashes when showing the working copy status · cebe377df167
      muxator authored
      Before this change, on python3.7 and hg 5.2, the commit widget would crash when
      trying to show the status of the working copy. This was due to problems in
      populating a configuration structure.
      
      This change builds on the work done in f63ca64e4688 on RepoAgent, and redefines
      readopts() to use a cross-compatible way of loading configuration data.
      Also changed the other call site for readopts() in merge.py.
      
      Please note that in this revision the "commit" functionality is still not
      working, because of the very same problem. This will be addressed in the next
      changeset.
      
      Tested compatibility with:
        - python2.7, mercurial 5.1.2
        - python3.7, mercurial 5.2
      cebe377df167
    • muxator's avatar
      py3: convert '\n' to b'\n', so that run() is able to show its error dialog · a3db80a170b5
      muxator authored
      Otherwise, when there is an error at startup (for example, when testedwith
      field in hgversion.py is not updated), thg fails with:
      
        Traceback (most recent call last):
          File "/usr/local/bin/thg", line 91, in <module>
            tortoisehg.hgqt.run.run()
          File "/opt/mercurial/thg/tortoisehg/hgqt/run.py", line 80, in run
            'error': '\n' + errmsg + '\n',
        TypeError: can only concatenate str (not "bytes") to str
      
      Tested compatibility with:
      - python2.7, mercurial 5.1.2
      - python3.7, mercurial 5.2
      a3db80a170b5
  6. 29 Sep, 2019 5 commits
  7. 25 Sep, 2019 2 commits
  8. 29 Sep, 2019 1 commit
  9. 22 Sep, 2019 1 commit
  10. 19 Aug, 2019 1 commit
  11. 18 Aug, 2019 1 commit
    • kiilerix's avatar
      py3: avoid crash when comparing timestamps with None · b8e118bf5fc6
      kiilerix authored
      The default value for cur was -1 ... but it was compared with None. That worked
      on Python2, but Python 3 refuse to do that and would fail with:
        TypeError: '>=' not supported between instances of 'tuple' and 'int'
      
      Fix by using None as default and check for identify instead of using >= .
      b8e118bf5fc6
  12. 26 Sep, 2019 1 commit
  13. 29 Sep, 2019 1 commit
  14. 25 Sep, 2019 1 commit
  15. 24 Sep, 2019 2 commits
  16. 16 Sep, 2019 1 commit
  17. 24 Sep, 2019 1 commit
  18. 31 Aug, 2019 1 commit
  19. 24 Sep, 2019 1 commit
  20. 31 Aug, 2019 1 commit
    • kiilerix's avatar
      py3: fix "Search" · 598974def725
      kiilerix authored
      Keep htmlui as byte strings even though label styling comes from qtlib unicode
      land.
      598974def725
  21. 22 Sep, 2019 2 commits
  22. 21 Sep, 2019 2 commits