- 21 Jul, 2020 1 commit
-
-
muxator authored
If a user aliased "hg log" to "hg log --graph" (apparently this is widespread, see [0]), the filter toolbar (CTRL+S), is no longer usable. The reason is that, under the hood, the filter toolbar parses the textual output of hg log, which would now be modified by the aliasing [1]. This change undoes any aliasing of hg log, which reverts back to a well-defined format, ensuring the parsing always succeeds. The fix comes from a suggestion by Yuya: https://groups.google.com/forum/#!msg/thg-dev/CTS0X7KYH_8/Qrz1e-gFAgAJ [0] https://www.mercurial-scm.org/repo/hg/rev/604c086ddde6f40309c03ae7e5050c7c8d87e75a [1] For example, looking for head() in the filter toolbar caused this error: Traceback (most recent call last): File "<base>/tortoisehg/hgqt/repomodel.py", line 350, in _onQueryFinished revs = pycompat.maplist(int, bytes(sess.readAll()).splitlines()) ValueError: invalid literal for int() with base 10: 'o 19186' Where the 'o' comes from the graphlog.
-
- 14 May, 2020 1 commit
-
-
Manuel Jacob authored
--HG-- branch : stable
-
- 09 Dec, 2019 1 commit
-
-
Yuya Nishihara authored
Hopefully this will detect future type mismatches.
-
- 07 Dec, 2019 1 commit
-
-
Yuya Nishihara authored
We'll probably want to switch it to attr.s class, but I don't wanna do that without help of static analysis.
-
- 30 Nov, 2019 1 commit
-
-
Yuya Nishihara authored
This suppresses the following error: File "tortoisehg/hgqt/cmdui.py", line 44, in <module>: Couldn't import pyi for 'tortoisehg.hgqt.cmdcore' [pyi-error] No cmdui.InteractiveUiHandler in module tortoisehg.hgqt, referenced from 'tortoisehg.hgqt.cmdcore'
-
- 08 Sep, 2019 1 commit
-
-
kiilerix authored
Only use unicode on the API towards UI: for msg and label in outputReceived, for setPrompt, and in ProgressMessaage Qt signals. Everything else is low level and use byte strings.
-
- 29 Aug, 2019 1 commit
-
-
kiilerix authored
-
- 28 Aug, 2019 1 commit
-
-
kiilerix authored
-
- 27 Aug, 2019 1 commit
-
-
kiilerix authored
read will give bytes back, while peek gives a Qt object where .data() will give the bytes.
-
- 25 Aug, 2019 1 commit
-
-
kiilerix authored
Debugging and print statements can tell more about failing asserts, but it is nice to get *some* information up front, also to make it easier to reproduce. General guidelines: Try to avoid anything that must compute something and thus can fail - try to just inspect local variables (or whatever assert looked at). For type related asserts, try to add repr(). Sometimes, multiple variables are relevant - in that case use tuples.
-
- 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
-
- 18 Aug, 2019 2 commits
-
-
Yuya Nishihara authored
It might be better to port to unicode API, I'm not sure where the config wrapper should be instantiated.
-
Yuya Nishihara authored
-
- 19 May, 2019 1 commit
-
-
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.
-
- 23 Mar, 2019 1 commit
-
-
Matt Harbison authored
Fixed up after running `2to3 -w -n -f xrange .`.
-
- 24 Mar, 2019 1 commit
-
-
Matt Harbison authored
Fixed up after running `2to3 -w -n -f map .` It also replaced map+lambda with a list comprehension in qt_repotreemodel_test.py.
-
- 23 Mar, 2019 1 commit
-
-
Matt Harbison authored
This used `2to3 -w -n -f except .`, fixed an extra parenthesis in bugreport.py, and a commented out clause in pbranch.py.
-
- 13 Jan, 2019 1 commit
-
-
Yuya Nishihara authored
Currently it doesn't support slow IODevice (e.g. QTcpSocket), but it should be good enough to feed JSON to debugcallconduit command.
-
- 26 Oct, 2017 1 commit
-
-
Yuya Nishihara authored
This is the simplest workaround for the Py3 Meld issue, which sees Py2 modules because PYTHONPATH is shared across Pythons even though they are pretty incompatible. $PYTHONPATH has to be set only for in-place use and ad-hoc installation. --HG-- branch : stable
-
- 04 Aug, 2017 1 commit
-
-
Yuya Nishihara authored
It was set to 5sec at ac9541282dbc so corruption on IPC channel could be detected instantly. Since then, the command server got better to protect its IPC channels from being damaged by extensions or hooks. So, this patch relaxes the timeout in case the command-server process is actually stalled over 5sec. --HG-- branch : stable
-
- 22 Jul, 2017 1 commit
-
-
Yuya Nishihara authored
-
- 25 Jan, 2017 1 commit
-
-
Andrey Yamnikov authored
PYTHONPATH could obtain here a strange value with colon at the end (like "/prog/root:"). It could lead to ImportError for Python repos if they contain files with names that match with standard Python modules, e.g. "types.py" or "time.py". --HG-- branch : stable
-
- 25 Sep, 2016 1 commit
-
-
Yuya Nishihara authored
-
- 30 Apr, 2015 1 commit
-
-
Yuya Nishihara authored
We need it because we allow users to input arbitrary revset expression. --HG-- branch : stable
-
- 24 Feb, 2015 1 commit
-
-
Yuya Nishihara authored
Phase movement are applied to pullop.pulledsubset, which contains all local heads because they are common between local and bundle repositories. Therefore, all local changesets are bumped to public incorrectly. http://selenic.com/repo/hg/file/fbdd5195528f/mercurial/exchange.py#l1070 It seems not possible to simulate phase movement by simple extension, so we'll need to change the way to pull incoming changesets without using HG10 bundle. (backed out changeset 227c8f165a97, 2125fdd2d1d1, reopens #2497, #3582) --HG-- branch : stable
-
- 16 Feb, 2015 2 commits
-
-
Yuya Nishihara authored
It seems QProcess never discards its write buffer before start() and there is no way to force to. If the remainder is written to the server, the previous request would be handled as if it were requested just now. Reported as https://bugreports.qt.io/browse/QTBUG-44517 --HG-- branch : stable
-
Yuya Nishihara authored
See the next patch for the reason why we have to recreate QProcess. --HG-- branch : stable
-
- 14 Feb, 2015 1 commit
-
-
Yuya Nishihara authored
Several widgets display constructed commands by themselves. They should use this function instead of simple ' '.join(). --HG-- branch : stable
-
- 07 Feb, 2015 1 commit
-
-
Yuya Nishihara authored
Without this, changesets pulled from bundle are set to draft. --HG-- branch : stable
-
- 08 Feb, 2015 3 commits
-
-
Yuya Nishihara authored
UnicodeEncodeError should be handled by qtlib.getTextInput(), but CmdServer should be robust for possible unicode errors. --HG-- branch : stable
-
Yuya Nishihara authored
It could happen because Qt lives with unicode but Mercurial expects localstr. --HG-- branch : stable
-
Yuya Nishihara authored
This makes sure that error messages in startCommand() come next. --HG-- branch : stable
-
- 28 Jan, 2015 1 commit
-
-
Yuya Nishihara authored
ui.label should be ascii in most cases, but it isn't guaranteed. This is the easiest fix for #3988 which was probably caused by pipeui.splitmsgs(). --HG-- branch : stable
-
- 31 Oct, 2014 1 commit
-
-
Yuya Nishihara authored
This is the last ditch to work around "timed out waiting for messages" error. In most cases, 5sec should be enough to start command server. --HG-- branch : stable
-
- 07 Mar, 2015 1 commit
-
-
Yuya Nishihara authored
This should make the control flow clearer.
-
- 21 Sep, 2014 4 commits
-
-
Yuya Nishihara authored
This is useful for testing thg with different configuration, for example, "thg --config extensions.mq=!".
-
Yuya Nishihara authored
-
Yuya Nishihara authored
This makes it easy to use ui.walkconfig() result.
-
Yuya Nishihara authored
It will be a source of --config options that should be propagated to hg process. It can also be used for debug output.
-
- 13 Aug, 2014 1 commit
-
-
Yuya Nishihara authored
Since null session is used as a drop-in replacement for real command, it should accept setup requests with no error. Because of this change, the output device of finished session may be changed. So uihandler should be created per session as it is now. This patch also adds a note for future reference. --HG-- branch : stable
-