- Apr 02, 2016
-
-
Robert Stanca authored
-
Robert Stanca authored
-
Robert Stanca authored
-
Robert Stanca authored
-
Robert Stanca authored
-
Robert Stanca authored
-
Robert Stanca authored
-
Robert Stanca authored
-
Robert Stanca authored
-
Robert Stanca authored
-
- Feb 29, 2016
-
-
Yuya Nishihara authored
This will be used by common alias functions introduced by future patches.
-
- Apr 01, 2016
-
-
Anton Shestakov authored
-
Maciej Fijalkowski authored
as explained in the commit, __len__ cannot do [x for x in self] because that can potentially call __len__ again, causing infinite recursion
-
- Mar 31, 2016
-
-
Maciej Fijalkowski authored
PyPy would sometime call __len__ at points where it things preallocating the container makes sense. Change the doctests so they're using generator expressions and not list comprehensions
-
- Mar 19, 2016
- Mar 23, 2016
-
-
liscju authored
Now its done silently, so unless user really knows what he is doing will be suprised to find that after update 'hg status' doesn't work. This commit makes also merge operation warns about missing parent when revision to merge exists only in the bundle.
-
- Mar 30, 2016
-
-
Maciej Fijalkowski authored
On pypy datetime and cProfile are modules written in Python, not in C. For the purpose of this test, just list them explicitely as builtins, which silences warnings about them being imported before stdlib modules.
-
- Mar 31, 2016
-
-
Anton Shestakov authored
RFC 4287 states that atom feeds must have an <updated> element, so let's add one even when repo doesn't have a single bookmark.
-
Anton Shestakov authored
Changes, branches and tags are already in revlog order on /summary, /branches and /tags, let's now make bookmarks be sorted by the same principle. It's more helpful to show more "recent" bookmarks on top. This will affect /bookmarks page in all styles, including atom, rss and raw, and also /summary page. Bookmarks are sorted using a (revision number, bookmark name) tuple.
-
Anton Shestakov authored
Let's do the same thing that /tags page does. It gets sorted tags and then if it needs the latest only, it just slices the first item from the list. Since it's a slice and not a min(), it doesn't throw an exception if the list is empty. This fixes HTTP 500 error from issue5022.
-
Anton Shestakov authored
Entries prepared in webutil.changelistentry() skip showing parents in the trivial case when there's only one parent and it's the previous revision. This doesn't work well for the json-log template, which is supposed to just dump raw data in an easy-to-parse format, so let's provide all parents as another keyword: allparents. Using a lambda function here means that the performance of templates that don't use allparents won't be affected (see 41957e50e109).
-
- Feb 29, 2016
-
-
Yuya Nishihara authored
It wasn't necessary to reconstruct the same tuple.
-
Yuya Nishihara authored
See the previous commit for why. These functions are also trivial.
-
Yuya Nishihara authored
Since I'm going to extract a common alias parser, I want to eliminate dependencies to the revset parsing rules. These functions are trivial, so we can go without them.
-
Yuya Nishihara authored
If tree is a tuple, it must have at least one element. Also the length of node tuple is guaranteed by the syntax elements. (e.g. 'func' must have 3 items.) This change will help inlining these trivial functions in future patches.
-
- Mar 30, 2016
-
-
timeless authored
-
timeless authored
-
timeless authored
-
timeless authored
1ad0ddf8cccc enabled lines that were not matched to be found later in cases of jitter. Unfortunately, in this model an optional line would always jitter to the end when it is not present. That is not ideal. It would be possible to do better, by queuing all writes until the end in case an optional line jitters, but for now, it is simpler to assume optional lines have a fixed place in the stream.
-
timeless authored
We require python2.6+
-
timeless authored
Before this, Python3 generated: b'skipped: unknown feature: not-py3k\n'
-
timeless authored
Without this, run-tests would generate: WARNING: Did not find prerequisite tool: b'python3.5'
-
- Mar 28, 2016
-
-
Pierre-Yves David authored
The feature has been moved into core behind the -i flag. We can safely deprecated the extension and point people at the --interactive flag in core.
-
- Mar 29, 2016
-
-
Katsunori FUJIWARA authored
Using decorator can localize changes for adding (or removing) a template function in source code. This patch also removes leading ":FUNC(ARG...):" part in help document of each function, because using templatefunc makes it useless. This patch uses not 'func' but 'templatefunc' as a decorator name, because the former is too generic one, even though the latter is a little redundant in 'templater.py'.
-
Katsunori FUJIWARA authored
This patch also adds loadfunction() to templater, because this combination helps to figure out how they cooperate with each other. Listing up loadfunction() in dispatch.extraloaders causes implicit loading template function at loading (3rd party) extension. This patch explicitly tests whether templatefunc decorator works as expected, because there is no bundled extension, which defines template function. This change requires that "templatefunc" attribute of (3rd party) extension is registrar.templatefunc or so.
-
Katsunori FUJIWARA authored
This patch also adds test for filter 'svnisodate' and 'svnutcdate' for safety, because there is no test using them, yet.
-
Katsunori FUJIWARA authored
Using decorator can localize changes for adding (or removing) a template filter function in source code. This patch also removes leading ":FILTER:" part in help document of each filters, because using templatefilter makes it useless. This patch uses not 'filter' but 'templatefilter' as a decorator name, because the former name hides Python built-in one, even though the latter is a little redundant in 'templatefilters.py'.
-
Katsunori FUJIWARA authored
This patch also adds loadfilter() to templatefilters, because this combination helps to figure out how they cooperate with each other. Listing up loadfilter() in dispatch.extraloaders causes implicit loading template filter functions at loading (3rd party) extension. This change requires that "templatefilter" attribute of (3rd party) extension is registrar.templatefilter or so.
-
- Feb 14, 2016
-
-
Yuya Nishihara authored
This function is now much simpler than before. Inlining small functions helps to extract a reusable alias processor.
-