Mercurial > hg
changeset 36089:e14821b290eb
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
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 02 Feb 2018 10:28:57 -0500 |
parents | 8c31187b6717 |
children | 9445a3141501 |
files | hgext/narrow/narrowrepo.py tests/test-narrow-acl.t tests/test-narrow-clone-no-ellipsis.t tests/test-narrow-clone.t tests/test-narrow-debugcommands.t tests/test-narrow-pull.t |
diffstat | 6 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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
--- 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
--- 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
--- 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
--- 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