Skip to content
Snippets Groups Projects
  1. Apr 05, 2018
    • Gregory Szorc's avatar
      simplestore: correctly implement flag processors · 9d4f09bfe3ec
      Gregory Szorc authored
      There were a couple of bugs around the implementation of
      flags processing with the simple store. After these changes,
      test-flagprocessor.t now passes!
      
      test-flagprocessor.t was also updated to include explicit test
      coverage that pushed data is as expected on the server.
      
      The test extension used by test-flagprocessor.t has been updated
      so it monkeypatches the object returned from repo.file() instead
      of monkeypatching filelog.filelog. This allows it to work with
      extensions that return custom types from repo.file().
      
      The monkeypatching is rather hacky and probably is performance
      prohibitive for real repos. We should probably come up with a
      better mechanism for registering flag processors so monkeypatching
      isn't needed.
      
      Differential Revision: https://phab.mercurial-scm.org/D3116
      9d4f09bfe3ec
    • Gregory Szorc's avatar
      tests: `hg init` after resetting HGRCPATH · 0c1b895511b9
      Gregory Szorc authored
      Otherwise extensions loaded via --extra-config-opt could prevent
      access to the repo by introducing requirements file. This does mean
      that custom extensions loaded in this way won't impact this test.
      I'm fine with that.
      
      Differential Revision: https://phab.mercurial-scm.org/D3115
      0c1b895511b9
    • Gregory Szorc's avatar
      tests: work around potential repo incompatibility · 3fbd8b862d66
      Gregory Szorc authored
      test-run-tests.t invokes run-tests.py. But custom extensions providing
      new repo requirements may be in play and may not get inherited by the
      new run-tests.py. We ensure our repo is created with a vanilla config
      to mitigate extension-caused badness.
      
      Differential Revision: https://phab.mercurial-scm.org/D3114
      3fbd8b862d66
    • Gregory Szorc's avatar
      tests: disable test-keyword.t with simple store · 9168792422a0
      Gregory Szorc authored
      The keyword extension is hooking into repo.file() and defining its
      own filelog class. It will likely require a more formal storage
      interface before keywords are usable with alternate storage backends.
      
      Differential Revision: https://phab.mercurial-scm.org/D3113
      9168792422a0
    • Gregory Szorc's avatar
      tests: conditionalize test-treemanifest.t · 28ee8b28b213
      Gregory Szorc authored
      Parts of the test were assuming the use of revlogs with fnstore
      path encoding.
      
      Other parts of the test assumed we could create repos with different
      store encodings and that stream clone bundles worked.
      
      Make all of this conditional on running a revlog repo.
      
      Differential Revision: https://phab.mercurial-scm.org/D3112
      28ee8b28b213
    • Gregory Szorc's avatar
      tests: use unbundle in test-symlink-os-yes-fs-no.py · 5ac84b20f184
      Gregory Szorc authored
      The test (which should probably be rewritten as a .t test - the
      test was initially authored in 2009 and this may have predated
      some test harness features allowing us to implement it as a .t
      test) is verifying symlink behavior with regards to working
      directory operations. How it pulls bundle data into a repo is
      not relevant. So we can switch from pull to unbundle so we can
      support environments where bundlerepos don't work.
      
      Differential Revision: https://phab.mercurial-scm.org/D3111
      5ac84b20f184
  2. Apr 04, 2018
  3. Apr 05, 2018
  4. Apr 04, 2018
  5. Feb 27, 2018
    • Jörg Sonnenberger's avatar
      wireproto: allow direct stream processing for unbundle · 2d965bfeb8f6
      Jörg Sonnenberger authored
      Introduce a new option server.streamunbundle which starts a transaction
      immediately to apply a bundle instead of writing it to a temporary file
      first. This side steps the need for a large tmp directory at the cost of
      preventing concurrent pushes. This is a reasonable trade-off for many
      setups as concurrent pushes for the main branch at least are disallowed
      anyway. The option defaults to off to preserve existing behavior.
      
      Change the wireproto interface to provide a generator for reading the
      payload and make callers responsible for consuming all data.
      
      Differential Revision: https://phab.mercurial-scm.org/D2470
      2d965bfeb8f6
  6. Apr 06, 2018
  7. Apr 04, 2018
  8. Apr 02, 2018
  9. Mar 18, 2018
  10. Mar 17, 2018
    • Yuya Nishihara's avatar
      templater: add class representing a nested mappings · 0b64416224d9
      Yuya Nishihara authored
      The mappinggenerator class is necessary to fix hgweb bugs without BC. The
      mappinglist is for nested formatter items. They are similar, so factored
      out the base class. The mappinglist could be implemented by using the
      mappinggenerator, but we'll probably need a direct access to the raw list,
      so they are implemented as separate classes.
      
      Note that tovalue() isn't conforming to the spec yet in that it may return
      a list of dicts containing unprintable resources. This problem will be
      fixed later.
      
      Tests will be added by subsequent patches.
      0b64416224d9
    • Yuya Nishihara's avatar
      templater: add function that expands internal literal templates · 3235afdfcf1c
      Yuya Nishihara authored
      This will be used when rendering nested formatter items with the default
      template, e.g.
      
        fm.nested('parents', tmpl='{rev}:{node|formatnode}', sep=' ')
                                   ^^^^^^^^^^^^^^^^^^^^^^^
                                   the default item template
      3235afdfcf1c
  11. Apr 06, 2018
Loading