mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
e75b9fc1b1
Summary: This commit moves most of the stuff in hgext3rd and related tests to hg-crew/hgext and hg-crew/test respectively. The things that are not moved are the ones which require some more complex imports. Depends on D6675309 Test Plan: - tests are failing at this commit, fixes are in the following commits Reviewers: #sourcecontrol Differential Revision: https://phabricator.intern.facebook.com/D6675329
32 lines
979 B
Perl
32 lines
979 B
Perl
$ cat >> $HGRCPATH << EOF
|
|
> [extensions]
|
|
> tweakdefaults=$TESTDIR/../hgext3rd/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 ..
|
|
|