- Nov 06, 2018
-
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5232
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5236
-
- Nov 05, 2018
-
-
Boris Feld authored
The option controls if we'll test the provided delta first. This is the current default behavior for unbundle.
-
Boris Feld authored
This source will use the stored delta.
-
Boris Feld authored
This source will use the smallest of the possible diff against parent.
-
Boris Feld authored
This source will use a diff against p2 if it exists and fall back to p1 otherwise.
-
Boris Feld authored
This source will use a diff against p1 in all case.
-
- Oct 19, 2018
-
-
Boris Feld authored
We want to test performance associated witch various way to add a new revision. They will be specified using this new argument.
-
- Nov 05, 2018
-
-
Boris Feld authored
This provide a simple way to get an overview of the total performance.
-
- Oct 03, 2018
-
-
Boris Feld authored
This will be useful for people who want to study the timing pattern more closely.
-
Boris Feld authored
The command record times taken by adding many revisions to a revlog. Timing each addition, individually. The "added revision" are recreations of the original ones. To time each addition individually, we have to handle the timing and the reporting ourselves. This command is introduced to track the impact of sparse-revlog format on delta computations at initial storage time. It starts with the full text, a situation similar to the "commit". Additions from an existing delta are better timed with bundles. The complaints from `check-perf-code.py` are not relevant. We are accessing and "revlog" opener, not a repository opener.
-
- Nov 06, 2018
-
-
Augie Fackler authored
Two patches landed in parallel and had a semantic conflict. This resolves the mess and leaves us with passing tests. Differential Revision: https://phab.mercurial-scm.org/D5231
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5230
-
- Nov 03, 2018
-
-
Yuya Nishihara authored
This option can be used to isolate structured output from status messages. For now, "stdio" (stdout/err pair) and "stderr" are supported. In future patches, I'll add the "channel" option which will send status messages to a separate command-server channel with some metadata attached, maybe in CBOR encoding. This is a part of the generic templating plan: https://www.mercurial-scm.org/wiki/GenericTemplatingPlan#Sanity_check_output .. api:: Status messages may be sent to a dedicated stream depending on configuration. Don't use ``ui.status()``, etc. as a shorthand for conditional writes. Use ``ui.write()`` for data output.
-
Yuya Nishihara authored
This allows keeping references to fout/ferr/fin which are updated when these properties are changed. See the next patch.
-
- Jan 18, 2015
-
-
Yuya Nishihara authored
I'm going to add a dedicated command-server channel for status messages, which carries metadata alongside a message text. 'ui.*' label provides a hint how message text should be processed.
-
- Nov 03, 2018
-
-
Yuya Nishihara authored
I'm going to add a config knob to redirect any status messages to stderr. This function helps to switch underlying file objects. # no-check-commit because of existing write_err() function
-
Yuya Nishihara authored
-
Yuya Nishihara authored
This helps adding a dedicated stream for status/error messages. I don't want to add _write*() function per stream.
-
Yuya Nishihara authored
See the subsequent patches for why. The "if" block in _writenobuf() will be removed soon.
-
- Nov 05, 2018
-
-
Boris Feld authored
Currently, 'endrev' equals `len(revlog)`, a revision that does not exist. When asking for the reverse order, the arguments passed to xrange are `xrange(len(revlog), startrev)` which then crash. We need to offset 'endrev' by one so we don't crash anymore. Also, we offset 'startrev' to ensure we get the same number of revisions with and without the `--reverse` option. Differential Revision: https://phab.mercurial-scm.org/D5228
-
- Nov 06, 2018
-
-
Boris Feld authored
I don't have the need anymore for the change in D1701 nor the time to investigate the changes on all supported Windows platforms. I import the stuff I learned on D1701 in the `runbgcommand` so the next people working on it can starts from there. Differential Revision: https://phab.mercurial-scm.org/D5229
-
- Nov 05, 2018
-
-
Gregory Szorc authored
Various 3rd party extensions supplement where per-repo config data lives. Looking at their sources, they resort to unorthodox means to inject the config data. And the way they do it is susceptible to corner cases. e.g. not processing automatic extension loads, not reacting to new or disabled extensions in configs, etc. This commit extracts the core logic of loading hgrc files into a standalone function so there is a clear function that can be monkeypatched to inject per-repo config data at repository open time. Differential Revision: https://phab.mercurial-scm.org/D5221
-
Martin von Zweigbergk authored
Foozy documented the differences between revsets branch(), tag(), bookmark(), and named() in eeb5d5ab14a6 (revset: raise RepoLookupError to make present() predicate continue the query, 2015-01-31). He seemed to want tag() to change behavior to not error out on non-matching regular expressions. I think it's instead bookmark() and named() that should not error out. So that's what this patch does. Differential Revision: https://phab.mercurial-scm.org/D5220
-
- Nov 06, 2018
-
-
Danny Hooper authored
This name was always inaccurate, since the config accepts any pattern. Hopefully so few people use this right now that it won't matter, but there will now be a warning if the old config name is used. Differential Revision: https://phab.mercurial-scm.org/D5226
-
- Oct 31, 2018
-
-
Danny Hooper authored
This allows users to stop and address tool failures before proceeding, instead of the default behavior of continuing to apply any tools that didn't fail. For example, a code formatting tool could fail if you have syntax errors, and you might want your repo to stay in its current state while you fix the syntax error before re-running 'hg fix'. It's conceivable that this would even be necessary for the correctness of some fixer tools across a chain of revisions. Differential Revision: https://phab.mercurial-scm.org/D5200
-
- Nov 06, 2018
-
-
Boris Feld authored
Slicing a sparse delta chain can be expensive. We now benchmark the associated time.
-
Boris Feld authored
Before this change, chunks were always read in a single block. Even in the sparse-read/sparse-revlog case. This gave a false view of the performance and could lead to memory consumption issue.
-
Boris Feld authored
Otherwise the -T json output is invalid.
-
- May 22, 2018
-
-
Boris Feld authored
We use the variable multiple times and we might use it even more in the future. We use a temporary variable instead.
-
- Nov 06, 2018
-
-
Rodrigo Damazio Bovendorp authored
Python 3 recommends detecting OSs with the prefix of the platform, but we were comparing the full string for macOS. We also didn't have Linux detection, which is convenient for extensions to use (rather than have some OSs detected by hg and some by the extension). Reference: https://docs.python.org/3/library/sys.html#sys.platform Differential Revision: https://phab.mercurial-scm.org/D5227
-
- Nov 05, 2018
-
-
Augie Fackler authored
# skip-blame b prefixes and pycompat.long, nothing remotely interesting Differential Revision: https://phab.mercurial-scm.org/D5223
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5222
-
- Nov 03, 2018
-
-
Yuya Nishihara authored
I think the cost of color labeling is negligible compared to the I/O syscalls. Let's simply wrap the whole write() function so that we can eliminate _write() and _write_err() in later changeset.
-
Yuya Nishihara authored
-
Yuya Nishihara authored
This should be cheaper in space than applying labels for each message.
-
Yuya Nishihara authored
_write() and _write_err() will be replaced with fout.write() and ferr.write() respectively. This is the first step.
-
Yuya Nishihara authored
I'm thinking of adding an option to send status messages to stderr (or a dedicated command-server channel) so that structured output (e.g. JSON) would never be interleaved with non-formatter output. A unified write() interface helps to do that.
-
Yuya Nishihara authored
The progress bar has to be cleared when we start writing some data to the output stream. Let's make it always triggered immediately before switching by _colormode, so that we can easily factor out helper functions.
-
- Nov 04, 2018
-
-
Yuya Nishihara authored
This speeds up e.g. "{ifcontains(rev, revset('::.'), ...)}" in common cases where 'rev' is near the working parent. The templater API is ugly, but it helps here. 'f' can be either a generator or a function returning a generator.
-