Skip to content
Snippets Groups Projects
  1. Nov 04, 2018
  2. Nov 08, 2018
  3. Jan 18, 2015
    • Yuya Nishihara's avatar
      ui: extract helpers to write message with type or label · 83dd8c63
      Yuya Nishihara authored
      This provides a 'type' attribute to command-server clients, which seems
      more solid than relying on 'ui.<type>' labels. In future patches,
      type='progress' will be added to send raw progress information.
      83dd8c63
    • Yuya Nishihara's avatar
      commandserver: add experimental option to use separate message channel · 054d0fcb
      Yuya Nishihara authored
      This is loosely based on the idea of the TortoiseHg's pipeui extension,
      which attaches ui.label to message text so the command-server client can
      capture prompt text, for example.
      
      https://bitbucket.org/tortoisehg/thg/src/4.7.2/tortoisehg/util/pipeui.py
      
      I was thinking that this functionality could be generalized to templating,
      but changed mind as doing template stuff would be unnecessarily complex.
      It's merely a status message, a simple serialization option should suffice.
      
      Since this slightly changes the command-server protocol, it's gated by a
      config knob. If the config is enabled, and if it's supported by the server,
      "message-encoding: <name>" is advertised so the client can stop parsing
      'o'/'e' channel data and read encoded messages from the 'm' channel. As we
      might add new message encodings in future releases, client can specify a list
      of encoding names in preferred order.
      
      This patch includes 'cbor' encoding as example. Perhaps, 'json' should be
      supported as well.
      054d0fcb
  4. Nov 10, 2018
  5. Nov 07, 2018
  6. Nov 10, 2018
  7. Nov 09, 2018
  8. Nov 08, 2018
  9. Nov 07, 2018
  10. Nov 06, 2018
  11. Nov 07, 2018
  12. Oct 03, 2018
    • Boris Feld's avatar
      perf: introduce a perfrevlogwrite command · 164b2e77
      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.
      164b2e77
  13. Nov 06, 2018
  14. Nov 03, 2018
  15. Nov 05, 2018
  16. Nov 06, 2018
  17. Oct 31, 2018
    • Danny Hooper's avatar
      fix: add a config to abort when a fixer tool fails · 93bab809
      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
      93bab809
  18. Oct 24, 2018
  19. Oct 04, 2018
    • Augie Fackler's avatar
      remotefilelog: rename wireproto methods and remaining capabilities · 466dd4d7
      Augie Fackler authored
      This is a mess, in part because there should be more constants
      throughout. I know we typically do exp- instead of the x_ business in
      this change, but I also had to use this in some function names, so I
      figured until I can break that coupling I'd go with this. If it's too
      unpleasant during review, let me know and I can probably clean it up
      some more.
      
      # no-check-commit due to new foo_bar naming - too hard to avoid right now :(
      
      Differential Revision: https://phab.mercurial-scm.org/D5129
      466dd4d7
  20. Oct 16, 2018
  21. Oct 04, 2018
    • Augie Fackler's avatar
      remotefilelog: rip out lz4 support · e2a1584e
      Augie Fackler authored
      Some methods are left teased out so it's easier to build a migration
      extension from v1 packs to v2. I also anticipate those methods will be
      of use if we get around to adding configurable compression engines
      before we end up jettisoning packs.
      
      I think it would make sense to register one-shot `compress` and
      `decompress` methods on our compression engines in util.py, but
      indygreg mentioned that might not be straightforward.
      
      Differential Revision: https://phab.mercurial-scm.org/D4944
      e2a1584e
    • Augie Fackler's avatar
      remotefilelog: bump pack file formats to version 2 · 10c10da1
      Augie Fackler authored
      Drop support for format 0 and 1 packs. Version 2 will be different in
      that it'll use zlib compression instead of lz4, as the latter isn't
      really suitable for core.
      
      If I can make it work, I'll make compression engines pluggable, but
      the logic for handling these files is spread out enough it's a little
      tricky to get that right.
      
      Test changes are only due to pack files being renamed. The contents of
      the packs are the same.
      
      Differential Revision: https://phab.mercurial-scm.org/D4943
      10c10da1
    • Augie Fackler's avatar
      remotefilelog: avoid hard-coding pack names in tests · b6b2a3d2
      Augie Fackler authored
      I'm about to alter the pack format, which alters the content-addressed
      name of the pack file. In order to reduce my own confusion I found it
      helpful to use an ls | head pipeline since we always want to inspect
      the newest pack.
      
      Differential Revision: https://phab.mercurial-scm.org/D4942
      b6b2a3d2
Loading