sparse: rename fbsparse into sparse in tests

Reviewed By: phillco

Differential Revision: D10335084

fbshipit-source-id: 91e0a17957561410e397a006f99ebf549d34e1e4
This commit is contained in:
Kostia Balytskyi 2018-10-16 14:19:23 -07:00 committed by Facebook Github Bot
parent f0ac732a0b
commit 86f07601f7
21 changed files with 25 additions and 26 deletions

View File

@ -25,7 +25,7 @@ test bisect-sparse
$ cd myrepo
$ cat > .hg/hgrc <<EOF
> [extensions]
> sparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> strip=
> EOF

View File

@ -45,7 +45,6 @@ New errors are not allowed. Warnings are strongly discouraged.
$ testrepohg files . | egrep -v '^tests/' | egrep '\.(py|txt)$' | sed 's|\\|/|g' |
> $PYTHON contrib/check-config.py
undocumented: clone.requestfullclone (bool)
undocumented: extensions.fbsparse (str) ["!"]
undocumented: extensions.treemanifest (str)
undocumented: fastlog.debug (str)
undocumented: fastlog.enabled (bool)

View File

@ -190,7 +190,7 @@ We need to disable the SCM_SAMPLING_FILEPATH env var because arcanist may set it
dirstate_size: 1
$ cat >> $HGRCPATH << EOF
> [extensions]
> fbsparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> EOF
$ cat >> profile_base << EOF
> [include]

View File

@ -26,7 +26,7 @@
searching for changes
no changes found
$ cd shallow
$ printf "[extensions]\nsparse=$TESTDIR/../hgext/fbsparse.py\n" >> .hg/hgrc
$ printf "[extensions]\nsparse=$TESTDIR/../hgext/sparse.py\n" >> .hg/hgrc
$ hg sparse -I x
$ hg prefetch -r 0
@ -79,7 +79,7 @@
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over *s (glob)
$ cd shallow2
$ printf "[extensions]\nsparse=$TESTDIR/../hgext/fbsparse.py\n" >> .hg/hgrc
$ printf "[extensions]\nsparse=$TESTDIR/../hgext/sparse.py\n" >> .hg/hgrc
$ hg up -q 0
2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob)

View File

@ -15,7 +15,7 @@ profile.
$ cd myrepo
$ cat > .hg/hgrc <<EOF
> [extensions]
> fbsparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> EOF
$ mkdir profiles

View File

@ -4,7 +4,7 @@ test sparse
$ cd myrepo
$ cat >> $HGRCPATH <<EOF
> [extensions]
> sparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> purge=
> strip=
> rebase=

View File

@ -5,7 +5,7 @@ test sparse
> ssh = python "$RUNTESTDIR/dummyssh"
> username = nobody <no.reply@fb.com>
> [extensions]
> sparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> purge=
> strip=
> rebase=

View File

@ -2,7 +2,7 @@
$ cd repo
$ cat > .hg/hgrc <<EOF
> [extensions]
> sparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> EOF
$ mkdir show hide
$ echo show-modify-1 > show/modify

View File

@ -5,7 +5,7 @@ test sparse interaction with other extensions
$ cd myrepo
$ cat > .hg/hgrc <<EOF
> [extensions]
> sparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> strip=
> # Remove once default-on:
> simplecache=

View File

@ -4,7 +4,7 @@ test sparse
$ cd myrepo
$ cat >> $HGRCPATH <<EOF
> [extensions]
> sparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> purge=
> strip=
> rebase=

View File

@ -4,7 +4,7 @@ test merging things outside of the sparse checkout
$ cd myrepo
$ cat > .hg/hgrc <<EOF
> [extensions]
> sparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> EOF
$ echo foo > foo

View File

@ -7,7 +7,7 @@ First create a base repository with sparse enabled.
$ cd base
$ cat > .hg/hgrc <<EOF
> [extensions]
> sparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> journal=
> EOF

View File

@ -4,7 +4,7 @@ test sparse
$ cd myrepo
$ cat > .hg/hgrc <<EOF
> [extensions]
> sparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> purge=
> strip=
> rebase=
@ -274,7 +274,7 @@ Test file permissions changing across a sparse profile change
$ cd sparseperm
$ cat > .hg/hgrc <<EOF
> [extensions]
> sparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> EOF
$ touch a b
$ cat > .hgsparse <<EOF
@ -300,7 +300,7 @@ Test profile discovery
$ cd sparseprofiles
$ cat > .hg/hgrc <<EOF
> [extensions]
> sparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> strip=
> [hint]
> ack-hint-ack = True

View File

@ -2,7 +2,7 @@
$ cd repo
$ cat > .hg/hgrc <<EOF
> [extensions]
> sparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> rebase=
> EOF

View File

@ -4,7 +4,7 @@ test sparse with --verbose and -T json
$ cd myrepo
$ cat > .hg/hgrc <<EOF
> [extensions]
> sparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> strip=
> EOF

View File

@ -4,7 +4,7 @@ test sparse
$ cd myrepo
$ cat > .hg/hgrc <<EOF
> [extensions]
> sparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> strip=
> EOF
@ -387,7 +387,7 @@ Test non-sparse repos work while sparse is loaded
$ cd sparserepo
$ cat > .hg/hgrc <<EOF
> [extensions]
> sparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> EOF
$ cd ../nonsparserepo
$ echo x > x && hg add x && hg commit -qAm x

View File

@ -2,7 +2,7 @@ test interaction between sparse and treemanifest (sparse file listing)
$ cat >> $HGRCPATH <<EOF
> [extensions]
> sparse=$TESTDIR/../hgext/fbsparse.py
> sparse=$TESTDIR/../hgext/sparse.py
> treemanifest=
> [treemanifest]
> treeonly = True

View File

@ -147,7 +147,7 @@ Test rebasing a stack of commits results in a pack with all the trees
Test treemanifest with sparse enabled
$ cat >> .hg/hgrc <<EOF
> [extensions]
> fbsparse=
> sparse=
> reset=
> EOF
$ hg sparse -I subdir

View File

@ -322,7 +322,7 @@ Test extension help:
extension that makes node prefix lookup faster
fbconduit (no help text available)
fbhistedit extends the existing histedit functionality
fbsparse allow sparse checkouts of the working directory
fixcorrupt (no help text available)
generic_bisect
(no help text available)

View File

@ -77,7 +77,7 @@ Fine extension: sparse
$ newrepo
__del__ called
$ setconfig extensions.fbsparse=
$ setconfig extensions.sparse=
$ hg log -r . -T '{manifest % "{node}"}\n'
0000000000000000000000000000000000000000
__del__ called
@ -136,7 +136,6 @@ Somehow problematic: With many extensions
> fastpartialmatch=!
> fbconduit=
> fbhistedit=
> fbsparse=
> githelp=
> gitlookup=!
> gitrevset=!
@ -178,6 +177,7 @@ Somehow problematic: With many extensions
> sigtrace=
> simplecache=
> smartlog=
> sparse=
> sshaskpass=
> stat=
> strip=

View File

@ -1,4 +1,4 @@
$ enable fbsparse
$ enable sparse
$ newrepo
$ hg sparse include src
$ mkdir src