- Oct 10, 2018
-
-
Matt Harbison authored
This allows flag processors to be registered to specific repos in an extension by wrapping localrepo.resolverevlogstorevfsoptions(). I wanted to add the processors via a function on localrepo, but some of the places where the processors are globally registered don't have a repository available. This makes targeting specific repos in the wrapper awkward, but still manageable.
-
- Oct 12, 2018
-
-
Matt Harbison authored
This blew up launching any command if extdiff processed a tool with a regkey config.
-
- Oct 13, 2018
-
-
Yuya Nishihara authored
Here _() is practically an identity function, but we shouldn't pass in unicode to _().
-
Augie Fackler authored
To my surprise, the int() is required. Spotted by Mads when he reviewed D5063. Thanks! Differential Revision: https://phab.mercurial-scm.org/D5086
-
Martijn Pieters authored
Differential Revision: https://phab.mercurial-scm.org/D5079
-
Augie Fackler authored
# skip-blame just some b prefixing Differential Revision: https://phab.mercurial-scm.org/D5083
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5082
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5081
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5059
-
Augie Fackler authored
I'm stunned this open() call has survived this long without the b in the mode - it seems like it should have been a source of bugs somewhere... Differential Revision: https://phab.mercurial-scm.org/D5080
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5085
-
Mark Thomas authored
Differential Revision: https://phab.mercurial-scm.org/D5084
-
- Oct 12, 2018
-
-
Yuya Nishihara authored
AFAIK, it's caught only by "hg debugobsolete", so it's pretty much a programming error.
-
Yuya Nishihara authored
On Python 3, docstrings are converted back to utf-8 bytes, which practically disables the "if type(message) is pycompat.unicode" hack in gettext(). Let's add one more workaround for the Py3 path.
-
- Oct 13, 2018
-
-
Anton Shestakov authored
Let's replace experimental.spacemovesdown with a separate key: Enter, since it wasn't used for anything in crecord. Not sure if '\n' works on Windows though. nextsametype() strictly only moves to items of the same type as the current item. This, for example, allows to go over individual lines in a diff and skip hunk and file headers (which would toggle multiple lines).
-
Mark Thomas authored
Differential Revision: https://phab.mercurial-scm.org/D5078
-
Yuya Nishihara authored
Removes "b''" from help.
-
Yuya Nishihara authored
-
Augie Fackler authored
I added some `unzip -t` here and I *think* the only change is from Python 3 having more data in the zip file headers or something. Sigh. Differential Revision: https://phab.mercurial-scm.org/D5075
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5074
-
Augie Fackler authored
This function accepts both bytes and file-like objects. Differential Revision: https://phab.mercurial-scm.org/D5073
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5072
-
Gregory Szorc authored
This seems like a useful default behavior so tests run faster by default* * Except in special circumstances where the OS/filesystem doesn't scale well to many CPU cores (like APFS *cough* *cough*). Differential Revision: https://phab.mercurial-scm.org/D5071
-
Gregory Szorc authored
This seems like a useful output message to have. I also sneak in a change to lower the parallel process count if it is larger than the number of tests, as that makes no sense and output saying we're running more tests in parallel than there exists tests would be wonky. Differential Revision: https://phab.mercurial-scm.org/D5070
-
Yuya Nishihara authored
It's silly to splitlines() a joined string, but we don't care the performance here.
-
Martin von Zweigbergk authored
Internally at Google, we use narrowspecs with only rootfilesin-kind patterns. Sometimes there are thousands of such patterns (i.e. thousands of tracked directories). In such cases, it can take quite long to build and evaluate the resulting matcher. This patch optimizes matchers that have only patterns of rootfilesin so it instead of creating a regular expression, it matches the given file's directory against the set of directories. In a repo with ~3600 tracked directories, it takes about 1.35 s to build the matcher and 2.7 s to walk the dirstate before this patch. After, it takes 0.04 s to create the matcher and 0.87 s to walk the dirstate. It may be worthwhile to do similar optimizations for e.g. patterns of type "kind:", but that's not a priority for us right now. Differential Revision: https://phab.mercurial-scm.org/D5058
-
Augie Fackler authored
This results in slight output changes, but it's at least consistent between Python 2 and 3. Since the output is just bar graphs anyway, I'm content with the changes. Differential Revision: https://phab.mercurial-scm.org/D5063
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5062
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5055
-
- Oct 12, 2018
-
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5006
-
Augie Fackler authored
What a mess. Differential Revision: https://phab.mercurial-scm.org/D5005
-
Augie Fackler authored
The test now passes on Python 3. I'm going to do one follow-up where I'll adjust some grep calls to improve our checking of things on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5004
-
- Oct 13, 2018
-
-
Augie Fackler authored
All tests now pass. Differential Revision: https://phab.mercurial-scm.org/D5054
-
Augie Fackler authored
The big annoyance here was having to feed textwrap unicodes instead of bytes, but it all seems to work. Differential Revision: https://phab.mercurial-scm.org/D5053
-
Yuya Nishihara authored
Surprisingly, this fixes test-cache-abuse.t, which would generate a different revbranch cache if filtered set had no cache.
-
Yuya Nishihara authored
-
Mark Thomas authored
test-bookmarks-pushpull.t writes a temporary file in $TESTDIR instead of $TESTTMP. Make it use $TESTTMP instead. Differential Revision: https://phab.mercurial-scm.org/D5057
-
Pulkit Goyal authored
This makes test-pathconflicts-basic.t and test-origbackup-conflict.t passing on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5042
-
Pulkit Goyal authored
This makes the test pass on Python 3. # skip-blame because just b'' prefix. Differential Revision: https://phab.mercurial-scm.org/D5041
-
Pulkit Goyal authored
This makes test-close-head.t pass on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5040
-