sapling/tests/test-fb-hgext-rage.t
Jun Wu 7fa918cefd perftweaks: move commit head detection removal logic to core
Summary: Also change the internal API so it no longer accepts the "heads" argument.

Reviewed By: ryanmce

Differential Revision: D6745865

fbshipit-source-id: 368742be49b192f7630421003552d0a10eb0b76d
2018-04-13 21:50:52 -07:00

32 lines
646 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