test-sparse-clear.t
80 lines
| 1.2 KiB
| text/troff
|
Tads3Lexer
/ tests / test-sparse-clear.t
Gregory Szorc
|
r33289 | test sparse | ||
$ hg init myrepo | ||||
$ cd myrepo | ||||
$ cat >> $HGRCPATH <<EOF | ||||
> [extensions] | ||||
> sparse= | ||||
> purge= | ||||
> strip= | ||||
> rebase= | ||||
> EOF | ||||
$ echo a > index.html | ||||
$ echo x > data.py | ||||
$ echo z > readme.txt | ||||
$ cat > base.sparse <<EOF | ||||
> [include] | ||||
> *.sparse | ||||
> EOF | ||||
$ hg ci -Aqm 'initial' | ||||
$ cat > webpage.sparse <<EOF | ||||
> %include base.sparse | ||||
> [include] | ||||
> *.html | ||||
> EOF | ||||
$ hg ci -Aqm 'initial' | ||||
Clear rules when there are includes | ||||
Gregory Szorc
|
r33293 | $ hg debugsparse --include *.py | ||
Joerg Sonnenberger
|
r45218 | $ ls -A | ||
.hg | ||||
Gregory Szorc
|
r33289 | data.py | ||
Gregory Szorc
|
r33293 | $ hg debugsparse --clear-rules | ||
Joerg Sonnenberger
|
r45218 | $ ls -A | ||
.hg | ||||
Gregory Szorc
|
r33289 | base.sparse | ||
data.py | ||||
index.html | ||||
readme.txt | ||||
webpage.sparse | ||||
Clear rules when there are excludes | ||||
Valentin Gatien-Baron
|
r49588 | $ hg debugsparse -X base.sparse -X webpage.sparse | ||
Joerg Sonnenberger
|
r45218 | $ ls -A | ||
.hg | ||||
Gregory Szorc
|
r33289 | data.py | ||
index.html | ||||
readme.txt | ||||
Gregory Szorc
|
r33293 | $ hg debugsparse --clear-rules | ||
Joerg Sonnenberger
|
r45218 | $ ls -A | ||
.hg | ||||
Gregory Szorc
|
r33289 | base.sparse | ||
data.py | ||||
index.html | ||||
readme.txt | ||||
webpage.sparse | ||||
Clearing rules should not alter profiles | ||||
Gregory Szorc
|
r33293 | $ hg debugsparse --enable-profile webpage.sparse | ||
Joerg Sonnenberger
|
r45218 | $ ls -A | ||
.hg | ||||
Gregory Szorc
|
r33289 | base.sparse | ||
index.html | ||||
webpage.sparse | ||||
Gregory Szorc
|
r33293 | $ hg debugsparse --include *.py | ||
Joerg Sonnenberger
|
r45218 | $ ls -A | ||
.hg | ||||
Gregory Szorc
|
r33289 | base.sparse | ||
data.py | ||||
index.html | ||||
webpage.sparse | ||||
Gregory Szorc
|
r33293 | $ hg debugsparse --clear-rules | ||
Joerg Sonnenberger
|
r45218 | $ ls -A | ||
.hg | ||||
Gregory Szorc
|
r33289 | base.sparse | ||
index.html | ||||
webpage.sparse | ||||