D1974: narrow: import experimental extension from narrowhg revision cb51d673e9c5

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Feb 1 23:00:24 UTC 2018


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  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

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1974

AFFECTED FILES
  hgext/narrow/__init__.py
  hgext/narrow/narrowbundle2.py
  hgext/narrow/narrowchangegroup.py
  hgext/narrow/narrowcommands.py
  hgext/narrow/narrowcopies.py
  hgext/narrow/narrowdirstate.py
  hgext/narrow/narrowmerge.py
  hgext/narrow/narrowpatch.py
  hgext/narrow/narrowrepo.py
  hgext/narrow/narrowrevlog.py
  hgext/narrow/narrowspec.py
  hgext/narrow/narrowtemplates.py
  hgext/narrow/narrowwirepeer.py
  setup.py
  tests/narrow-library.sh
  tests/test-help.t
  tests/test-narrow-acl.t
  tests/test-narrow-archive.t
  tests/test-narrow-clone-no-ellipsis.t
  tests/test-narrow-clone-non-narrow-server.t
  tests/test-narrow-clone-nonlinear.t
  tests/test-narrow-clone.t
  tests/test-narrow-commit-tree.t
  tests/test-narrow-commit.t
  tests/test-narrow-copies.t
  tests/test-narrow-debugcommands.t
  tests/test-narrow-debugrebuilddirstate.t
  tests/test-narrow-exchange-merges.t
  tests/test-narrow-exchange.t
  tests/test-narrow-expanddirstate.t
  tests/test-narrow-merge-tree.t
  tests/test-narrow-merge.t
  tests/test-narrow-patch-tree.t
  tests/test-narrow-patch.t
  tests/test-narrow-patterns.t
  tests/test-narrow-pull.t
  tests/test-narrow-rebase.t
  tests/test-narrow-shallow-merges.t
  tests/test-narrow-shallow.t
  tests/test-narrow-strip-tree.t
  tests/test-narrow-strip.t
  tests/test-narrow-tree.t
  tests/test-narrow-update.t
  tests/test-narrow-widen-tree.t
  tests/test-narrow-widen.t
  tests/test-narrow.t

To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list