narrow: import experimental extension from narrowhg revision cb51d673e9c5
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
Showing
- hgext/narrow/__init__.py 111 additions, 0 deletionshgext/narrow/__init__.py
- hgext/narrow/narrowbundle2.py 503 additions, 0 deletionshgext/narrow/narrowbundle2.py
- hgext/narrow/narrowchangegroup.py 385 additions, 0 deletionshgext/narrow/narrowchangegroup.py
- hgext/narrow/narrowcommands.py 402 additions, 0 deletionshgext/narrow/narrowcommands.py
- hgext/narrow/narrowcopies.py 35 additions, 0 deletionshgext/narrow/narrowcopies.py
- hgext/narrow/narrowdirstate.py 80 additions, 0 deletionshgext/narrow/narrowdirstate.py
- hgext/narrow/narrowmerge.py 76 additions, 0 deletionshgext/narrow/narrowmerge.py
- hgext/narrow/narrowpatch.py 42 additions, 0 deletionshgext/narrow/narrowpatch.py
- hgext/narrow/narrowrepo.py 110 additions, 0 deletionshgext/narrow/narrowrepo.py
- hgext/narrow/narrowrevlog.py 163 additions, 0 deletionshgext/narrow/narrowrevlog.py
- hgext/narrow/narrowspec.py 204 additions, 0 deletionshgext/narrow/narrowspec.py
- hgext/narrow/narrowtemplates.py 50 additions, 0 deletionshgext/narrow/narrowtemplates.py
- hgext/narrow/narrowwirepeer.py 51 additions, 0 deletionshgext/narrow/narrowwirepeer.py
- setup.py 2 additions, 1 deletionsetup.py
- tests/narrow-library.sh 9 additions, 0 deletionstests/narrow-library.sh
- tests/test-help.t 2 additions, 0 deletionstests/test-help.t
- tests/test-narrow-acl.t 42 additions, 0 deletionstests/test-narrow-acl.t
- tests/test-narrow-archive.t 32 additions, 0 deletionstests/test-narrow-archive.t
- tests/test-narrow-clone-no-ellipsis.t 130 additions, 0 deletionstests/test-narrow-clone-no-ellipsis.t
- tests/test-narrow-clone-non-narrow-server.t 53 additions, 0 deletionstests/test-narrow-clone-non-narrow-server.t
Loading
Please register or sign in to comment