Skip to content
Snippets Groups Projects
  1. May 18, 2017
  2. May 13, 2017
    • Martin von Zweigbergk's avatar
      match: replace match class by match function (API) · 24245b54
      Martin von Zweigbergk authored
      The matcher class is getting hard to understand. It will be easier to
      follow if we can break it up into simpler matchers that we then
      compose. I'm hoping to have one matcher that accepts regular
      (non-include) patterns, one for exact file matches, one that always
      matches (and maybe one that never does) and then compose them by
      intersection and difference.
      
      This patch takes a simple but important step towards that goal by
      making match.match() a function (and renaming the matcher class itself
      from "match" to "matcher"). The new function will eventually be
      responsible for creating the simple matchers and composing them.
      
      icasefsmatcher similarly gets a factory function (called
      "icasefsmatch"). I also moved the other factory functions nearby.
      24245b54
  3. May 21, 2017
  4. May 20, 2017
  5. May 21, 2017
    • Pierre-Yves David's avatar
      perf: allow to clear the obsstore in 'perfvolatilesets' · f90419a9
      Pierre-Yves David authored
      Loading the obsstore can become a large part of the time necessary to compute
      the important volatile set. We add a flag purging all known obsstore related
      data.
      
      For example, computing the 'bumped' set currently requires reading the full
      obsstore, so timing greatly differ with or without that flag:
      
      Without:
      ! bumped
      ! wall 0.005047 comb 0.000000 user 0.000000 sys 0.000000 (best of 446)
      
      With:
      ! bumped
      ! wall 0.512367 comb 0.510000 user 0.480000 sys 0.030000 (best of 15)
      f90419a9
    • Pierre-Yves David's avatar
      obsolete: test an important corner case · 4e51b2a9
      Pierre-Yves David authored
      Receiving markers affecting changeset we'll receives later is legitimate and
      not so uncommon case. Working on cache highlighted that this was only testing
      in the evolve extension. We add a test for this case in core.
      4e51b2a9
  6. May 19, 2017
  7. May 21, 2017
  8. May 18, 2017
    • Augie Fackler's avatar
      localrepo: extract bookmarkheads method to bookmarks.py · b9942bc6
      Augie Fackler authored
      This method is only used internally by destutil, and it's obscure
      enough I'm willing to just move it without a deprecation warning,
      especially since the new method has more constrained functionality.
      
      Design-wise I'd also like to get active bookmark handling folded into
      the bookmark store, so that we don't squirrel away an extra attribute
      for the active bookmark on the repository object.
      b9942bc6
  9. May 21, 2017
    • Augie Fackler's avatar
      tests: avoid renamed files triggering check-commit failures · 5db6d70f
      Augie Fackler authored
      I had to flag some revisions to not undergo check-commit scrutiny
      today to get the tests to pass, because they renamed files that had
      existing failures which we're not cleaning up. Let's prevent that in
      the future by using the extended git diff format to elide moved code.
      5db6d70f
  10. Apr 30, 2017
    • Jun Wu's avatar
      dispatch: make request accept additional reposetups · 71e735bd
      Jun Wu authored
      chg needs special logic around repo object creation (like, collecting and
      reporting repo path to the master server). Adding "reposetup" to
      dispatch.request seems to be an easy and reasonably clean way to allow that.
      71e735bd
  11. May 20, 2017
    • Gregory Szorc's avatar
      cext: extract revlog/index parsing code to own C file · 7d0c6950
      Gregory Szorc authored
      parsers.c is ~3000 lines and ~2/3 of it is related to the revlog
      index type.
      
      We already have separate C source files for directory utilities
      and manifest parsing. I think the quite unwieldy revlog/index
      parsing code should be self-contained as well.
      
      I performed the extraction as a file copy then removed content
      from both sides in order to preserve file history and blame.
      
      As part of this, I also had to move the hexdigit table and
      function to a shared header since it is used by both parsers.c
      and revlog.c
      
      # no-check-commit
      7d0c6950
  12. May 04, 2017
  13. May 14, 2017
  14. Aug 13, 2016
  15. Aug 12, 2016
    • Yuya Nishihara's avatar
      osutil: switch to policy importer · a9c71d57
      Yuya Nishihara authored
      "make clean" is recommended to test this change, though C API compatibility
      should be preserved.
      a9c71d57
    • Yuya Nishihara's avatar
      policy: add helper to import cext/pure module · 8e0327da
      Yuya Nishihara authored
      These functions are sysstr API since __import__() and getattr() hate byte
      strings on Python 3.
      
      There's a minor BC, which is ImportError will be raised if invalid
      HGMODULEPOLICY is specified. I think this is more desired behavior.
      
      We're planning to add strict checking for C API compatibility. This patch
      includes the stub for it.
      8e0327da
  16. May 20, 2017
  17. May 18, 2017
  18. Apr 26, 2017
Loading