Skip to content
Snippets Groups Projects
  1. Jan 06, 2025
  2. Aug 31, 2023
  3. Mar 03, 2022
  4. Jun 22, 2021
  5. Jun 18, 2021
    • Martin von Zweigbergk's avatar
      ui: add a context manager for silencing the ui (pushbuffer+popbuffer) · 7a430116f639
      Martin von Zweigbergk authored
      We often silence the ui by calling `ui.pushbuffer()` followed (a later
      in the code) by `ui.popbuffer()`. These places can be identified by
      the fact that they ignore the output returned from
      `ui.popbuffer()`. Let's create a context manager for these cases, to
      avoid repetition, and to avoid accidentally leaving the ui silent on
      exceptions. I deliberately called the new function `silent()` instead
      of `buffered()`, because it's just an implementation detail that it
      uses `pushbuffer()` and `popbuffer()`. We could later optimize it to
      not buffer the output.
      
      Differential Revision: https://phab.mercurial-scm.org/D10884
      7a430116f639
  6. Mar 06, 2020
  7. Oct 06, 2019
  8. Dec 15, 2016
  9. Oct 22, 2016
  10. Sep 29, 2016
    • Philippe Pepiot's avatar
      perf: add asv benchmarks · cff0f5926797
      Philippe Pepiot authored
      Airspeed velocity (ASV) is a python framework for benchmarking Python packages
      over their lifetime. The results are displayed in an interactive web frontend.
      
      Add ASV benchmarks for mercurial that use contrib/perf.py extension that could
      be run against multiple reference repositories.
      
      The benchmark suite now includes revsets from contrib/base-revsets.txt with
      variants, perftags, perfstatus, perfmanifest and perfheads.
      
      Installation requires asv>=0.2, python-hglib and virtualenv
      
      This is part of PerformanceTrackingSuitePlan
      https://www.mercurial-scm.org/wiki/PerformanceTrackingSuitePlan
      cff0f5926797
Loading