- Oct 05, 2016
-
-
Mathias De Mare authored
It's currently not possible to commit with a changeset topic like 'bash_completion'. This change fixes that.
-
- Oct 08, 2016
-
-
Simon Farnsworth authored
This is the last place that doesn't respect conflict labels in merge output. Teach subrepos to use subrepo merge output too.
-
- Oct 07, 2016
-
-
Augie Fackler authored
Fixes issues on Python 3, wherein docstrings are unicodes. Shouldn't break anything on Python 2.
-
- Oct 03, 2016
-
-
Jun Wu authored
The "load" method does too many things: on-demand import and check version. This patch moves the import logic out from "load" so it could be wrapped to change the import behavior, for example, chg will use it to pre-import extensions.
-
- Oct 07, 2016
-
-
Augie Fackler authored
These don't exist in Python 3, and this ends up looking a little more explicit to Martijn and me anyway.
-
Augie Fackler authored
-
Augie Fackler authored
-
Augie Fackler authored
This resolves some Python 3 weirdness.
-
Augie Fackler authored
sys.version is a string, and shouldn't be compared against a tuple for version comparisons. This was always true, so we were never disabling gc on 2.6. >>> (2, 7) >= '2.7' True >>> (2, 6) >= '2.7' True
-
Pulkit Goyal authored
.iteritems() don't exist in Python 3 world. Used the transformer to replace .iteritems() to .items()
-
Pulkit Goyal authored
There is a case and more can be present where these functions have multiple arguments. Our transformer used to handle the first argument, so added a loop to handle more arguments if present.
-
Pulkit Goyal authored
encoding.encoding is bytes, we need to pass it to encode() which accepts unicodes in py3, so used pycomapt.sysstr() Also this can't be done using transformer as that only transforms the string values not variables.
-
- Oct 01, 2016
-
-
Anton Shestakov authored
It wasn't immediately clear if it's supposed to look for "search" in "thing" or "thing" in "search".
-
- Oct 03, 2016
-
-
Gábor Stefanik authored
-
Gábor Stefanik authored
These will be made different in case of grafts by another patch in this series.
-
Gábor Stefanik authored
-
Gábor Stefanik authored
-
- Oct 01, 2016
-
-
Yuya Nishihara authored
That's no longer valid since the revision 0 may be hidden. Bypass validating the existence of '0' and filter it by spanset.
-
Yuya Nishihara authored
So we can pass m=0 to _makerangeset() even if the revision 0 is hidden. Hidden revisions are filtered by spanset.
-
- Sep 12, 2016
-
-
Maciej Fijalkowski authored
-
- Oct 03, 2016
-
-
Gregory Szorc authored
Before, if performing a clone+share from a repo that was itself using shared storage, the share code would copy paths.default from the underlying repo being shared, not from the source given by the user. This patch teaches hg.clonewithshare to resolve paths.default and pass it to share so it can be written to the hgrc accordingly.
-
- Oct 01, 2016
-
-
Jun Wu authored
Before this patch, the "lines" function inside "annotate" returns 1 for empty text (''). This patch makes it 0. Because the function should match mdiff.splitnewlines (used by mdiff.allblocks), or s.splitlines (used at the end of the "annotate" method). Both len(mdiff.splitnewlines('')) and len(''.splitlines(True)) are 0. This issue was discovered while testing fastannotate [1]. I could not find a test case to reveal this issue. However in theory this could reduce memory usage a little bit, and avoids surprises when people are touching this area in the future. [1]: https://bitbucket.org/facebook/hg-experimental/commits/525b3b98e93a
-
Pulkit Goyal authored
imp.is_frozen() doesnot accepts bytes on Python 3. It does accept both bytes and strings on Python 2.
-
Pulkit Goyal authored
__slots__ doesnot accepts bytes on Python 3.
-
Augie Fackler authored
-
- Sep 30, 2016
-
-
Yuya Nishihara authored
Before, "#foo" paths made hg crash. We've moved the #fragment parsing at 64fbd0de9773, but we shouldn't set path to None too early. This patch just removes the "if not path:" block since that's checked a few lines later.
-
- Sep 28, 2016
-
-
Yuya Nishihara authored
-
Yuya Nishihara authored
This can't be moved to pycompat.py since we need encoding.tolocal() to build bytes dict from unicode os.environ.
-
Yuya Nishihara authored
Otherwise tolocal() and fromlocal() wouldn't work on Python 3. Still tolocal() can't make a valid localstr object because localstr inherits str, but it can return some object without raising exceptions. Since Py3 bytes() behaves much like bytearray() than str() of Py2, we can't simply do s/str/bytes/g. I have no good idea to handle str/bytes divergence.
-
Yuya Nishihara authored
This will be used to convert encoding.encoding to a str acceptable by Python 3 functions. The source encoding is changed to "latin-1" because encoding.encoding can have arbitrary bytes. Since valid names should consist of ASCII characters, we don't care about the mapping of non-ASCII characters so long as invalid names are distinct from valid names.
-
- Oct 01, 2016
-
-
durin42 authored
-
- Sep 28, 2016
-
-
Yuya Nishihara authored
We compare version_info at several places, which seems enough to define a constant.
-
- Oct 01, 2016
-
-
durin42 authored
-
- Sep 29, 2016
-
-
Pierre-Yves David authored
These messages do not show up when one use '--debug'. This is quite confusing so we clarify the situation next to the 'ui.debug' call.
-
Pierre-Yves David authored
The "next" value was wrong. When 'hgext.NAME' is not found we now search for 'hgext3rd.NAME'.
-
- Aug 30, 2016
-
-
Mateusz Kwapich authored
Updating dirstate by simply adding and dropping files from self._map doesn't keep the other maps updated (think: _dirs, _copymap, _foldmap, _nonormalset) thus introducing cache inconsistency. This is also affecting the debugstate tests since now we don't even try to set correct mode and mtime for the files because they are marked dirty anyway and will be checked during next status call.
-
- Sep 28, 2016
-
-
Martin von Zweigbergk authored
It looks like this became unnecessary in e767f5aba810 (histedit: fix preventing strips during histedit, 2015-04-04).
-
- Sep 14, 2016
-
-
Augie Fackler authored
That is, help gets tweaked thus: global options ([+] can be repeated): -v --[no-]verbose enable additional output Other proposals have included: global options ([+] can be repeated, options marked [?] are boolean flags): -v --verbose[?] enable additional output and global options ([+] can be repeated, options marked [^] are boolean flags): -v --verbose[^] enable additional output which avoid the unfortunate visual noise in this patch. In this version's favor, it's consistent with what I'm used to seeing in man pages and similar documentation venues.
-
- Sep 27, 2016
-
-
Philippe Pepiot authored
-
- Sep 26, 2016
-
-
Yuya Nishihara authored
If the parent module isn't a package, all valid attributes must be obtained from it. We can raise ImportError early if any attributes not found.
-