- Feb 27, 2018
-
-
Gregory Szorc authored
We just marked the changegroupsubset command as only available to version 1 of the wire transports. There is a capability of the same name of the command that indicates if the command is supported. This commit teaches the capabilities code to conditionally emit that capability depending on whether the command is available for the current transport. Most test output is reordering of capabilities. But the limited tests for version 2 of the SSH protocol do show the capability disappearing. Differential Revision: https://phab.mercurial-scm.org/D2486
-
Gregory Szorc authored
Now that we have the ability to control which transports a wire protocol command is exposed on, let's put it to use. We flag the "branches," "changegroup," and "changegroupsubset" commands as only available on version 1. "branches" was used by the legacy discovery mechanism and was replaced by the "known" and "heads" commands. "changegroup" and "changegroupsubset" were replaced by "getbundle." "between" is also legacy. However, since it is used by the SSH handshake protocol, marking it as legacy is a bit more complicated and will be done in a later commit. Another nuanced issue with this change is that the server-advertised capabilities still list "changegroupsubset" despite the command not being available. This will be addressed in a subsequent commit. Differential Revision: https://phab.mercurial-scm.org/D2485
-
Gregory Szorc authored
The protocol handler needs to advertise itself as version 2 in order for a future feature to work. Differential Revision: https://phab.mercurial-scm.org/D2484
-
- Mar 02, 2018
-
-
Gregory Szorc authored
Currently, wire protocol commands are exposed on all transports. Some wire protocol commands are only supported or sensical on some transports. In the future, new wire protocol commands may only be available on new transports and legacy wire protocol commands may not be available to newer transports. This commit introduces a mechanism to allow @wireprotocommand to declare transports for which they should not be available. The mechanism for determining if a wire protocol command is available for a given transport instance has been taught to take this knowledge into account. To help implement this feature, we add a dict to wireprototypes declaring all wire transports and their metadata. There's probably room to refactor the constants used to identify the wire protocols. But that can be in another commit. Differential Revision: https://phab.mercurial-scm.org/D2483
-
Gregory Szorc authored
We previously prevented the creation of doublepipe instances when we're not supposed to automatically read from stderr. However, there were other automatic calls to read from stderr that were undermining this effort. This commit prevents all automatic reads from stderr from occurring when they are supposed to be disabled. Because stderr is no longer being read, we need to call "readavailable" from tests so stderr is read from. Test output changes because stderr is now always (manually) read after stdout. And, since sshpeer no longer automatically tends to stderr, no "remote: " messages are printed. This should fix non-deterministic test output. FWIW, doublepipe automatically reads from stderr when reading from stdout, so I'm not sure some of these calls to self._readerr() are even needed. Differential Revision: https://phab.mercurial-scm.org/D2571
-
- Feb 15, 2018
-
-
Boris Feld authored
With this commit, util.py lose 262 lines Note for extensions author, if this commit breaks your extension, you can pull the step-by-step split here to help you more easily pinpoint the renaming that broke your extension: hg pull https://bitbucket.org/octobus/mercurial-devel/ -r ac1f6453010d Differential Revision: https://phab.mercurial-scm.org/D2282
-
- Feb 08, 2018
-
-
Sangeet Kumar Mishra authored
Differential Revision: https://phab.mercurial-scm.org/D2095
-
- Mar 02, 2018
-
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D2569
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D2568
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D2567
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D2566
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D2565
-
Augie Fackler authored
# skip-blame just some b prefixes Differential Revision: https://phab.mercurial-scm.org/D2564
-
- Feb 25, 2018
-
-
Yuya Nishihara authored
.. api:: templatekw.showdict() and showlist() are deprecated in favor of new (context, mapping) API. Switch the keyword function to new API and use templatekw.compatdict() and compatlist() instead.
-
Yuya Nishihara authored
-
Yuya Nishihara authored
-
Yuya Nishihara authored
-
Yuya Nishihara authored
-
Yuya Nishihara authored
-
Yuya Nishihara authored
-
Yuya Nishihara authored
Prepares for switching to the new API.
-
Yuya Nishihara authored
Non-trivial changes will follow.
-
Yuya Nishihara authored
-
- Mar 02, 2018
-
-
Kevin Bullock authored
-
- Mar 01, 2018
-
-
Yuya Nishihara authored
Since we pass user strings directly to re.sub(), we can't avoid this warning without a BC.
-
- Mar 02, 2018
-
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D2563
-
Augie Fackler authored
# skip-blame just an r prefix Differential Revision: https://phab.mercurial-scm.org/D2562
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D2561
-
Augie Fackler authored
# skip-blame just a pair of r prefixes Differential Revision: https://phab.mercurial-scm.org/D2560
-
Augie Fackler authored
At this point we're down to two deprecation warnings (which I suspect are showing a bug in the test?) and one weird-looking failure. Progress! Differential Revision: https://phab.mercurial-scm.org/D2559
-
Augie Fackler authored
# skip-blame just b prefixes and a %d instead of %s Differential Revision: https://phab.mercurial-scm.org/D2558
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D2557
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D2556
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D2552
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D2549
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D2541
-
Yuya Nishihara authored
On Python 3, sys.stdout.buffer is backed by a separate buffer from sys.stdout. We should choose one.
-
Martin von Zweigbergk authored
Differential Revision: https://phab.mercurial-scm.org/D2548
-
Augie Fackler authored
What we had was fine on Python 2, but was slightly wrong on Python 3. This works on both. Differential Revision: https://phab.mercurial-scm.org/D2554
-
Augie Fackler authored
This doesn't ever happen on Python 2, but it's been a persistent pain on Python 3. Adding this helped produce some of my upcoming Python 3 fixes. Differential Revision: https://phab.mercurial-scm.org/D2553
-