- Oct 25, 2017
-
-
Yuya Nishihara authored
This seems a bit hacky, but works well. There should be no reason that static-http repo had to load dirstate. Initially I tried to proxy os.stat() call through vfs so that statichttpvfs could hook it, but there wasn't a good error value which the statichttpvfs could return to get around the util.filestat issue.
-
Yuya Nishihara authored
This provides some confidence on files that should be loadable over HTTP. Hopefully it will prevent future bugs.
-
Yuya Nishihara authored
The logfile option was unused, so it was okay until now.
-
- Oct 24, 2017
-
-
Kevin Bullock authored
If we're going to use the user's installed and configured hg command (which we do since 8b20338b989e), we should prevent devel-warn messages from interfering with locating it.
-
Kevin Bullock authored
HGRCPATH is already set in localhgenv().
-
- Oct 20, 2017
-
-
Kevin Bullock authored
-
- Oct 23, 2017
-
-
muxator authored
"can only specify one of -C/--clean, -c/--check, or -m/merge" becomes "can only specify one of -C/--clean, -c/--check, or -m/--merge"
-
- Oct 04, 2017
-
-
muxator authored
The short options "-c" and "-C" may be confusing for a novice reading the documentation. Let's try to be more explicit, also mentioning the equivalent long options ("--check" and "--clean") in the comments.
-
- Oct 21, 2017
-
-
Yuya Nishihara authored
If the legacy pager extension is enabled, a pager is started through repo.ui at dispatch._runcommand(). After that, mqcommand() creates a qrepo with a fresh repo.baseui, at which point pager information was lost and another pager would be spawned by the modern pager interface. This is a minimal workaround for the problem.
-
Yuya Nishihara authored
This is the common pattern seen in the other registrar classes.
-
Yuya Nishihara authored
-
- Oct 20, 2017
-
-
Joe Blaylock authored
-
Kevin Bullock authored
-
Kevin Bullock authored
-
- Aug 05, 2017
-
-
Yuya Nishihara authored
This is alternative workaround to D1198, originally spotted by the earlier version of the releasenotes extension.
-
- Oct 20, 2017
-
-
Yuya Nishihara authored
-
- Oct 19, 2017
-
-
Boris Feld authored
The parts generator can return a callback to handle server reply. We should propagate the return for correctness.
-
Kevin Bullock authored
# no-check-commit because default contains new vendored code
-
Denis Laxalde authored
As noted in the comment, this should not happen as removed files (the cause of fctx2 being None) are caught earlier.
-
Denis Laxalde authored
I.e. abort when the pattern corresponds to a removed file, as done with bare file patterns.
-
Denis Laxalde authored
Currently, specifying both a line-range pattern and a bare file pattern results in an AND operation whereas we probably want an OR so that bare file patterns are like a line-range pattern with all lines specified. So, until this works as expected, we disable this.
-
Denis Laxalde authored
This is more consistent with the followlines() revset.
-
- Oct 18, 2017
-
-
Denis Laxalde authored
When a file is binary patch.trydiff() would yield None for 'hunkrange'. Handle this case in the hunksfilter() callback. Add tests with and without diff.git option as binary handling differs depending on this option's value.
-
- Oct 17, 2017
-
-
muxator authored
Reverts 5aac617a028d and replaces it with a more general solution. - works for both rpm and deb - sidesteps eventual problems with local extensions that have nothing to do with the build process (hg-git, for example, fails with version 4.4 because dedab036215d removed peerrepository, and hg-git still uses it as of 0.8.9)
-
- Oct 19, 2017
-
-
Boris Feld authored
Effect-flags config was in flight while the previous evolve config renaming was written. Now that both landed, gather effect-flags in experimental.evolution like the others evolve-related configurations. Differential Revision: https://phab.mercurial-scm.org/D1197
-
Boris Feld authored
Like the previous patch, replace obsfate by obsolete in default mapfile. Differential Revision: https://phab.mercurial-scm.org/D1190
-
Boris Feld authored
Yuja's comment on the original obsfate about how we would translate obsfate and the recent discussions about exposing users to new concepts and names lead have led me to think that 'obsfate' should be treated as internal jargon. End- users should not be aware of obsfate, so we replace 'obsfate' by 'obsolete' in changeset_printer. It will be easier to understand for end-users, easier to translate and closer to the original Evolve obsfate output. I'm aware it's extremely late in the cycle but I think it's an UX improvement for the end-users. Differential Revision: https://phab.mercurial-scm.org/D1189
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D1196
-
- Oct 18, 2017
-
-
Paul Morelle authored
An empty entry in the revlog may happen for two reasons: - when the file is empty, and the revlog stores a snapshot; - when there is a merge and both parents were identical. `hg debugindex -m | awk '$3=="0"{print}' | wc -l` gives 1917 of such entries in my clone of pypy, and 113 on my clone of mercurial. These empty revision may be located at the end of a sparse chain, and in some special cases may lead to read relatively large amounts of data for nothing.
-
Jun Wu authored
`dirstate._nonnormalset` has been moved to `dirstate._map.nonnormalset` by 60927b19ed65 (dirstate: move nonnormal and otherparent sets to dirstatemap) and is guaranteed to be existed. Let's update fsmonitor code to use the new `nonnormalset`. Thix fixed a perf regression that slows down `hg status` by 0.5 seconds in one of our production repos. Differential Revision: https://phab.mercurial-scm.org/D1184
-
- Oct 19, 2017
-
-
Martin von Zweigbergk authored
Differential Revision: https://phab.mercurial-scm.org/D1188
-
Martin von Zweigbergk authored
While at it, switch to set literal syntax. Differential Revision: https://phab.mercurial-scm.org/D1187
-
- Oct 18, 2017
-
-
Martin von Zweigbergk authored
Once in a while, test-nothing.t finished before test-failure.t or test-failure-copy.t (I haven't checked which one actually gets run first). Since there already are two tests that will fail in the same way, just run those two instead so the diff will be reproducible and not timing-dependent. The test case was added in 9a20f53e436f (run-tests: handle --jobs and --first gracefully, 2014-10-09), and I have checked that backing that out results in two failures being printed. Note that the summary may still include multiple tests even if --first is given, it's just that the diff is only printed for the first failure. Differential Revision: https://phab.mercurial-scm.org/D1186
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D1183
-
Augie Fackler authored
Fixes hghave on Python 3. Differential Revision: https://phab.mercurial-scm.org/D1182
-
Augie Fackler authored
Fixes many tests on Python 3. Differential Revision: https://phab.mercurial-scm.org/D1181
-
Augie Fackler authored
Should fix the build failures on the Solaris builders. Differential Revision: https://phab.mercurial-scm.org/D1180
-
Pulkit Goyal authored
In obsmarker we can't store keys and values of more than 255 bytes in metadata. If we try to do so, ProgrammingError is raised. The note flag to amend stores the note in obsmetadata. If a user will try to store a larger note, he will encounter ProgrammingError which is wrong. We must error out early. Thanks to Yuya for warning about this. Differential Revision: https://phab.mercurial-scm.org/D1179
-
Jun Wu authored
chgserver.py is also checking the config and will get: devel-warn: accessing unregistered config item: 'commands.show.aliasprefix' at: mercurial/chgserver.py:109 if the config is not registered. Differential Revision: https://phab.mercurial-scm.org/D1178
-
Jun Wu authored
When `$CHGHG` is set, `$HG` is ignored by the chg client. Removing it from chg's sensitive environment list would avoid starting up servers unnecessarily when `$CHGHG` is the same while `$HG` is different. Differential Revision: https://phab.mercurial-scm.org/D1177
-