Skip to content
Snippets Groups Projects
  1. Feb 22, 2025
  2. Oct 22, 2018
    • Matt Harbison's avatar
      lfs: consult the narrow matcher when extracting pointers from ctx (issue5794) · 4a81d82474e9
      Matt Harbison authored
      I added a testcase for lfs to all narrow tests, and the following failed:
      
          test-narrow-acl.t
          test-narrow-exchange.t
          test-narrow-patterns.t
          test-narrow-strip.t
          test-narrow-trackedcmd.t
          test-narrow-widen.t
          test-narrow.t
      
      The first two still have errors in the pretxnchangegroup on clone and (receiving
      a) push, which I'm still looking into (4d63f3bc1e1a fixed something in this area
      already).  These two modified tests seem to cover the things that failed in the
      remaining narrow tests, i.e. `hg tracked` and `hg strip`, so I didn't bother
      enabling the testcases elsewhere.  Maybe we should, but it's 68 tests total.
      4a81d82474e9
  3. Apr 04, 2018
    • Gregory Szorc's avatar
      tests: conditionalize tests for various repo features · 7542e97c7867
      Gregory Szorc authored
      Working my down the long tail of test failures due to the simple
      store.
      
      We're now down to 38 failures with the simple store.
      
      Differential Revision: https://phab.mercurial-scm.org/D3096
      7542e97c7867
    • Gregory Szorc's avatar
      tests: disallow using simple store repo with bundlerepo · 45a4799174a1
      Gregory Szorc authored
      bundlerepo is... going to be difficult to port to an alternate
      store because it assumes revlogs for storage and essentially
      overlays the contents of a bundle onto a fake revlog-like
      primitive. It will be a good test case for our eventual new
      storage interface.
      
      Refactoring bundlerepo to make it work with non-revlog storage is
      going to be a bit of work. So for now, let's refuse to use the
      simple store repo when a bundlerepo is in play.
      
      A new test requirement advertising support for treating bundle
      files as repo instances has been added. Some tests have been
      made conditional on this feature. Additional tests will be
      annotated in subsequent commits.
      
      Having positive opt-in to repo features will be simpler in the
      long run because it will allow multiple storage backends to
      declare feature support and we won't have to annotate each test
      with the set of repo backends that are supported. Again, we'll
      probably want better integration between repo features and
      tests. But this is the easiest we can do at the moment.
      
      Differential Revision: https://phab.mercurial-scm.org/D3060
      45a4799174a1
  4. Mar 22, 2018
    • Matt Harbison's avatar
      test-strip-narrow: adjust bundle removal for Windows test stability · 66d478064d5f
      Matt Harbison authored
      MSYS was mangling $TESTTMP to C:\\Users\\...\\test-narrow-strip.t-flat/, which
      caused `rm` to fail.  The -f was suppressing -ENOENT, so the only clue something
      was wrong was when 2 bundles were applied via `hg unbundle` on line 91, instead
      of just 1.  This changed the text output of `hg unbundle`.
      
      The first `rm` wasn't causing an issue, but is changed for consistency with the
      rest of the file.
      66d478064d5f
  5. Feb 01, 2018
  6. Jan 29, 2018
    • Augie Fackler's avatar
      narrow: import experimental extension from narrowhg revision cb51d673e9c5 · a2a6e724d61a
      Augie Fackler authored
      Adjustments:
       * renamed src to hgext/narrow
       * marked extension experimental
       * added correct copyright header where it was missing
       * updated hgrc extension enable line in library.sh
       * renamed library.sh to narrow-library.sh
       * dropped all files from repo root as they're not interesting
       * dropped test-pyflakes.t, test-check-code.t and test-check-py3-compat.t
       * renamed remaining tests to all be test-narrow-* when they didn't already
       * fixed test-narrow-expanddirstate.t to refer to narrow and not narrowhg
       * fixed tests that wanted `update -C .` instead of `merge --abort`
       * corrected a two-space indent in narrowspec.py
       * added a missing _() in narrowcommands.py
       * fixed imports to pass the import checker
       * narrow only adds its --include and --exclude to clone if sparse isn't
         enabled to avoid breaking test-duplicateoptions.py. This is a kludge,
         and we'll need to come up with a better solution in the future.
      
      These were more or less the minimum to import something that would
      pass tests and not create a bunch of files we'll never use.
      
      Changes I intend to make as followups:
       * rework the test-narrow-*-tree.t tests to use the new testcases
         functionality in run-tests.py
       * remove lots of monkeypatches of core things
      
      Differential Revision: https://phab.mercurial-scm.org/D1974
      a2a6e724d61a
Loading