mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
ea8ba67697
Summary: Since state files have been changed, now it is one per path, we should dump them in a correct way Reviewed By: markbt Differential Revision: D14406311 fbshipit-source-id: 8d74a51e63028ec81bcf5e55ad117d3c960b4651
44 lines
1.1 KiB
Perl
44 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
|
|
|
|
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"
|