Skip to content
Snippets Groups Projects
  1. Jun 08, 2023
  2. Jun 05, 2023
  3. Jun 08, 2023
  4. Jun 07, 2023
  5. Apr 25, 2023
  6. Jun 05, 2023
  7. Jun 01, 2023
  8. May 31, 2023
  9. Apr 20, 2023
  10. May 04, 2023
  11. May 02, 2023
    • Pierre-Yves David's avatar
      backup: fix issue when the backup end up in a different directory · a445194f
      Pierre-Yves David authored
      Because of store encoding, we might end up with the backup in a different
      directory than the initial copy (for example if the backup path make it cross
      the 120 char limit).
      
      This can create crash, especially since 6.4 where backup are used during revlog
      split.
      
      Making sure the directory exists fixes these crash We added a test covering this
      case.
      
      Strictly speaking, this has always been broken, however the new code in 6.4
      triggers it more easily.
      a445194f
    • Pierre-Yves David's avatar
      vfsproxy: inherit the `createmode` attribute too · d1d458fb
      Pierre-Yves David authored
      It is an important part of the API when creating directory. We will need it in
      the next changeset.
      d1d458fb
    • Pierre-Yves David's avatar
      revlog: test more complex file pattern for revlog split · f930af43
      Pierre-Yves David authored
      There have been a report of failure while splitting revlog. The file name
      involved was important. The pattern involved here are not problematic, but it
      help to setup the machinery to test multiple files, the actual fix and
      problematic file will arrive in a later changeset.
      f930af43
    • Raphaël Gomès's avatar
      repo-upgrade: write new requirement before upgrading the dirstate · b4b1791f
      Raphaël Gomès authored
      This will prevent a small race condition where another hg process still
      believes the repo is dirstate-v1 during the upgrade process.
      
      This is good to have, but it is not a proper fix for the underlying problem.
      There is code that assumes a requirement means a usage, e.g. having the
      `generaldelta` requirement would imply *all* revlogs to use general delta,
      but it's not true, it simply means that the repository advertises to the
      client it needs to understand `generaldelta` in order to read the repo.
      
      In the case of the dirstate, having the requirement *technically* should always
      be the same as using dirstate-v2, since there is only one dirstate and
      requirements should be as minimal as possible. However, we should not assume
      this and make the code more robust in a future patch (series).
      b4b1791f
  12. Apr 26, 2023
  13. Apr 25, 2023
    • Matt Harbison's avatar
      fix: highlight the required configuration and behavior of the fixer tools · f4ff5558
      Matt Harbison authored
      The problem is that `hg help fix` didn't mention *how* to configure the tools,
      and while I knew that `{rootpath}` existed in the configuration, I missed that
      the tools require reading content from stdin.  (I configured `gofmt` to use
      `{rootpath}`, and that had the effect of squashing all changes in a file at `.`
      into the first commit and emptying that content from its descendants.)
      
      Basically all this does is put a pointer in the default (command level) help to
      the extension level help that mentions the configuration, and moves the
      extension level help that documents reading from stdin and writing to stdout to
      the top to give it more prominence.  The last sentence is adjusted a bit to
      reflect the new location.
      f4ff5558
  14. Apr 18, 2023
  15. Apr 19, 2023
  16. Apr 18, 2023
  17. Apr 19, 2023
    • Pierre-Yves David's avatar
      delta-find: never do anything fancy when general delta is off · 02325712
      Pierre-Yves David authored
      Without general delta, the only option is to do a delta against the previous
      revision in the revlog, or to do a full snapshot. So no need to dive into the
      more complicated logic.
      
      This prevent Mercurial to misbehave when applying remote deltas when
      `pulled-delta-reuse-policy` was set to "try-base" or "forced" and would produce
      and store invalid deltas.
      
      We add an associated tests to make sure this scenario is covered by tests.
      
      There are more code to cleanup after this, but I what to keep the fixing patch
      simple.
      02325712
    • Pierre-Yves David's avatar
      delta-find: assume the target-rev if not specified · ca1522fe
      Pierre-Yves David authored
      This will be useful in the next patch, but I am putting it in its own commit to
      make sure we can easily bisect any subtle side effect. (none are expected, but
      still)
      ca1522fe
Loading