# HG changeset patch # User Augie Fackler # Date 1517585337 18000 # Node ID e14821b290eb23e3ef4a3dc42da657b9bd6f2bca # Parent 8c31187b671746329a486e7d1de4eeeaaef9b22a narrowrepo: make repo requirement include the string 'experimental' We can just move to "narrow" or similar when we finalize the format. I'm not sure what the migration process from one requirement to another should look like, but we're about to cross that bridge at Google once this change lands, so hopefully we'll know soon. Differential Revision: https://phab.mercurial-scm.org/D2007 diff -r 8c31187b6717 -r e14821b290eb hgext/narrow/narrowrepo.py --- a/hgext/narrow/narrowrepo.py Fri Feb 02 10:27:08 2018 -0500 +++ b/hgext/narrow/narrowrepo.py Fri Feb 02 10:28:57 2018 -0500 @@ -23,7 +23,9 @@ narrowspec, ) -REQUIREMENT = 'narrowhg' +# When narrowing is finalized and no longer subject to format changes, +# we should move this to just "narrow" or similar. +REQUIREMENT = 'narrowhg-experimental' def wrappostshare(orig, sourcerepo, destrepo, **kwargs): orig(sourcerepo, destrepo, **kwargs) diff -r 8c31187b6717 -r e14821b290eb tests/test-narrow-acl.t --- a/tests/test-narrow-acl.t Fri Feb 02 10:27:08 2018 -0500 +++ b/tests/test-narrow-acl.t Fri Feb 02 10:28:57 2018 -0500 @@ -34,7 +34,7 @@ Requirements should contain narrowhg $ cat narrowclone1/.hg/requires | grep narrowhg - narrowhg + narrowhg-experimental NarrowHG should track f1 and f2 $ hg -R narrowclone1 tracked diff -r 8c31187b6717 -r e14821b290eb tests/test-narrow-clone-no-ellipsis.t --- a/tests/test-narrow-clone-no-ellipsis.t Fri Feb 02 10:27:08 2018 -0500 +++ b/tests/test-narrow-clone-no-ellipsis.t Fri Feb 02 10:28:57 2018 -0500 @@ -25,7 +25,7 @@ $ cat .hg/requires | grep -v generaldelta dotencode fncache - narrowhg + narrowhg-experimental revlogv1 store diff -r 8c31187b6717 -r e14821b290eb tests/test-narrow-clone.t --- a/tests/test-narrow-clone.t Fri Feb 02 10:27:08 2018 -0500 +++ b/tests/test-narrow-clone.t Fri Feb 02 10:28:57 2018 -0500 @@ -29,7 +29,7 @@ $ cat .hg/requires | grep -v generaldelta dotencode fncache - narrowhg + narrowhg-experimental revlogv1 store diff -r 8c31187b6717 -r e14821b290eb tests/test-narrow-debugcommands.t --- a/tests/test-narrow-debugcommands.t Fri Feb 02 10:27:08 2018 -0500 +++ b/tests/test-narrow-debugcommands.t Fri Feb 02 10:28:57 2018 -0500 @@ -7,7 +7,7 @@ > [excludes] > EOF $ echo treemanifest >> .hg/requires - $ echo narrowhg >> .hg/requires + $ echo narrowhg-experimental >> .hg/requires $ mkdir -p foo/bar $ echo b > foo/f $ echo c > foo/bar/f diff -r 8c31187b6717 -r e14821b290eb tests/test-narrow-pull.t --- a/tests/test-narrow-pull.t Fri Feb 02 10:27:08 2018 -0500 +++ b/tests/test-narrow-pull.t Fri Feb 02 10:28:57 2018 -0500 @@ -166,7 +166,7 @@ We should also be able to unshare without breaking everything: $ hg unshare - devel-warn: write with no wlock: "narrowspec" at: */hgext/narrow/narrowrepo.py:41 (unsharenarrowspec) (glob) + devel-warn: write with no wlock: "narrowspec" at: */hgext/narrow/narrowrepo.py:43 (unsharenarrowspec) (glob) $ hg verify checking changesets checking manifests