Skip to content
Snippets Groups Projects
  1. Oct 01, 2020
  2. Sep 28, 2020
  3. Sep 30, 2020
    • Raphaël Gomès's avatar
      rust: start plugging the dirstate tree behind a feature gate · 496537c9
      Raphaël Gomès authored
      The previous patch added the `dirstate-tree` feature gate to enable the two
      dirstate implementations to co-habit while the tree-based one gets better.
      
      This patch copies over the code that differs, be it because the algorithm
      changed or because the borrowing rules are different.
      
      Indeed, `DirstateTree` is not observationally equivalent to the std `HashMap` in
      the APIs we use: it does not have the `Entry` API (yet?) and its iterator
      returns owned values instead of references. This last point is because the
      implementation needs to be changed to a more clever and efficient solution.
      
      Differential Revision: https://phab.mercurial-scm.org/D9133
      496537c9
    • Raphaël Gomès's avatar
      rust: introduce `dirstate-tree` cargo feature · e604a3c0
      Raphaël Gomès authored
      This feature gates (at compile-time) the use of the newly-added dirstate tree.
      
      The motivation for this is that the dirstate tree is currently *very* slow;
      replacing the current hashmap-based dirstate is not a viable solution in terms
      of performance... and why would you be using the Rust implementation if not
      for performance?
      
      The feature will also help reviewers better understand the differences that
      will slowly appear as the dirstate tree gets better.
      
      Differential Revision: https://phab.mercurial-scm.org/D9132
      e604a3c0
    • Raphaël Gomès's avatar
      rust: fix formatting · 423f17f9
      Raphaël Gomès authored
      Maybe there is a small divergence in the nightly formatter? This didn't seem to
      trip the CI.
      
      Differential Revision: https://phab.mercurial-scm.org/D9131
      423f17f9
  4. Sep 23, 2020
  5. Sep 28, 2020
  6. Sep 25, 2020
    • Raphaël Gomès's avatar
      rust: add `dirstate_tree` module · b51167d7
      Raphaël Gomès authored
      Mercurial needs to represent the filesystem hierarchy on which it operates, for
      example in the dirstate. Its current on-disk representation is an unsorted, flat
      structure that gets transformed in the current Rust code into a `HashMap`.
      This loses the hierarchical information of the dirstate, leading to some
      unfortunate performance and algorithmic compromises.
      
      This module adds an implementation of a radix tree that is specialized for
      representing the dirstate: its unit is the path component. I have made no
      efforts to optimize either its memory footprint or its insertion speed: they're
      pretty bad for now.
      
      Following will be a few patches that modify the dirstate.status logic to use
      that new hierarchical information, fixing issue 6335 in the same swing.
      
      Differential Revision: https://phab.mercurial-scm.org/D9085
      b51167d7
  7. Jul 24, 2020
  8. Sep 24, 2020
  9. Sep 15, 2020
  10. Sep 11, 2020
  11. Sep 15, 2020
  12. Sep 09, 2020
    • Antoine Cezar's avatar
      rhg: add `--revision` argument to `rhg files` · 2f8227a1
      Antoine Cezar authored
      Add the option to list the tracked files of a revision given its number
      or full node id.
      
      Benched on a clone of moz-central
      where tip is 1671467:81deaa1a68ebb28db0490954034ab38ab269409d
      
      files -r 81deaa1a68ebb28db0490954034ab38ab269409d > out.txt
      hg  0m1.633s
      rhg 0m0.157s
      
      files -r 81deaa1a68ebb28db0490954034ab38ab269409d > /dev/null
      hg  0m0.415s
      rhg 0m0.143s
      
      Differential Revision: https://phab.mercurial-scm.org/D9015
      2f8227a1
  13. Sep 18, 2020
  14. Sep 09, 2020
  15. Sep 18, 2020
  16. Sep 09, 2020
  17. Sep 02, 2020
  18. Sep 23, 2020
Loading