mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 16:12:23 +03:00
sparse: rename fbsparse into sparse in tests
Reviewed By: phillco Differential Revision: D10335084 fbshipit-source-id: 91e0a17957561410e397a006f99ebf549d34e1e4
This commit is contained in:
parent
f0ac732a0b
commit
86f07601f7
@ -25,7 +25,7 @@ test bisect-sparse
|
|||||||
$ cd myrepo
|
$ cd myrepo
|
||||||
$ cat > .hg/hgrc <<EOF
|
$ cat > .hg/hgrc <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> sparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> strip=
|
> strip=
|
||||||
> EOF
|
> EOF
|
||||||
|
|
||||||
|
@ -45,7 +45,6 @@ New errors are not allowed. Warnings are strongly discouraged.
|
|||||||
$ testrepohg files . | egrep -v '^tests/' | egrep '\.(py|txt)$' | sed 's|\\|/|g' |
|
$ testrepohg files . | egrep -v '^tests/' | egrep '\.(py|txt)$' | sed 's|\\|/|g' |
|
||||||
> $PYTHON contrib/check-config.py
|
> $PYTHON contrib/check-config.py
|
||||||
undocumented: clone.requestfullclone (bool)
|
undocumented: clone.requestfullclone (bool)
|
||||||
undocumented: extensions.fbsparse (str) ["!"]
|
|
||||||
undocumented: extensions.treemanifest (str)
|
undocumented: extensions.treemanifest (str)
|
||||||
undocumented: fastlog.debug (str)
|
undocumented: fastlog.debug (str)
|
||||||
undocumented: fastlog.enabled (bool)
|
undocumented: fastlog.enabled (bool)
|
||||||
|
@ -190,7 +190,7 @@ We need to disable the SCM_SAMPLING_FILEPATH env var because arcanist may set it
|
|||||||
dirstate_size: 1
|
dirstate_size: 1
|
||||||
$ cat >> $HGRCPATH << EOF
|
$ cat >> $HGRCPATH << EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> fbsparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> EOF
|
> EOF
|
||||||
$ cat >> profile_base << EOF
|
$ cat >> profile_base << EOF
|
||||||
> [include]
|
> [include]
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
searching for changes
|
searching for changes
|
||||||
no changes found
|
no changes found
|
||||||
$ cd shallow
|
$ 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 sparse -I x
|
||||||
$ hg prefetch -r 0
|
$ hg prefetch -r 0
|
||||||
@ -79,7 +79,7 @@
|
|||||||
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
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)
|
1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over *s (glob)
|
||||||
$ cd shallow2
|
$ 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
|
$ hg up -q 0
|
||||||
2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob)
|
2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob)
|
||||||
|
@ -15,7 +15,7 @@ profile.
|
|||||||
$ cd myrepo
|
$ cd myrepo
|
||||||
$ cat > .hg/hgrc <<EOF
|
$ cat > .hg/hgrc <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> fbsparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> EOF
|
> EOF
|
||||||
|
|
||||||
$ mkdir profiles
|
$ mkdir profiles
|
||||||
|
@ -4,7 +4,7 @@ test sparse
|
|||||||
$ cd myrepo
|
$ cd myrepo
|
||||||
$ cat >> $HGRCPATH <<EOF
|
$ cat >> $HGRCPATH <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> sparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> purge=
|
> purge=
|
||||||
> strip=
|
> strip=
|
||||||
> rebase=
|
> rebase=
|
||||||
|
@ -5,7 +5,7 @@ test sparse
|
|||||||
> ssh = python "$RUNTESTDIR/dummyssh"
|
> ssh = python "$RUNTESTDIR/dummyssh"
|
||||||
> username = nobody <no.reply@fb.com>
|
> username = nobody <no.reply@fb.com>
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> sparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> purge=
|
> purge=
|
||||||
> strip=
|
> strip=
|
||||||
> rebase=
|
> rebase=
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
$ cd repo
|
$ cd repo
|
||||||
$ cat > .hg/hgrc <<EOF
|
$ cat > .hg/hgrc <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> sparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> EOF
|
> EOF
|
||||||
$ mkdir show hide
|
$ mkdir show hide
|
||||||
$ echo show-modify-1 > show/modify
|
$ echo show-modify-1 > show/modify
|
||||||
|
@ -5,7 +5,7 @@ test sparse interaction with other extensions
|
|||||||
$ cd myrepo
|
$ cd myrepo
|
||||||
$ cat > .hg/hgrc <<EOF
|
$ cat > .hg/hgrc <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> sparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> strip=
|
> strip=
|
||||||
> # Remove once default-on:
|
> # Remove once default-on:
|
||||||
> simplecache=
|
> simplecache=
|
||||||
|
@ -4,7 +4,7 @@ test sparse
|
|||||||
$ cd myrepo
|
$ cd myrepo
|
||||||
$ cat >> $HGRCPATH <<EOF
|
$ cat >> $HGRCPATH <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> sparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> purge=
|
> purge=
|
||||||
> strip=
|
> strip=
|
||||||
> rebase=
|
> rebase=
|
||||||
|
@ -4,7 +4,7 @@ test merging things outside of the sparse checkout
|
|||||||
$ cd myrepo
|
$ cd myrepo
|
||||||
$ cat > .hg/hgrc <<EOF
|
$ cat > .hg/hgrc <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> sparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> EOF
|
> EOF
|
||||||
|
|
||||||
$ echo foo > foo
|
$ echo foo > foo
|
||||||
|
@ -7,7 +7,7 @@ First create a base repository with sparse enabled.
|
|||||||
$ cd base
|
$ cd base
|
||||||
$ cat > .hg/hgrc <<EOF
|
$ cat > .hg/hgrc <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> sparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> journal=
|
> journal=
|
||||||
> EOF
|
> EOF
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ test sparse
|
|||||||
$ cd myrepo
|
$ cd myrepo
|
||||||
$ cat > .hg/hgrc <<EOF
|
$ cat > .hg/hgrc <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> sparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> purge=
|
> purge=
|
||||||
> strip=
|
> strip=
|
||||||
> rebase=
|
> rebase=
|
||||||
@ -274,7 +274,7 @@ Test file permissions changing across a sparse profile change
|
|||||||
$ cd sparseperm
|
$ cd sparseperm
|
||||||
$ cat > .hg/hgrc <<EOF
|
$ cat > .hg/hgrc <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> sparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> EOF
|
> EOF
|
||||||
$ touch a b
|
$ touch a b
|
||||||
$ cat > .hgsparse <<EOF
|
$ cat > .hgsparse <<EOF
|
||||||
@ -300,7 +300,7 @@ Test profile discovery
|
|||||||
$ cd sparseprofiles
|
$ cd sparseprofiles
|
||||||
$ cat > .hg/hgrc <<EOF
|
$ cat > .hg/hgrc <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> sparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> strip=
|
> strip=
|
||||||
> [hint]
|
> [hint]
|
||||||
> ack-hint-ack = True
|
> ack-hint-ack = True
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
$ cd repo
|
$ cd repo
|
||||||
$ cat > .hg/hgrc <<EOF
|
$ cat > .hg/hgrc <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> sparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> rebase=
|
> rebase=
|
||||||
> EOF
|
> EOF
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ test sparse with --verbose and -T json
|
|||||||
$ cd myrepo
|
$ cd myrepo
|
||||||
$ cat > .hg/hgrc <<EOF
|
$ cat > .hg/hgrc <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> sparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> strip=
|
> strip=
|
||||||
> EOF
|
> EOF
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ test sparse
|
|||||||
$ cd myrepo
|
$ cd myrepo
|
||||||
$ cat > .hg/hgrc <<EOF
|
$ cat > .hg/hgrc <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> sparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> strip=
|
> strip=
|
||||||
> EOF
|
> EOF
|
||||||
|
|
||||||
@ -387,7 +387,7 @@ Test non-sparse repos work while sparse is loaded
|
|||||||
$ cd sparserepo
|
$ cd sparserepo
|
||||||
$ cat > .hg/hgrc <<EOF
|
$ cat > .hg/hgrc <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> sparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> EOF
|
> EOF
|
||||||
$ cd ../nonsparserepo
|
$ cd ../nonsparserepo
|
||||||
$ echo x > x && hg add x && hg commit -qAm x
|
$ echo x > x && hg add x && hg commit -qAm x
|
||||||
|
@ -2,7 +2,7 @@ test interaction between sparse and treemanifest (sparse file listing)
|
|||||||
|
|
||||||
$ cat >> $HGRCPATH <<EOF
|
$ cat >> $HGRCPATH <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> sparse=$TESTDIR/../hgext/fbsparse.py
|
> sparse=$TESTDIR/../hgext/sparse.py
|
||||||
> treemanifest=
|
> treemanifest=
|
||||||
> [treemanifest]
|
> [treemanifest]
|
||||||
> treeonly = True
|
> treeonly = True
|
||||||
|
@ -147,7 +147,7 @@ Test rebasing a stack of commits results in a pack with all the trees
|
|||||||
Test treemanifest with sparse enabled
|
Test treemanifest with sparse enabled
|
||||||
$ cat >> .hg/hgrc <<EOF
|
$ cat >> .hg/hgrc <<EOF
|
||||||
> [extensions]
|
> [extensions]
|
||||||
> fbsparse=
|
> sparse=
|
||||||
> reset=
|
> reset=
|
||||||
> EOF
|
> EOF
|
||||||
$ hg sparse -I subdir
|
$ hg sparse -I subdir
|
||||||
|
@ -322,7 +322,7 @@ Test extension help:
|
|||||||
extension that makes node prefix lookup faster
|
extension that makes node prefix lookup faster
|
||||||
fbconduit (no help text available)
|
fbconduit (no help text available)
|
||||||
fbhistedit extends the existing histedit functionality
|
fbhistedit extends the existing histedit functionality
|
||||||
fbsparse allow sparse checkouts of the working directory
|
|
||||||
fixcorrupt (no help text available)
|
fixcorrupt (no help text available)
|
||||||
generic_bisect
|
generic_bisect
|
||||||
(no help text available)
|
(no help text available)
|
||||||
|
@ -77,7 +77,7 @@ Fine extension: sparse
|
|||||||
|
|
||||||
$ newrepo
|
$ newrepo
|
||||||
__del__ called
|
__del__ called
|
||||||
$ setconfig extensions.fbsparse=
|
$ setconfig extensions.sparse=
|
||||||
$ hg log -r . -T '{manifest % "{node}"}\n'
|
$ hg log -r . -T '{manifest % "{node}"}\n'
|
||||||
0000000000000000000000000000000000000000
|
0000000000000000000000000000000000000000
|
||||||
__del__ called
|
__del__ called
|
||||||
@ -136,7 +136,6 @@ Somehow problematic: With many extensions
|
|||||||
> fastpartialmatch=!
|
> fastpartialmatch=!
|
||||||
> fbconduit=
|
> fbconduit=
|
||||||
> fbhistedit=
|
> fbhistedit=
|
||||||
> fbsparse=
|
|
||||||
> githelp=
|
> githelp=
|
||||||
> gitlookup=!
|
> gitlookup=!
|
||||||
> gitrevset=!
|
> gitrevset=!
|
||||||
@ -178,6 +177,7 @@ Somehow problematic: With many extensions
|
|||||||
> sigtrace=
|
> sigtrace=
|
||||||
> simplecache=
|
> simplecache=
|
||||||
> smartlog=
|
> smartlog=
|
||||||
|
> sparse=
|
||||||
> sshaskpass=
|
> sshaskpass=
|
||||||
> stat=
|
> stat=
|
||||||
> strip=
|
> strip=
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
$ enable fbsparse
|
$ enable sparse
|
||||||
$ newrepo
|
$ newrepo
|
||||||
$ hg sparse include src
|
$ hg sparse include src
|
||||||
$ mkdir src
|
$ mkdir src
|
||||||
|
Loading…
Reference in New Issue
Block a user