Skip to content
Snippets Groups Projects
  1. Jan 04, 2023
    • Matt Harbison's avatar
      tests: drop `(py3 !)` output matching predicates · 950c3991
      Matt Harbison authored
      Presumably these were paired with `(no-py3 !)` at one point, but now they were
      unconditionally true.
      
      test-check-code.t required a couple of `(glob)` markers on the changed lines in
      test-lfs-serve-access.t, because of the `$LOCALIP` usage on those lines.  Not
      sure how those lines slipped through the checks previously.
      950c3991
  2. Jul 19, 2022
    • Matt Harbison's avatar
      run-tests: drop a workaround for python2 · a77c1375
      Matt Harbison authored
      The problem is only on python3, but the awkward handling was because python2
      didn't have this exception type.  I've sporadically seen it running in WSL, but
      no clue what it means.
      a77c1375
  3. Jan 04, 2023
  4. Jan 06, 2023
  5. Jan 05, 2023
  6. Jan 06, 2023
  7. Jan 05, 2023
  8. Jan 06, 2023
    • Matt Harbison's avatar
      typing: suppress a bunch of potential import-error cases in extensions · de9ffb82
      Matt Harbison authored
      As flagged by pytype locally.  Either the ImportError is locally handled, or the
      imported module was previously determined to be present by `hgave` (for the
      phabricator extension), or is handled by the `hgext.convert.subversion` module
      when imported (for the `hgext.convert.transport` module).
      de9ffb82
  9. Jan 05, 2023
    • Matt Harbison's avatar
      watchman: drop some py2 compat code · 139f7130
      Matt Harbison authored
      The `unicode` reference was being flagged by pytype, even though it was never
      evaluated on py3.  There's more that can be dropped and `compat.py` can probably
      be inlined if we don't care about minimizing the code changes from FB.  But I
      don't feel like dealing with that.
      139f7130
  10. Jan 04, 2023
  11. Dec 16, 2022
    • Jörg Sonnenberger's avatar
      hgweb: skip body creation of HEAD for most requests · fda5a4b8
      Jörg Sonnenberger authored
      The body is thrown away anyway, so this just wastes a lot of CPU time.
      In the case of /archive/, this skips manifest processing and the actual
      file archiving, resulting in a huge difference.
      
      The most tricky part here is skipping the Content-Length creation as it
      would indicate the output size for the corresponding GET request.
      fda5a4b8
  12. Jan 04, 2023
  13. Jan 03, 2023
  14. 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
Loading