Skip to content
Snippets Groups Projects
  1. Apr 02, 2016
  2. Feb 29, 2016
  3. Apr 01, 2016
  4. Mar 31, 2016
  5. Mar 19, 2016
  6. Mar 23, 2016
  7. Mar 30, 2016
    • Maciej Fijalkowski's avatar
      tests: fix builtin module test on pypy · 806d260c
      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.
      806d260c
  8. Mar 31, 2016
    • Anton Shestakov's avatar
      hgweb: generate last change date for an empty atom-bookmarks feed (issue5022) · 80e92247
      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.
      80e92247
    • Anton Shestakov's avatar
      hgweb: sort bookmarks in revlog order of their nodes · 06ae7a6d
      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.
      06ae7a6d
    • Anton Shestakov's avatar
      hgweb: sort bookmarks early · ca0c0ca3
      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.
      ca0c0ca3
    • Anton Shestakov's avatar
      hgweb: add parents to json-log (issue5074) · 94494031
      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).
      94494031
  9. Feb 29, 2016
  10. Mar 30, 2016
  11. Mar 28, 2016
  12. Mar 29, 2016
    • Katsunori FUJIWARA's avatar
      templater: use templatefunc to mark a function as template function · efa19220
      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'.
      efa19220
    • Katsunori FUJIWARA's avatar
      registrar: add templatefunc to mark a function as template function (API) · cc103bd0
      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.
      cc103bd0
    • Katsunori FUJIWARA's avatar
      keyword: use templatefilter to mark a function as template filter · 9a6fa1d9
      Katsunori FUJIWARA authored
      This patch also adds test for filter 'svnisodate' and 'svnutcdate' for
      safety, because there is no test using them, yet.
      9a6fa1d9
    • Katsunori FUJIWARA's avatar
      templatefilters: use templatefilter to mark a function as template filter · 11f623b5
      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'.
      11f623b5
    • Katsunori FUJIWARA's avatar
      registrar: add templatefilter to mark a function as template filter (API) · 6b3b958d
      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.
      6b3b958d
  13. Feb 14, 2016
Loading