sapling/eden/scm/tests/test-debugignore.t
Jun Wu 75a8173a10 tests: enable chg for 572 tests
Summary:
Add `#chg-compatible` to 572 tests that seem to pass with chg enabled.
This should make them run faster.

Reviewed By: xavierd

Differential Revision: D18870507

fbshipit-source-id: fe895e733efffc9286cd3d17c7a156c803124395
2019-12-09 15:26:29 -08:00

55 lines
1.5 KiB
Perl

#chg-compatible
#require no-windows
$ newrepo
$ mkdir -p a/b c/d/e c/f/g c/g
$ cat > .gitignore << EOF
> *.pyc
> d/
> g/
> EOF
$ echo '!a*.pyc' > a/.gitignore
$ echo 'a1*.pyc' > a/b/.gitignore
$ echo '!g/' > c/.gitignore
$ echo 'g/' > c/f/.gitignore
$ hg debugignore 1.pyc a/a1.pyc a/b/a10.pyc a/b/a2.pyc a/b/a2.py c/d/e/f c/d c/f/g/1/2 c/g/1/2 c/h/1
1.pyc: ignored by rule *.pyc from .gitignore
a/a1.pyc: ignored by rule *.pyc from .gitignore
a/a1.pyc: unignored by rule !a*.pyc from a/.gitignore (overrides previous rules)
a/b/a10.pyc: ignored by rule *.pyc from .gitignore
a/b/a10.pyc: unignored by rule !a*.pyc from a/.gitignore (overrides previous rules)
a/b/a10.pyc: ignored by rule a1*.pyc from a/b/.gitignore (overrides previous rules)
a/b/a2.pyc: ignored by rule *.pyc from .gitignore
a/b/a2.pyc: unignored by rule !a*.pyc from a/.gitignore (overrides previous rules)
a/b/a2.py: not ignored
c/d/e/f: ignored because c/d is ignored
c/d: ignored by rule d/ from .gitignore
c/d: ignored by rule d/ from .gitignore
c/f/g/1/2: ignored because c/f/g is ignored
c/f/g: ignored by rule g/ from .gitignore
c/f/g: unignored by rule !g/ from c/.gitignore (overrides previous rules)
c/f/g: ignored by rule g/ from c/f/.gitignore (overrides previous rules)
c/g/1/2: not ignored
c/h/1: not ignored
$ cat > $TESTTMP/globalignore << EOF
> foo
> EOF
$ setconfig ui.ignore.1=$TESTTMP/globalignore
$ hg debugignore foo
foo: ignored by rule foo from $TESTTMP/globalignore