Skip to content
Snippets Groups Projects
  1. Feb 22, 2025
  2. Jan 11, 2022
  3. Dec 08, 2021
  4. Nov 10, 2021
  5. Oct 19, 2021
    • Pierre-Yves David's avatar
      dirstate-v2: freeze the on-disk format · bf11ff22a9af
      Pierre-Yves David authored
      It seems the format as reached a good balance. With a core of new capabilities
      that motivated it initially and enough new feature and room for future
      improvement to be a clear progress we can set a milestone for.
      
      Having the format frozen will help the feature to get real life testing, outside
      of the test suite.
      
      The feature itself stay experimental but the config gains a new name to avoid
      people enable non-frozen version by default.
      
      If too many bugs are reported during the RC we might move the format back to
      experimental and drop its support in future version (in favor of a new one)
      
      Differential Revision: https://phab.mercurial-scm.org/D11709
      bf11ff22a9af
  6. Aug 03, 2021
    • sliquister's avatar
      tests: rely on dummyssh being the default · 9c4204b7f3e4
      sliquister authored
      This commit is exactly the result of running this command:
      
      sed -i -e 's! *\(-e \|--ssh \|--config ui.ssh=\)[ \"]*$PYTHON[ \"]*$\(RUN\|\)TESTDIR/dummyssh[\"]* *! !g' -e '/^[ >]*ssh *=[ "]*$PYTHON[ "]*$\(RUN\|\)TESTDIR\/dummyssh[ "]*$/d' -e 's/^\(  [$] .*[^ ]\) *$/\1/' *.t *.sh
      
      Sometimes the tests can be simplified further, but I think it's
      preferable to do the simplification separately.
      
      Differential Revision: https://phab.mercurial-scm.org/D11245
      9c4204b7f3e4
  7. May 19, 2021
  8. Jan 14, 2021
  9. Apr 06, 2021
  10. Dec 10, 2020
  11. Nov 23, 2020
  12. Jan 24, 2019
    • Boris Feld's avatar
      revlog: make sure we never use sparserevlog without general delta (issue6056) · 189e06b2d719
      Boris Feld authored
      We are getting user report where the delta code tries to use `sparse-revlog`
      logic on repository where `generaldelta` is disabled. This can't work so we
      ensure the two booleans have a consistent value.
      
      Creating this kind of repository is not expected to be possible the current bug
      report point at a clonebundle related bug that is still to be properly isolated
      (Yuya Nishihara seems to a have done it).
      
      Corrupting a repository to reproduce the issue is possible. A test using this
      method is included in this fix.
      189e06b2d719
  13. Nov 12, 2018
  14. Apr 04, 2018
    • Gregory Szorc's avatar
      simplestore: use a custom store for the simple store repo · c2c8962a9465
      Gregory Szorc authored
      Before, we used the default store, which was based on fncache
      and dotencode. After attempting to port tests to work with the
      simple store, I realized that fncache was more trouble than it is
      worth.
      
      This commit implements a proper store type for the simple repo -
      one that isn't based off fncache.
      
      This causes a number of new test failures because of tests
      expecting the full fncache store filename encoding. I may
      extend the store format in a subsequent commit to take the
      filename encoding parts of fncache that we can take
      (basically everything except hash encoding, since that isn't
      reversible). But for now, let's use encoded store.
      
      As part of this, we implement proper requirements support for
      repos created with the simple store. This should have been
      done from the beginning, as a requirement is needed to lock
      out clients that don't understand a storage format.
      
      A new hghave feature advertising the presence of fncache in repos
      has been added. Most tests touching the fncache are now conditional
      on that feature.
      
      Other tests have added the optional repo requirement to output.
      
      Differential Revision: https://phab.mercurial-scm.org/D3095
      c2c8962a9465
    • Gregory Szorc's avatar
      tests: remove superfluous config setting · db06c4bb2158
      Gregory Szorc authored
      format.usegeneraldelta defaults to true.
      
      Differential Revision: https://phab.mercurial-scm.org/D3057
      db06c4bb2158
  15. Jul 07, 2017
    • Matt Harbison's avatar
      tests: quote $PYTHON for Windows · 72f051f9a7d8
      Matt Harbison authored
      When unquoted, MSYS sees the colon between the drive letter and path as a Unix
      path separator and unhelpfully splits on it, feeding only the drive letter as
      the command.  Much chaos ensues.
      
      I vaguely remember trying to get the test runner to use /letter/path/to/exe
      syntax the last time this happened, without success.  I doubt a check-code rule
      would work, since sometimes it is quoted, and sometimes the quotes are escaped.
      72f051f9a7d8
  16. Jun 20, 2017
  17. Jul 02, 2017
  18. Oct 19, 2015
  19. Jun 10, 2015
    • Matt Harbison's avatar
      tests: restore 'python' and '$TESTDIR/' for dummyssh invocation · c63bf97cf7c7
      Matt Harbison authored
      This is a backout of 46727fea7a00, and a partial backout of c3ecbf694904.
      
      Windows won't execute 'dummyssh' directly, presumably because CreateProcess()
      doesn't know how to execute a bash script:
      
         $ hg clone -e "dummyssh" ssh://user@dummy/cloned sshclone
         remote: 'dummyssh' is not recognized as an internal or external command,
         remote: operable program or batch file.
         abort: no suitable response from remote hg!
         [255]
      
      With the restoration of python as the executable, $TESTDIR needs to be restored
      for these invocations, because python won't search $PATH for 'dummyssh':
      
         $ hg clone -e "python dummyssh" ssh://user@dummy/cloned sshclone
         remote: python: can't open file 'dummyssh': [Errno 2] No such file or directory
         abort: no suitable response from remote hg!
         [255]
      c63bf97cf7c7
  20. Jun 08, 2015
  21. Apr 18, 2015
    • Matt Harbison's avatar
      largefiles: don't crash when cloning to a remote repo · e4e69cebeedd
      Matt Harbison authored
      The immediate crash was when checking for requirements immediately after this,
      but lfcommands.downloadlfiles() will also crash if --all-largefiles is
      specified.  That has been in place since atleast 5884812686f7 (2.3-rc) without
      anyone noticing.
      
      I can't tell from the peer classes if there's a way to make the custom largefile
      functionality work in this case, but atleast it doesn't crash.
      e4e69cebeedd
  22. Sep 26, 2014
  23. Nov 17, 2013
    • Brodie Rao's avatar
      revlog: allow tuning of the chunk cache size (via format.chunkcachesize) · 969148b49fc6
      Brodie Rao authored
      Running perfmoonwalk on the Mercurial repo (with almost 20,000 changesets) on
      Mac OS X with an SSD, before this change:
      
      $ hg --config format.chunkcachesize=1024 perfmoonwalk
      ! wall 2.022021 comb 2.030000 user 1.970000 sys 0.060000 (best of 5)
      
      (16,154 cache hits, 3,840 misses.)
      
      $ hg --config format.chunkcachesize=4096 perfmoonwalk
      ! wall 1.901006 comb 1.900000 user 1.880000 sys 0.020000 (best of 6)
      
      (19,003 hits, 991 misses.)
      
      $ hg --config format.chunkcachesize=16384 perfmoonwalk
      ! wall 1.802775 comb 1.800000 user 1.800000 sys 0.000000 (best of 6)
      
      (19,746 hits, 248 misses.)
      
      $ hg --config format.chunkcachesize=32768 perfmoonwalk
      ! wall 1.818545 comb 1.810000 user 1.810000 sys 0.000000 (best of 6)
      
      (19,870 hits, 124 misses.)
      
      $ hg --config format.chunkcachesize=65536 perfmoonwalk
      ! wall 1.801350 comb 1.810000 user 1.800000 sys 0.010000 (best of 6)
      
      (19,932 hits, 62 misses.)
      
      $ hg --config format.chunkcachesize=131072 perfmoonwalk
      ! wall 1.805879 comb 1.820000 user 1.810000 sys 0.010000 (best of 6)
      
      (19,963 hits, 31 misses.)
      
      We may want to change the default size in the future based on testing and
      user feedback.
      969148b49fc6
  24. Dec 12, 2012
  25. Jun 14, 2012
  26. Jun 11, 2012
  27. Apr 28, 2012
  28. Apr 03, 2012
  29. Dec 08, 2011
  30. Nov 25, 2011
  31. Nov 07, 2011
  32. Jul 20, 2011
  33. May 04, 2011
  34. Mar 13, 2011
  35. Oct 11, 2010
  36. Oct 09, 2010
    • Adrian Buehlmann's avatar
      store: encode first period or space in filenames (issue1713) · 34d8247a4595
      Adrian Buehlmann authored
      - Mac OS X has problems with filenames starting with '._'
        (e.g. '.FOO' -> '._f_o_o' is now encoded as '~2e_f_o_o')
      
      - Explorer of Windows Vista and Windows 7 strip leading spaces of
        path elements of filenames when copying trees
      
      Above problems are avoided by encoding the first space (as '~20') or
      period (as '~2e') of all path elements.
      
      This introduces a new entry 'dotencode' in .hg/requires, that is,
      a new repository filename layout (inside .hg/store).
      
      Newly created repositories require 'dotencode' by default. Specifying
      
        [format]
        dotencode = False
      
      in a config file will use the old format instead.
      
      Prior Mercurial versions will abort with the message
      
         abort: requirement 'dotencode' not supported!
      
      when trying to access a local repository that requires 'dotencode'.
      
      New 'dotencode' repositories can be converted to the previous
      repository format with
      
        hg --config format.dotencode=0 clone --pull repoA repoB
      34d8247a4595
  37. Sep 28, 2010
    • kiilerix's avatar
      init: expand destination url as a configured paths · fb24b491e06a
      kiilerix authored
      Most commands expands configured paths when repositories are specified, just as
      the urls help says. Clone also expands the destination path. Clone is morally
      equivalent to init + push/pull, so init should also expand the destination path
      - and that is what this patch makes it do.
      
      There is no really good usecases for this and in most cases it doesn't matter,
      but consistency is nice, and otherwise we would have to document the exception.
      fb24b491e06a
  38. Sep 17, 2010
Loading