Skip to content
Snippets Groups Projects
  1. Oct 06, 2019
  2. Oct 05, 2019
    • Augie Fackler's avatar
      style: run a patched black on a subset of mercurial · 57875cf4
      Augie Fackler authored
      This applied black to the 20 smallest files in mercurial/:
      
          ls -S1 mercurial/*.py | tail -n20 | xargs black --skip-string-normalization
      
      Note that a few files failed to format, presumably due to a bug in my
      patch. The intent is to be able to compare results to D5064 with
      https://github.com/python/black/pull/826 applied to black.
      
      I skipped string normalization on this patch for clarity - in reality
      I think we'd want one pass without string normalization, followed by
      another to normalize strings (which is basically replacing ' with "
      globally.)
      
      # skip-blame mass-reformatting only
      
      Differential Revision: https://phab.mercurial-scm.org/D6342
      57875cf4
  3. Oct 04, 2019
  4. Oct 05, 2019
  5. Oct 04, 2019
  6. Oct 05, 2019
  7. Oct 06, 2019
  8. Oct 05, 2019
  9. Sep 30, 2019
  10. Oct 05, 2019
  11. Oct 04, 2019
  12. Oct 03, 2019
  13. Oct 01, 2019
    • Gregory Szorc's avatar
      setup: build extensions in parallel by default · f9d35f01
      Gregory Szorc authored
      The build_ext distutils command in Python 3.5+ has a "parallel"
      option that controls whether to build extensions in parallel. It
      is disabled by default (None) and can be set to an integer value
      for number of cores or True to indicate use all available CPU
      cores.
      
      This commit changes our build_ext command override to set
      "parallel" to True unless a value has been provided by the caller.
      
      On my machine, this makes `python setup.py build_ext` 1-4s faster.
      It is worth noting that at this time, each individual source file
      constituting the extension is still built serially. For Mercurial,
      this means that we can't build faster than the slowest-to-build
      extension, which is the zstd extension by a long shot. This means
      that setup.py is still not very efficient at utilizing multiple
      cores. But we're better than before.
      
      Differential Revision: https://phab.mercurial-scm.org/D6923
      
      # no-check-commit because of foo_bar naming
      f9d35f01
  14. Oct 04, 2019
  15. Oct 02, 2019
  16. Sep 09, 2019
Loading