Skip to content
Snippets Groups Projects
  1. Jun 08, 2020
  2. Jun 07, 2020
  3. May 28, 2020
  4. May 27, 2020
  5. May 23, 2020
  6. May 22, 2020
  7. May 21, 2020
  8. May 15, 2020
  9. May 18, 2020
    • Georges Racinet's avatar
      heptapod-ci: avoid reinstallation of Mercurial · 674b7740d22f
      Georges Racinet authored
      Because Mercurial is loaded through PYTHONPATH, it's not visible
      to pip (even if we'd set PYTHONPATH for the pip command), therefore
      that triggers download/build/install of an unrelated Mercurial
      version.
      674b7740d22f
  10. May 17, 2020
  11. May 18, 2020
  12. May 17, 2020
    • Georges Racinet's avatar
      py3-hgext3rd.heptapod: ported hg-git code · 3f2d996addc5
      Georges Racinet authored
      While we have plans to remove the auxiliary Git mirror repository
      used to expose content to the web app as soon as in Heptapod 0.14,
      we know that this won't be possible before a longer time for
      the repositories backing the wikis. Also this allows us to test
      with python3 earlier, and it's not completely excluded that 0.14 could
      support both Python 2 and Python 3.
      
      As a side note, the difference in representation of bytes string
      between the two Python versions force us to resort to assertions with
      poor style in doctests. We'll live with that.
      3f2d996addc5
  13. May 16, 2020
  14. May 20, 2020
    • Georges Racinet's avatar
      c1bbd8cb85a4
    • Georges Racinet's avatar
      py3: ported the WSGI wrapper · bbfcd3668ac0
      Georges Racinet authored
      This forced us to clean up the situation with HTTP error responses.
      
      - the status line now conforms to the common practice (no user level
        message)
      - the body (error details) is normalized to UTF-8. This gives us simpler
        code paths and the odds of outputting garbage are very low (complete assessment
        in the comment, keep in mind that we'll be supporting python2 for
        one or two months at most in Heptapod).
      bbfcd3668ac0
    • Georges Racinet's avatar
      py3: port of heptapod.hooks package · 17823c0c3207
      Georges Racinet authored
      In the case of `gitlab-mirror`, at this point the underlying command
      from `hgext3rd.heptapod` is not ported.
      17823c0c3207
  15. May 17, 2020
  16. May 16, 2020
    • Georges Racinet's avatar
      py3: making heptapod.gitlab compatible · 174c7508ba75
      Georges Racinet authored
      GitLab filesystem paths are enforced to be ASCII, see
      `app/validators/project_path_validator.rb` and
      `lib/gitlab/path_regex.rb`.
      
      The paradigm here is that output sent back to the caller
      will have to be as bytes, since we'll be in Mercurial code.
      
      The `format_` functions all take unicode strings as input,
      so that alignments are less wrong than with bytes.
      
      Mostly all of this is ASCII anyway at this point, but it doesn't
      harm to be somewhat ready for i18n in push messages.
      
      Overall, we prefer to have occasional `?` replacement marks
      rather than failed pushes (these can be business critical for
      our users).
      174c7508ba75
  17. May 20, 2020
    • Georges Racinet's avatar
      py3: port of testhelpers · c97c523cd00d
      Georges Racinet authored
      The conventions about incoming strings had to be made explicit,
      which led us to initiate a proper docstring for `LocalRepoWrapper`.
      
      Of course that doesn't mean that the convention is perfectly
      respected, but it can be considered a specification. We already
      have at least one case that needs conversions, to be handled when
      the need arises.
      c97c523cd00d
    • Georges Racinet's avatar
      py3: making heptapod extension installable · 9d1e1acae65b
      Georges Racinet authored
      This is the minimum so that Mercurial accepts to load it.
      In turn the heptapod extension is used as an example of how
      to load an extension in tests in `test_testhelpers`, so
      this intermediate change is needed to port testhelpers to
      Python3.
      
      Of course we should use another extension, perhaps one
      shipping with Mercurial so that testhelpers don't depend
      onto hgext3rd.heptapod any more, but that will be another
      day.
      9d1e1acae65b
  18. May 17, 2020
  19. May 18, 2020
  20. May 16, 2020
  21. May 19, 2020
Loading