Skip to content
Snippets Groups Projects
  1. Apr 26, 2019
  2. May 03, 2019
    • Sietse Brouwer's avatar
      gendoc: guarantee that all commands were processed · 037a97d6
      Sietse Brouwer authored
      The new logic renders the commands belonging to each category in turn.
      Commands with an unregistered category are at risk of getting skipped
      because their category is not in the list. By comparing the list of all
      commands to a log of processed commands, we can detect commands with
      unregistered categories and fail with an error message.
      
      Differential Revision: https://phab.mercurial-scm.org/D6327
      037a97d6
  3. Apr 26, 2019
  4. Apr 25, 2019
  5. Apr 04, 2019
  6. Mar 03, 2019
    • Gregory Szorc's avatar
      setup: define build_doc command · d80d4892
      Gregory Szorc authored
      Currently, various processes for packaging Mercurial state to
      manually invoke `make -C doc` in order to generate the documentation.
      This Makefile merely invokes `gendoc.py` and `runrst` to produce
      man pages and HTML pages.
      
      Not all environments may have the ability to easily run
      Makefiles. Windows is notably in this set.
      
      This commit ports the man page and HTML generation logic from
      doc/Makefile to setup.py. We introduce a new build_doc command
      which generates documentation by calling gendoc.py and runrst.
      The documentation can now be built via pure Python by running
      `python setup.py build_doc`.
      
      We don't implement dependency tracking because IMO it is more
      effort than it is worth.
      
      We could potentially remove the duplicated functionality in
      doc/Makefile. But I'm not sure what all is depending on it. So
      I plan to keep it around.
      
      # no-check-commit because forced foo_bar function names
      
      Differential Revision: https://phab.mercurial-scm.org/D6063
      d80d4892
  7. Feb 04, 2019
  8. Jan 24, 2019
  9. Dec 22, 2018
  10. Dec 20, 2018
  11. Dec 19, 2018
    • Matt Harbison's avatar
      py3: byteify docchecker · 9bfbb9fc
      Matt Harbison authored
      The exception is printed as str because I'm too lazy to convert it and the
      pieces.
      9bfbb9fc
    • Matt Harbison's avatar
      py3: byteify gendoc.py · e10641c4
      Matt Harbison authored
      This is mostly b'' prefixing, with some cargoculting of help.py to get around
      `textwrap.dedent()` and __doc__ string requirements.
      e10641c4
  12. Oct 12, 2018
  13. Oct 13, 2018
  14. Sep 06, 2018
  15. Oct 10, 2017
    • muxator's avatar
      build: make install in "/doc" failed if the destination dir contained spaces · b584ed1b
      muxator authored
      This and the following commits try to add the necessary quoting in the build
      scripts to make the process more robust.
      
      The target for now is rendering "make deb" successful even when the base
      directory contains spaces (eg. "/opt/mercu rial").
      The build process should succeed without scattering files in spurious
      directories (eg.: "/opt/mercu/usr/bin/hg").
      b584ed1b
  16. May 28, 2017
  17. May 13, 2017
  18. Oct 22, 2016
  19. Oct 07, 2016
  20. May 14, 2016
  21. Jun 20, 2016
    • Katsunori FUJIWARA's avatar
      check-code: detect "missing _() in ui message" more exactly · 844f7288
      Katsunori FUJIWARA authored
      Before this patch, "missing _() in ui message" rule overlooks
      translatable message, which starts with other than alphabet.
      
      To detect "missing _() in ui message" more exactly, this patch
      improves the regexp with assumptions below.
      
        - sequence consisting of below might precede "translatable message"
          in same string token
      
          - formatting string, which starts with '%'
          - escaped character, which starts with 'b' (as replacement of '\\'), or
          - characters other than '%', 'b' and 'x' (as replacement of alphabet)
      
        - any string tokens might precede a string token, which contains
          "translatable message"
      
      This patch builds an input file, which is used to examine "missing _()
      in ui message" detection, before '"$check_code" stringjoin.py' in
      test-contrib-check-code.t, because this reduces amount of change churn
      in subsequent patch.
      
      This patch also applies "()" instead of "_()" on messages below to
      hide false-positives:
      
        - messages for ui.debug() or debug commands/tools
          - contrib/debugshell.py
          - hgext/win32mbcs.py (ui.write() is used, though)
          - mercurial/commands.py
            - _debugchangegroup
            - debugindex
            - debuglocks
            - debugrevlog
            - debugrevspec
            - debugtemplate
      
        - untranslatable messages
          - doc/gendoc.py (ReST specific text)
          - hgext/hgk.py (permission string)
          - hgext/keyword.py (text written into configuration file)
          - mercurial/cmdutil.py (formatting strings for JSON)
      844f7288
  22. May 16, 2016
  23. May 12, 2016
  24. May 07, 2016
    • Sean Farley's avatar
      hg-ssh: copy doc string to man page · 7b52cb38
      Sean Farley authored
      This corrects a warning from lintian that we're shipping an executable without
      a man page. Since there is a doc string in the text, let's use that for the man
      page.
      7b52cb38
  25. Apr 16, 2016
  26. Jan 12, 2016
  27. Mar 03, 2016
  28. Feb 11, 2016
    • Katsunori FUJIWARA's avatar
      doc: translate from :hg:`help config.SECTION` to a valid link to hgrc.5.html · 18c6b271
      Katsunori FUJIWARA authored
      Before this patch, ":hg:`help config.SECTION`" in online help text is
      translated to a link to "hg.1.html#config.SECTION" in HTML
      unintentionally.
      
      This patch translates from :hg:`help config.SECTION` in online help
      text to a valid link to "hgrc.5.html#SECTION" in HTML.
      
      This patch ignores element(s) under "SECTION" (e.g. "ITEM" of
      ":hg:`help config.SECTION.ITEM`"), because there is no way to refer
      directly to it in HTML, yet.
      18c6b271
    • Katsunori FUJIWARA's avatar
      doc: translate from :hg:`help config` to a valid link to hgrc.5.html · 63eae465
      Katsunori FUJIWARA authored
      Before this patch, ":hg:`help config`" in online help text is
      translated to a link to "hg.1.html#config" in HTML, even though actual
      "hg help config" shows not help for "hg config" command but "config"
      help topic, and all of current ":hg:`help config`" expects the latter.
      
      This patch translates from ":hg:`help config`" in online help text to
      a link to "hgrc.5.html" in HTML as expected.
      
      This patch also allows ":hg:`help -c COMMAND`" style to link
      "hg.1.html#COMMAND" for readability.
      63eae465
  29. Feb 10, 2016
    • Katsunori FUJIWARA's avatar
      docchecker: use indentation of 4 spaces · c00f67c1
      Katsunori FUJIWARA authored
      This is fixing for 'must indent 4 spaces' check-code rule.
      
      check-code has overlooked this, because a file isn't recognized as one
      to be checked (this problem is fixed by subsequent patch).
      c00f67c1
    • Katsunori FUJIWARA's avatar
      docchecker: remove naked except clause · 72b02b49
      Katsunori FUJIWARA authored
      This is fixing for 'naked except clause' check-code rule.
      
      check-code has overlooked this, because a file isn't recognized as one
      to be checked (this problem is fixed by subsequent patch).
      72b02b49
  30. Jan 18, 2016
Loading