sapling/tests/test-fb-hgext-rage.t
Kostia Balytskyi b27a46c987 fb-hgext: fix copied fb-hgext tests
Summary:
This is a big bulk of generally almost-obvious fixes to the moved tests. Mostly
these fixes have to do with correct importing of the actual extensions.

Depends on D6675329

Test Plan:
- ./run-tests.py fails less after this commit
- see further commits for more test fixes

Reviewers: #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D6675344
2018-01-09 03:06:09 -08:00

32 lines
644 B
Perl

$ cat >> $HGRCPATH << EOF
> [extensions]
> rage=
> EOF
$ hg init repo
$ cd repo
#if osx
$ echo "[rage]" >> .hg/hgrc
$ echo "rpmbin = /bin/rpm" >> .hg/hgrc
#endif
$ hg rage --preview | grep -o 'blackbox'
blackbox
Test with shared repo
$ cat >> $HGRCPATH << EOF
> [extensions]
> share=
> EOF
$ cd ..
$ hg share repo repo2
updating working directory
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
Create fake infinitepush backup state to be collected by rage
$ echo "fakestate" > repo/.hg/infinitepushbackupstate
$ cd repo2
$ hg rage --preview | grep -o 'fakestate'
fakestate