Skip to content
Snippets Groups Projects
  1. Sep 17, 2019
  2. Sep 15, 2019
  3. Sep 14, 2019
    • Matt Harbison's avatar
      tests: stabilize test-fix.t on Windows · a2dffe68b4ea
      Matt Harbison authored
      `pwd` prints /tmp/... style paths, not C:\... needed for $TESTTMP to be
      substituted.
      
      In the final test, for whatever reason, Windows was missing EOL in the files and
      printing:
      
          [wdir] changedlines: printf: warning: ignoring excess arguments, starting
             with 'printf'
      
      even though it was trying to run:
      
          printf "Line ranges:\n"; printf "2 through 2\n";
      
      I tried wrapping both :command and :linerange in `sh -c "..."`, and while that
      fixed the missing EOL, it missed the "2 through 2" output.
      
      Differential Revision: https://phab.mercurial-scm.org/D6852
      a2dffe68b4ea
  4. Sep 16, 2019
    • Gregory Szorc's avatar
      zstandard: vendor python-zstandard 0.12 · 69de49c4e39c
      Gregory Szorc authored
      The upstream source distribution from PyPI was extracted. Unwanted
      files were removed.
      
      The clang-format ignore list was updated to reflect the new source
      of files.
      
      test-repo-compengines.t was updated to reflect a change in behavior
      of the zstd library.
      
      The project contains a vendored copy of zstandard 1.4.3. The old
      version was 1.3.8. This should result in some minor performance wins.
      
      # no-check-commit because 3rd party code has different style guidelines
      
      Differential Revision: https://phab.mercurial-scm.org/D6858
      69de49c4e39c
  5. Sep 15, 2019
  6. Sep 14, 2019
  7. Sep 11, 2019
  8. Sep 13, 2019
  9. Sep 10, 2019
  10. Sep 09, 2019
  11. Sep 10, 2019
  12. Sep 11, 2019
  13. Sep 09, 2019
    • Connor Sheehan's avatar
      hgweb: fix websub regex flag syntax on Python 3 · 6ccf539aec71
      Connor Sheehan authored
      The `websub` config section for hgweb is broken under Python 3
      when using regex flags syntax (ie the optional `i` in the example
      from `hg help config.websub`:
      
          patternname = s/SEARCH_REGEX/REPLACE_EXPRESSION/[i]
      
      Flags are pulled out of the specified byte-string using a regular
      expression, and uppercased. The flags are then iterated over and
      passed to the `re` module using `re.__dict__[item]`, to get the
      object attribute of the same name from the `re` module. So on Python
      2 if the `il` flags are passed, this transition looks like:
      
          `'il'` -> `'IL'` -> `'I'` -> `re.__dict__['I']` -> `re.I`
      
      However on Python 3, these are bytes objects. When we iterate over
      a bytes object in Python 3, instead of getting the individual characters
      in the string as string objects of length one, we get the integer \
      value corresponding to that byte. So the same transition looks like:
      
          `b'il'` -> `b'IL'` -> `73` -> `re.__dict__[73]` -> `KeyError`
      
      This commit fixes the type mismatch by converting the bytes to a
      system string before iterating over each element to pass to `re`.
      The transition will now look like:
      
          `b'il'` -> `u'IL'` -> `u'I'` -> `re.__dict__[u'I']` -> `re.I`
      
      In addition we expand `test-websub.t` to cover the regex flag case
      (for both the `websub` section and `interhg`).
      
      Differential Revision: https://phab.mercurial-scm.org/D6788
      6ccf539aec71
    • Augie Fackler's avatar
      merge with stable · f059d6ffcdf0
      Augie Fackler authored
      f059d6ffcdf0
  14. Sep 07, 2019
  15. Sep 09, 2019
  16. Sep 07, 2019
  17. Dec 17, 2018
  18. Sep 06, 2019
  19. Aug 15, 2019
  20. Sep 07, 2019
  21. Sep 08, 2019
    • Matt Harbison's avatar
      uncommit: add options to update to the current user or current date · 66048f6b5d0d
      Matt Harbison authored
      These are also from the evolve extension's version of uncommit.
      
      I tried adding validation that both forms of user or date can't be specified at
      the same time, but that fails because these show up in `opts` with a None value
      whether or not the option was given on the command line.  Presumably that means
      the conditional in `resolvecommitoptions` could be simplified.  But this is how
      both evolve and MQ handle it.
      
      Differential Revision: https://phab.mercurial-scm.org/D6828
      66048f6b5d0d
Loading