This instance will be upgraded to Heptapod 0.21.0rc2 on 2021-04-16 at 11:00 UTC+2 (a few minutes of down time)

  1. 21 Jul, 2020 2 commits
    • Manuel Jacob's avatar
      tests: port from nosetests to pytest · d843f9a62e6e
      Manuel Jacob authored
      Nosetests is not actively developed anymore. Pytest is actively developed and
      has a much larger ecosystem around it.
      
      Two features of pytest are particularly helpful for us:
      
      Pytest captures stdio by redirecting at the file descriptor-level instead of
      replacing sys.stdout. This is required for Mercurial, as it has its own
      reference to stdout. Before with nosetests, most output was silently swallowed.
      
      Pytest offers the `ALLOW_UNICODE` and `ALLOW_BYTES` options for doctests, making
      it much easier to make our docstrings Python 2- and Python 3-compatiable.
      
      During this patch, it was attempted to leave the structure of the test code
      similar to before instead of converting everything to idiomatic pytest code.
      Luckily, pytest implements enough interoperability for most of our test code.
      d843f9a62e6e
    • Manuel Jacob's avatar
      tests: rename module-level setup function from `setup()` to `setup_module()` · a8cbf1129123
      Manuel Jacob authored
      Nosetests treats both the same way. Pytest only understands `setup_module()`.
      
      In addition, one `teardown()` was renamed to `teardown_module()`.
      a8cbf1129123
  2. 25 Aug, 2019 1 commit
  3. 23 Mar, 2019 1 commit
  4. 23 Jul, 2017 2 commits
  5. 22 Jul, 2017 1 commit
  6. 25 Sep, 2016 1 commit
  7. 21 Dec, 2014 1 commit
    • Yuya Nishihara's avatar
      tests: add attribute to filter out tests which require largefiles extension · b5cff78341df
      Yuya Nishihara authored
      Because largefiles wraps many functions statically, ManifestModelLargeFilesTest
      must be run in isolated environment.  Otherwise, subsequent tests would fail
      with AttributeError: 'mqrepo' object has no attribute '_lfstatuswriters'.
      
      Eventually, 'extensions' attribute can be used to set up .hgrc and 'mq' tests
      should also be isolated.
      b5cff78341df
  8. 04 Oct, 2014 1 commit
  9. 06 Feb, 2014 1 commit
    • Yuya Nishihara's avatar
      manifestmodel: do not ignore reload request of uncommitted changes (fixes #3595) · 699fdde0ec1c
      Yuya Nishihara authored
      Because workingctx has no real identity, "wctx1.node() == wctx2.node()" does
      not mean they are exactly the same.  So manifest model shouldn't ignore repeated
      setRev(None) or setRawContext(wctx) requests.
      
      Currently patchctx isn't affected by this problem because it lacks __eq__(),
      but the same can be said for patchctx in principle.  Though changes in
      patchctx can be detected by ctx.thgid(), I decided not to use it.  Eventually,
      we want to remove context and repository extensions.
      
      This fixes missing refresh after shelve/unshelve.
      
      --HG--
      branch : stable
      699fdde0ec1c
  10. 30 Jan, 2014 1 commit
  11. 12 Jan, 2014 1 commit
  12. 14 Dec, 2013 4 commits
  13. 30 Dec, 2013 1 commit
  14. 22 Dec, 2013 1 commit
  15. 24 Dec, 2013 1 commit
  16. 22 Dec, 2013 7 commits
  17. 19 Dec, 2013 1 commit
  18. 20 Dec, 2013 1 commit
  19. 19 Dec, 2013 1 commit
  20. 18 Dec, 2013 1 commit
    • Yuya Nishihara's avatar
      manifestmodel: fix subrepo status to compare to parent revision of main repo · 040fe18bc451
      Yuya Nishihara authored
      Because the statuses are displayed in the context of the main repository,
      it shouldn't show the changes from subrepo's parent revision.
      
      For example,
      
          M0 - M1 - M2  (main)
          :         :
          S0 ------ S1  (sub)
      
          rev  original  fixed
          ---  --------  --------
          @M2  S0::S1    S0::S1
          @M1  null::S0  S0::S0    <- wrong because M1 inclues no subrepo changes
          @M0  null::S0  null::S0
      040fe18bc451
  21. 19 Dec, 2013 1 commit
  22. 17 Dec, 2013 3 commits
  23. 18 Dec, 2013 1 commit
  24. 15 Dec, 2013 3 commits
  25. 16 Jun, 2012 1 commit