Skip to content
Snippets Groups Projects
  1. Nov 06, 2018
  2. Nov 05, 2018
  3. Oct 19, 2018
  4. Nov 05, 2018
  5. Oct 03, 2018
    • Boris Feld's avatar
      perf: offer full details in perfrevlogwrite · 4dd7edeb3da9
      Boris Feld authored
      This will be useful for people who want to study the timing pattern more
      closely.
      4dd7edeb3da9
    • Boris Feld's avatar
      perf: introduce a perfrevlogwrite command · 164b2e77f9a5
      Boris Feld authored
      The command record times taken by adding many revisions to a revlog. Timing
      each addition, individually. The "added revision" are recreations of the
      original ones.
      
      To time each addition individually, we have to handle the timing and the
      reporting ourselves.
      
      This command is introduced to track the impact of sparse-revlog format on
      delta computations at initial storage time. It starts with the full text, a
      situation similar to the "commit". Additions from an existing delta are better
      timed with bundles.
      
      The complaints from `check-perf-code.py` are not relevant. We are accessing
      and "revlog" opener, not a repository opener.
      164b2e77f9a5
  6. Nov 06, 2018
  7. Nov 03, 2018
  8. Jan 18, 2015
    • Yuya Nishihara's avatar
      ui: label prompt and echo messages · d8997c5ce2ff
      Yuya Nishihara authored
      I'm going to add a dedicated command-server channel for status messages,
      which carries metadata alongside a message text. 'ui.*' label provides a
      hint how message text should be processed.
      d8997c5ce2ff
  9. Nov 03, 2018
  10. Nov 05, 2018
    • Boris Feld's avatar
      perf: fix perfrevlogrevisions --reverse · cbd251d479bb
      Boris Feld authored
      Currently, 'endrev' equals `len(revlog)`, a revision that does not exist.
      
      When asking for the reverse order, the arguments passed to xrange are
      `xrange(len(revlog), startrev)` which then crash.
      
      We need to offset 'endrev' by one so we don't crash anymore. Also, we offset
      'startrev' to ensure we get the same number of revisions with and without the
      `--reverse` option.
      
      Differential Revision: https://phab.mercurial-scm.org/D5228
      cbd251d479bb
  11. Nov 06, 2018
  12. Nov 05, 2018
    • Gregory Szorc's avatar
      localrepo: extract loading of hgrc files to standalone function · 473510bf0575
      Gregory Szorc authored
      Various 3rd party extensions supplement where per-repo config data
      lives. Looking at their sources, they resort to unorthodox means to
      inject the config data. And the way they do it is susceptible to
      corner cases. e.g. not processing automatic extension loads,
      not reacting to new or disabled extensions in configs, etc.
      
      This commit extracts the core logic of loading hgrc files into
      a standalone function so there is a clear function that can be
      monkeypatched to inject per-repo config data at repository open
      time.
      
      Differential Revision: https://phab.mercurial-scm.org/D5221
      473510bf0575
    • Martin von Zweigbergk's avatar
      revsets: make bookmark/named('re:nonexistent') not abort (issue6018) (BC) · 7ed611c60168
      Martin von Zweigbergk authored
      Foozy documented the differences between revsets branch(), tag(),
      bookmark(), and named() in eeb5d5ab14a6 (revset: raise RepoLookupError
      to make present() predicate continue the query, 2015-01-31). He seemed
      to want tag() to change behavior to not error out on non-matching
      regular expressions. I think it's instead bookmark() and named() that
      should not error out. So that's what this patch does.
      
      Differential Revision: https://phab.mercurial-scm.org/D5220
      7ed611c60168
  13. Nov 06, 2018
  14. Oct 31, 2018
    • Danny Hooper's avatar
      fix: add a config to abort when a fixer tool fails · 93bab80993f4
      Danny Hooper authored
      This allows users to stop and address tool failures before proceeding, instead
      of the default behavior of continuing to apply any tools that didn't fail. For
      example, a code formatting tool could fail if you have syntax errors, and you
      might want your repo to stay in its current state while you fix the syntax
      error before re-running 'hg fix'. It's conceivable that this would even be
      necessary for the correctness of some fixer tools across a chain of revisions.
      
      Differential Revision: https://phab.mercurial-scm.org/D5200
      93bab80993f4
  15. Nov 06, 2018
  16. May 22, 2018
  17. Nov 06, 2018
  18. Nov 05, 2018
  19. Nov 03, 2018
  20. Nov 04, 2018
    • Yuya Nishihara's avatar
      templater: compute revset lazily · d11e2c5b287e
      Yuya Nishihara authored
      This speeds up e.g. "{ifcontains(rev, revset('::.'), ...)}" in common cases
      where 'rev' is near the working parent.
      
      The templater API is ugly, but it helps here. 'f' can be either a generator
      or a function returning a generator.
      d11e2c5b287e
Loading