mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
8a3a99ba21
Summary: Be a better citizen under system python path. Fix all tests issues and change setup.py to use glob pattern to include all extensions. Test Plan: Run tests and `make local`. Also build and install the package and run `hg sl` in major repos. Reviewers: #mercurial, ttung, rmcelroy Reviewed By: rmcelroy Subscribers: rmcelroy, durham, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D3534311 Signature: t1:3534311:1468275426:fe122646c8bd6c541e1889e73e9df28f86747ff2
34 lines
1.1 KiB
Perl
34 lines
1.1 KiB
Perl
$ extpath=`dirname $TESTDIR`
|
|
$ cp $extpath/hgext3rd/tweakdefaults.py $TESTTMP # use $TESTTMP substitution in message
|
|
$ cat >> $HGRCPATH << EOF
|
|
> [extensions]
|
|
> tweakdefaults=$TESTTMP/tweakdefaults.py
|
|
> rebase=
|
|
> EOF
|
|
|
|
Test histgrep and check that it respects the specified file
|
|
$ hg init repo
|
|
$ cd repo
|
|
$ mkdir histgrepdir
|
|
$ cd histgrepdir
|
|
$ echo 'ababagalamaga' > histgrepfile1
|
|
$ echo 'ababagalamaga' > histgrepfile2
|
|
$ hg add histgrepfile1
|
|
$ hg add histgrepfile2
|
|
$ hg commit -m "Added some files"
|
|
$ hg histgrep ababagalamaga histgrepfile1
|
|
histgrepdir/histgrepfile1:0:ababagalamaga
|
|
$ hg histgrep ababagalamaga
|
|
abort: can't run histgrep on the whole repo, please provide filenames
|
|
(this is disabled to avoid very slow greps over the whole repo)
|
|
[255]
|
|
|
|
Check that histgrep can be explicitly allowed to search over the whole repo
|
|
$ echo "[tweakdefaults]" >> $HGRCPATH
|
|
$ echo "allowfullrepohistgrep=on" >> $HGRCPATH
|
|
$ hg histgrep ababagalamaga
|
|
histgrepdir/histgrepfile1:0:ababagalamaga
|
|
histgrepdir/histgrepfile2:0:ababagalamaga
|
|
$ cd ..
|
|
|