sapling/eden/scm/tests/test-fb-hgext-rage.t
Adam Simpkins ab3a7cb21f Move fb-mercurial sources into an eden/scm subdirectory.
Summary:
In preparation for merging fb-mercurial sources to the Eden repository,
move everything from the top-level directory into an `eden/scm`
subdirectory.
2019-11-13 16:04:48 -08:00

46 lines
1.1 KiB
Perl

$ cat >> $HGRCPATH << EOF
> [extensions]
> blackbox=
> rage=
> smartlog=
> sparse=
> EOF
$ hg init repo
$ cd repo
#if osx
$ echo "[rage]" >> .hg/hgrc
$ echo "rpmbin = /""bin/rpm" >> .hg/hgrc
#endif
$ hg rage --preview | grep -o '^hg blackbox'
hg blackbox
$ hg rage --preview | grep -o '^hg cloud status'
hg cloud status
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
$ mkdir repo/.hg/infinitepushbackups
$ echo '{ "fakestate": "something" }' > repo/.hg/infinitepushbackups/infinitepushbackupstate_somestate
$ cd repo2
$ hg rage --preview | grep [f]akestate
"fakestate": "something"
$ cd ..
Create fake commit cloud state to be collected by rage
$ echo '{ "commit_cloud_workspace": "something" }' > repo/.hg/store/commitcloudstate.someamazingworkspace.json
$ cd repo2
$ hg rage --preview | grep [c]ommit_cloud_workspace
"commit_cloud_workspace": "something"