$ 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 ..