Skip to content
Snippets Groups Projects
  1. Feb 17, 2023
    • Pierre-Yves David's avatar
      dirstate: handle missing backup file on restoration · 5fb2546d
      Pierre-Yves David authored
      This is the stable counter part to e358f6e0e50e.
      
      Since 6.4 will stop writing undo.dirstate in some case (actually… at all), a
      transaction created with 6.4 and recover/rolledback with 6.3 need to work to a
      certain degreee. This changeset add the necessary bits so that we don't get a
      traceback from 6..3 in this cases.
      5fb2546d
  2. Feb 14, 2023
    • Matt Harbison's avatar
      tag: disallow tagging the working directory · 4fc6b423
      Matt Harbison authored
      It's kinda silly, but a clear error message is better than a stacktrace about
      subscripting `None` when trying to generate the default commit message.  I'm
      surprised that `.revsingle(..).node()` returns None instead of `nodemod.wdirid`,
      but now there's a test to catch if this changes.
      4fc6b423
  3. Feb 16, 2023
    • Pierre-Yves David's avatar
      test: fix the flakyness in test-remotefilelog-local.t · 983e2db1
      Pierre-Yves David authored
      I now get about 80% of my `test-chg` CI run that fails on flakyness in this
      tests.
      
      It turns out this is only ambiguous status that end up doing file download. So…
      calling status early will do that potential download separately and the calls we
      scrutinize during that test will be just fine.
      983e2db1
  4. Feb 03, 2023
  5. Jan 30, 2023
    • Pierre-Yves David's avatar
      setup: treat error output and non-zero return code differently · ac93876e
      Pierre-Yves David authored
      Choking on Mercurial's stderr mean armless warning can derails the whole install
      process. We do like to be able to issue warning to people so we stop considering
      any stderr is a fatal mistake.
      
      This allow us to actually boostrap a version of Mercurial without loosing to
      many sanity point. For example in case where evolve is not loaded, something
      that happens when the recorded version is malformatted. Creating a wonderful
      ouroboros.
      ac93876e
    • Pierre-Yves David's avatar
      setup: make the version computation process more resistant · 8d390a13
      Pierre-Yves David authored
      The tag fetching might return and empty string¹, from there everything derails
      quickly. As setup tools becomes more picky about version format we make the
      whole seems a bit more robust.
      
      The resulting version will be obviously weird, but at least it will actually
      install itself.
      
      [1] This is a problem we will address in the next changesets.
      8d390a13
    • Matt Harbison's avatar
      bundlerepo: enforce the requirements declared by the underlying repository · 84680c00
      Matt Harbison authored
      Previously, `hg log -r 'bundle()' -R bundle.hg` was failing for me when run from
      source, complaining about an unknown parent, when the system installed `hg`
      didn't.  Some debugging showed the index was 0 length.  It turned out that I
      didn't have the C extensions compiled, which a simple `hg log -r .` was able to
      indicate.  The problem being that the RequirementError got handled by RepoError,
      which uses an empty directory as a fallback to process the bundle.
      84680c00
  6. Jan 28, 2023
  7. Jan 09, 2023
  8. Jan 25, 2023
  9. Dec 06, 2022
  10. Jan 23, 2023
    • Raphaël Gomès's avatar
      contrib: adjust heptapod CI flavor sizes · d00ac86f
      Raphaël Gomès authored
      Our CI currently runs on a number of different runners, some of which are run
      by Clever Cloud.
      
      By setting this environement variable, we're asking for a smaller size runner
      for our smaller jobs, which puts less load on the Clever Cloud infrastructure,
      while not affecting our overall pipeline times.
      d00ac86f
  11. Jan 12, 2023
  12. Jan 10, 2023
  13. Jan 13, 2023
  14. Jan 12, 2023
  15. Jan 06, 2023
    • Matt Harbison's avatar
      convert: stop passing str to the dateutil API in darcs · 05b329cb
      Matt Harbison authored
      I'm sure there's a bunch more stuff in here that's broken, but this was flagged
      by pytype.
      05b329cb
    • Matt Harbison's avatar
      sparse: fix a py2 based usage of `map()` · 2b8ead6b
      Matt Harbison authored
      In a local pytype run, this fixes:
      
          File "/mnt/c/Users/Matt/hg/hgext/sparse.py", line 386, in debugsparse:
              unsupported operand type(s) for item retrieval: 'fcounts: Iterator[int]' and '0: int' [unsupported-operands]
            No attribute '__getitem__' on 'fcounts: Iterator[int]'
          File "/mnt/c/Users/Matt/hg/hgext/sparse.py", line 387, in debugsparse:
              unsupported operand type(s) for item retrieval: 'fcounts: Iterator[int]' and '1: int' [unsupported-operands]
            No attribute '__getitem__' on 'fcounts: Iterator[int]'
          File "/mnt/c/Users/Matt/hg/hgext/sparse.py", line 388, in debugsparse:
              unsupported operand type(s) for item retrieval: 'fcounts: Iterator[int]' and '2: int' [unsupported-operands]
            No attribute '__getitem__' on 'fcounts: Iterator[int]'
      2b8ead6b
  16. Jan 05, 2023
    • Matt Harbison's avatar
      histedit: byteify the help for the multifold action · e90767a7
      Matt Harbison authored
      While there's some allowance for str in `_()`, it's commented to be for "goofy
      unicode docstrings in test", so no idea how well that works, but it should at
      least come back as bytes.  With HGPLAIN, however, the str isn't touched and is
      returned as-is, so this seems like a real bug.
      e90767a7
  17. Jan 09, 2023
  18. Jan 04, 2023
  19. Jan 03, 2023
  20. Dec 06, 2022
    • Matt Harbison's avatar
      packaging: add dependencies to the PyOxidizer build on macOS · 3d7bf111
      Matt Harbison authored
      Otherwise, we get a bunch of test failures for missing things like pygments, or
      tests skipped entirely.  The input file is a copy/paste from the equivalent
      Windows file, but with dulwich, pygit2, and pytest-vcr commented out because
      the build process errors out with them, flagging them as incompatible with
      loading from memory.  I have no idea if that's actually true or not, because
      I've noticed that if I don't `make clean` after every build, the next build
      flags the watchman stuff as incompatible with loading from memory.
      
      The remaining failures are:
      
          Failed test-alias.t: output changed
          Failed test-basic.t: output changed
          Failed test-check-help.t: output changed
          Failed test-commit-interactive.t: output changed
          Failed test-extension.t: output changed
          Failed test-help.t: output changed
          Failed test-i18n.t: output changed
          Failed test-log.t: output changed
          Failed test-qrecord.t: output changed
          Failed test-share-safe.t: output changed
      
      Most of the issues seem related to loading help for disabled extensions from
      `hgext.__index__`, namely the full extension help being unavailable, not being
      able to resolve what commands are provided by what extension, and not having the
      command level help available.
      
      test-log.t, test-commit-interactive.t, and test-i18n.t look like i18n (or lack
      thereof) issues.
      
      test-basic.t is just odd:
          @@ -55,7 +55,7 @@
           On Python 3, stdio may be None:
      
             $ hg debuguiprompt --config ui.interactive=true 0<&-
          -   abort: Bad file descriptor (no-rhg !)
          +   abort: response expected
              abort: response expected (rhg !)
             [255]
             $ hg version -q 0<&-
      3d7bf111
    • Matt Harbison's avatar
    • Matt Harbison's avatar
      tests: conditionalize test output for in-filesystem pyoxidizer resources · 6a3549a0
      Matt Harbison authored
      The in-memory pyoxidizer builds apparently behave as expected.
      6a3549a0
    • Matt Harbison's avatar
      hghave: add predicates for embedded and filesystem pyoxidizer resources · a2356e15
      Matt Harbison authored
      There are a handful of tests with different output between the two flavors of
      pyoxidizer builds (like the location of the modules and templates), and a few
      others that avoid `known-bad-output` cases with the embedded resources that
      shouldn't cause the tests to fail.
      a2356e15
  21. Dec 05, 2022
Loading