1. 12 Dec, 2020 1 commit
  2. 08 Dec, 2020 2 commits
    • Pulkit Goyal's avatar
      debugcommands: introduce command to upgrade/downgrade shares · fcaf13895656
      Pulkit Goyal authored
      In past few months, we have developed functionality to share requirements and
      configs of share-source and a way to upgrade repository from old format to
      share-safe format using `debugupgraderepo` command.
      
      However there is still no way to upgrade the shares as `debugupgraderepo` does
      not support upgrading that.
      
      Having share-safe rolled out in existing setup is quite important and hence we
      need a way to upgrade existing shares once share-source upgrades.
      
      This patch introduces a new debug command `debugsharesafe` which can be used to
      upgrade or downgrade shares.
      
      Functionality to upgrade shares to use the new method is the last thing left in
      the whole work.
      
      Differential Revision: https://phab.mercurial-scm.org/D9570
      fcaf13895656
    • Pulkit Goyal's avatar
      scmutil: improve documentation of writereporequirements() · 593ac40c5820
      Pulkit Goyal authored
      This makes it easier to understand the difference between `writerequires()`
      and `writereporequirements()`.
      
      Differential Revision: https://phab.mercurial-scm.org/D9568
      593ac40c5820
  3. 14 Dec, 2020 3 commits
  4. 12 Dec, 2020 4 commits
  5. 29 Dec, 2020 1 commit
    • Raphaël Gomès's avatar
      hg-core: add basic config module · 95d6f31e88db
      Raphaël Gomès authored
      The config module exposes a `Config` struct, unused for now.
      
      It only reads the config file local to the repository, but handles all valid
      patterns and includes/unsets.
      It is structured in layers instead of erasing by reverse order of precedence,
      allowing us to transparently know more about the config for debugging purposes,
      and potentially other things I haven't thought about yet.
      
      This change also introduces `format_bytes!` to `hg-core`.
      
      Differential Revision: https://phab.mercurial-scm.org/D9408
      95d6f31e88db
  6. 14 Dec, 2020 4 commits
  7. 20 Dec, 2020 1 commit
  8. 01 Dec, 2020 1 commit
  9. 26 Dec, 2020 2 commits
  10. 28 Dec, 2020 1 commit
  11. 19 Dec, 2020 2 commits
  12. 18 Dec, 2020 1 commit
    • Yuya Nishihara's avatar
      procutil: assign pseudo file object if sys.stdout/stderr is missing · a04c03b0678e
      Yuya Nishihara authored
      This basically simulates the Python 2 behavior. If libc stdio were used,
      these file objects would be available and raise EBADF. There is subtle
      difference between py2 and py3, but I think py3 behavior (i.e. exit 255)
      is more correct.
      
      "if" conditions are adjust so that they look similar to
      dispatch.initstdio().
      a04c03b0678e
  13. 19 Dec, 2020 1 commit
  14. 18 Dec, 2020 2 commits
  15. 19 Dec, 2020 4 commits
  16. 14 Dec, 2020 1 commit
    • Simon Sapin's avatar
      rust: introduce Repo and Vfs types for filesystem abstraction · 8a4914397d02
      Simon Sapin authored
      This is similar to the corresponding Python classes.
      
      Repo represents a repository and knows the path to the `.hg` directory,
      the `store` directory, and the working directory.
      Separating these will enable supporting the share extension.
      
      A Vfs is created from a Repo for one of these three directories.
      It has filesystem access APIs that take a relative std::path::Path
      as a parameter.
      
      Differential Revision: https://phab.mercurial-scm.org/D9596
      8a4914397d02
  17. 19 Dec, 2020 1 commit
  18. 24 Apr, 2020 1 commit
  19. 17 Dec, 2020 1 commit
  20. 14 Dec, 2020 3 commits
  21. 13 Dec, 2020 3 commits