- 23 Aug, 2019 1 commit
-
-
Matt Harbison authored
A couple of notable things: - `tortoisehg.autoresolve` still gets a default value in backout and rebase, even though it is not registered dynamicdefault. - the following were left with '' as the default, because it is used to set text with a QString, and it is unknown how far back None would be accepted. (Any other '' -> None conversions are not used to set text) * email.cc * email.to * gpg.key * hostfingerprints.* (strange the default here is a list) - `tortoisehg.overlayicons` in nautilus-thg needs to be registered, as does `debug.delaylock`. - `web.name` still takes a default because it is dynamicdefault
-
- 25 Aug, 2019 1 commit
-
-
Yuya Nishihara authored
Otherwise, the next patch would break the tests.
-
- 21 Aug, 2019 1 commit
-
-
kiilerix authored
The user-friendly bug reporter dialog is user-friendly, but is sometimes annoying during development - it require extra interaction, and doesn't leave a backlog of previous errors on the console. Sometimes, a stack trace on the console and termination is preferable. The existing thg --traceback mimics hg --traceback and sets the Mercurial ui.traceback flag that in some cases might make Mercurial show more verbose errors. It seems reasonable that thg --traceback also make thg show tracebacks on the console and terminate without using the bug reporter dialog. To implement this, introduce a config setting: [tortoisehg] traceback = on and let thg --traceback set it True.
-
- 22 Aug, 2019 2 commits
- 21 Aug, 2019 3 commits
-
-
Matt Harbison authored
I hit this when an exception was raised because of passing str to `ui.debug()` when opening workbench.
-
kiilerix authored
Tags should be unicode strings, so fine to join them with a plain ','. But then we have to convert them to unicode first.
-
kiilerix authored
The existing str handling is fine, both for py2 and py3. And the bytes implementation is very simple and elegant.
-
- 20 Aug, 2019 1 commit
-
-
Yuya Nishihara authored
-
- 19 Aug, 2019 2 commits
-
-
kiilerix authored
Fix Traceback (most recent call last): File ".../tortoisehg/hgqt/thgrepo.py", line 518, in _onConfigChanged self._repo.invalidateui() File ".../tortoisehg/hgqt/thgrepo.py", line 945, in invalidateui hglib.copydynamicconfig(origui, self.ui) File ".../tortoisehg/util/hglib.py", line 643, in copydynamicconfig if ':' in source: TypeError: a bytes-like object is required, not 'str'
-
kiilerix authored
Fix File ".../tortoisehg/hgqt/about.py", line 222, in __init__ self.lic_txt.setPlainText(lic) TypeError: setPlainText(self, str): argument 1 has unexpected type 'bytes'
-
- 20 Aug, 2019 2 commits
-
-
kiilerix authored
Fix File ".../tortoisehg/hgqt/repomodel.py", line 672, in defaultIndex rev = repo[changeid].rev() File ".../tortoisehg/hgqt/thgrepo.py", line 773, in __getitem__ changectx = super(thgrepository, self).__getitem__(changeid) File "...hgext/largefiles/reposetup.py", line 47, in __getitem__ ctx = super(lfilesrepo, self).__getitem__(changeid) File "...mercurial/localrepo.py", line 1430, in __getitem__ (changeid, type(changeid))) TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'
-
kiilerix authored
Fix: File ".../tortoisehg/hgqt/revpanel.py", line 53, in revline_data return str(ctx.rev()), str(ctx), summary_line(desc), hl, branch File ".../tortoisehg/hgqt/revpanel.py", line 48, in summary_line return hglib.longsummary(desc.replace('\0', '')) TypeError: a bytes-like object is required, not 'str'
-
- 15 Aug, 2019 2 commits
- 18 Aug, 2019 1 commit
-
-
kiilerix authored
Fix: File .../tortoisehg/hgqt/repotreeitem.py, line 350, in dump xw.writeAttribute('basenode', node.hex(self.basenode())) TypeError: arguments did not match any overloaded call: writeAttribute(self, str, str): argument 2 has unexpected type 'bytes' writeAttribute(self, str, str, str): argument 2 has unexpected type 'bytes' writeAttribute(self, QXmlStreamAttribute): argument 1 has unexpected type 'str'
-
- 20 Aug, 2019 1 commit
-
-
kiilerix authored
Just do like the original qtproxies class and use their as_string. Avoid crash on "unknown encoding: string-escape" or generating strings like 'b'Foo'' "python3 setup.py build" now pass "running build_ui" (but fails in "running build_mo").
-
- 18 Aug, 2019 4 commits
-
-
Yuya Nishihara authored
-
Yuya Nishihara authored
-
Yuya Nishihara authored
-
Yuya Nishihara authored
It might be better to port to unicode API, I'm not sure where the config wrapper should be instantiated.
-
- 15 Aug, 2019 2 commits
-
-
kiilerix authored
Because for example: File ".../tortoisehg/hgqt/filedata.py", line 295, in _readStatus if (wfile in ctx and 'l' in ctx.flags(wfile)) or \ TypeError: a bytes-like object is required, not 'str'
-
kiilerix authored
Fix for example: File ".../tortoisehg/hgqt/filedata.py", line 170, in filePath return hglib.tounicode(posixpath.join(self._rpath, self._wfile)) ... TypeError: Can't mix strings and bytes in path components
-
- 18 Aug, 2019 1 commit
-
-
kiilerix authored
Work around:: TypeError: unhashable type: 'StandardKey' They could perhaps instead be case to an int. But it seems like we don't really need set properties, and using a list is fine?
-
- 15 Aug, 2019 1 commit
-
-
kiilerix authored
-
- 18 Aug, 2019 2 commits
-
-
kiilerix authored
Avoid mercurial vfs layer ending up with: raise TypeError("Can't mix strings and bytes in path components")
-
kiilerix authored
Fix: File ".../tortoisehg/hgqt/run.py", line 298, in _parse aliases, i = cmdutil.findcmd(alias, table, ui.config(b"ui", b"strict")) File "...mercurial/cmdutil.py", line 676, in findcmd choice, allcmds = findpossible(cmd, table, strict) File "...mercurial/cmdutil.py", line 660, in findpossible if a.startswith(cmd): TypeError: startswith first arg must be bytes or a tuple of bytes, not str
-
- 14 Aug, 2019 1 commit
-
-
kiilerix authored
In Python3, read the .po file as unicode strings, but make sure the binary encoding is done using bytes. This operation is usually run at build time, and only working on translations stored in the repository at build time - not exposed to any user content. With this, "setup.py build" passes, both with python2 and python3.
-
- 18 Aug, 2019 12 commits
-
-
Matt Harbison authored
Actually, in order to work, the _ui.py generation patch that Mads wrote needs to be applied too.
-
Matt Harbison authored
-
Yuya Nishihara authored
We don't care the encoding. The data must be all in ASCII.
-
Yuya Nishihara authored
-
Yuya Nishihara authored
-
Yuya Nishihara authored
hgversion.hgversion remains as bytes since the hgversion module is also used by Mercurial extensions.
-
Yuya Nishihara authored
-
Yuya Nishihara authored
"thg about" works on Python 3.
-
Yuya Nishihara authored
"thg version" works on Python 3.
-
Yuya Nishihara authored
-
Yuya Nishihara authored
Perhaps, the other modules can use Qt-level API, but here we have to interface with the Mercurial modules directly.
-
Yuya Nishihara authored
-