- Nov 11, 2018
-
-
Yuya Nishihara authored
This should make the extension more Py3 friendly. The environment variables of the main process are copied to the dict by shellenviron(). .. bc:: Boolean options passed to the logtoprocess extension are now formatted as ``0`` or ``1`` instead of ``None``, ``False``, or ``True``.
-
- Nov 13, 2018
-
-
Yuya Nishihara authored
The error message is still cryptic, but it should be better.
-
Pulkit Goyal authored
Differential Revision: https://phab.mercurial-scm.org/D5263
-
Pulkit Goyal authored
dict.iterkeys() is not present on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5262
-
Pulkit Goyal authored
hashlib.sha1.hexdigest() returns str on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5261
-
Pulkit Goyal authored
# skip-blame as just r'' prefixes Differential Revision: https://phab.mercurial-scm.org/D5260
-
Pulkit Goyal authored
Keys of kwargs on Python 3 should be strings. This patch fixes them by appending r'' prefixes, and using pycompat.byteskwargs() and pycompat.strkwargs(). Differential Revision: https://phab.mercurial-scm.org/D5259
-
- Oct 13, 2018
-
-
Pulkit Goyal authored
Something changed with Python 3 just like million on things. Maybe they should named Python 3 as anaconda or cobra instead of just increasing the version number. This makes test-custom-filters.t pass on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5039
-
- Nov 08, 2018
-
-
Boris Feld authored
Same logic as for 'gapsheap', we don't actually need a heap.
-
Boris Feld authored
The heap doesn't bring any performance advantage as we can simply sort the final list. Moreover, the lesser complexity helps a lot when we later implement it in C.
-
Boris Feld authored
In this fast-path case, we do not need to compute the full delta chain payload. Since it comes with a significant cost, we avoid doing so if possible.
-
- Oct 16, 2018
-
-
Boris Feld authored
We no longer need to deal with slicing logic including uncommitted revision. We drop the associated code.
-
Boris Feld authored
We no longer need to deal with slicing logic including uncommitted revision. We drop the associated code.
-
- Oct 15, 2018
-
-
Boris Feld authored
This significantly improves the performance on unbundling on smaller repositories. Mercurial: unbundling 1K revisions no-sparse-revlog: 500 ms sparse-revlog-before: 689 ms sparse-revlog-after: 484 ms Pypy: unbundling 1K revisions no-sparse-revlog: 1.242 s sparse-revlog-before: 1.135 s sparse-revlog-after: 0.860 s NetBeans: unbundling 1K revisions no-sparse-revlog: 1.386 s sparse-revlog-before: 2.368 s sparse-revlog-after: 1.191 s Mozilla: unbundling 1K revisions no-sparse-revlog: 3.103 s sparse-revlog-before: 3.367 s sparse-revlog-after: 3.093 s
-
- Oct 17, 2018
-
-
Augie Fackler authored
I don't tend to like curses interfaces, but this gets enough use at work that it seems like it's worth bringing into core. This is a minimal import from hg-experimental revision 4c7f33bf5f00, in that I've done the smallest amount of code movement and editing in order to import the functionality. .. feature:: `hg histedit` will now present a curses UI if curses is available and `ui.interface` or `ui.interface.histedit` is set to `curses`. Differential Revision: https://phab.mercurial-scm.org/D5146
-
- Nov 13, 2018
-
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5258
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5257
-
Augie Fackler authored
There's no valid manifest that would have no characters before the NUL byte on a line, and this fixes some erratic timeouts in the fuzzer. Differential Revision: https://phab.mercurial-scm.org/D5256
-
- Nov 06, 2018
-
-
Augie Fackler authored
PyInt_AS_LONG disappears on Python, and our previous #define was producing some problems on Python 3. Let's give up and make an inline helper function that makes this more sane. Differential Revision: https://phab.mercurial-scm.org/D5235
-
- Nov 12, 2018
-
-
Yuya Nishihara authored
While refactoring ui.log() API, it was really annoying that uisetup() is actually an extsetup() the phase 1. Let's document that. I'm planning to add another uisetup() which is called per ui instance, though I can't think of a good name for it.
-
Yuya Nishihara authored
They are technically the same callback, called only once per process. The section name "ui setup" is confusing, so shouldn't be used.
-
Yuya Nishihara authored
I think it's better to include the API overview in core as we now have the internals section in our help system. Retrieved from the wiki, and formatted as reST. Several wiki links are removed since they are invalid in the help. The sections about example extension are removed at all as they seemed too verbose. https://www.mercurial-scm.org/wiki/WritingExtensions
-
- Nov 04, 2018
-
-
Yuya Nishihara authored
This is pretty basic implementation to support GUI progress bar.
-
Yuya Nishihara authored
Otherwise, GUI clients would have to parse the prompt text.
-
Yuya Nishihara authored
These attributes are important to provide a GUI prompt to user.
-
- Nov 08, 2018
-
-
Yuya Nishihara authored
This helps embedding '$' in the script.
-
- Jan 18, 2015
-
-
Yuya Nishihara authored
This provides a 'type' attribute to command-server clients, which seems more solid than relying on 'ui.<type>' labels. In future patches, type='progress' will be added to send raw progress information.
-
Yuya Nishihara authored
This is loosely based on the idea of the TortoiseHg's pipeui extension, which attaches ui.label to message text so the command-server client can capture prompt text, for example. https://bitbucket.org/tortoisehg/thg/src/4.7.2/tortoisehg/util/pipeui.py I was thinking that this functionality could be generalized to templating, but changed mind as doing template stuff would be unnecessarily complex. It's merely a status message, a simple serialization option should suffice. Since this slightly changes the command-server protocol, it's gated by a config knob. If the config is enabled, and if it's supported by the server, "message-encoding: <name>" is advertised so the client can stop parsing 'o'/'e' channel data and read encoded messages from the 'm' channel. As we might add new message encodings in future releases, client can specify a list of encoding names in preferred order. This patch includes 'cbor' encoding as example. Perhaps, 'json' should be supported as well.
-
- Nov 07, 2018
-
-
Yuya Nishihara authored
Spotted by the next patch.
-
- Jan 18, 2015
-
-
Yuya Nishihara authored
This will be set by the command server. See the next patch.
-
- Nov 10, 2018
-
-
Yuya Nishihara authored
I was confused how it's working while reviewing fb490d798be0, "share: reload repo after adjusting it in postshare()."
-
- Nov 11, 2018
-
-
durin42 authored
Differential Revision: https://phab.mercurial-scm.org/D5254
-
- Nov 10, 2018
-
-
Yuya Nishihara authored
-
Yuya Nishihara authored
Since 9aeb9e2d28a7, encoded filenames are filtered by the narrow matcher, which is clearly wrong.
-
Yuya Nishihara authored
This makes encoded filenames differ from the original names.
-
Matt Harbison authored
This reverts 1ea6772fb415.
-
Matt Harbison authored
This is useful in TortoiseHg for example, which has until recently just added all names in the `phasenames` list to the context menu that changes the phase. The ones not supported by the command would just error out.
-
- Nov 07, 2018
-
-
Boris Feld authored
We saw more of these a while back. Having more data available would be nice.
-
- Nov 10, 2018
-
-
Yuya Nishihara authored
-
- Nov 09, 2018
-
-
Martin von Zweigbergk authored
Upstream commit c5e6c1ba1c79 (hg: don't reuse repo instance after unshare(), 2018-09-12) poisoned the repo instance after unshare(). That made `hg unshare` fail with remotefilelog because we tried to close the fileserverclient after dispatch by accessing it via the repo. This patch fixes that by storing the reference to the fileserverclient at the beginning of dispatch. An analogous patch was sent for remotefilelog version in FB's hg-experimental as D5246. Differential Revision: https://phab.mercurial-scm.org/D5253
-