mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
ef2721d49e
Summary: The hg pasterage is the command that people run to share debug info when something is wrong with their repository. Having the information about CommitCloud related stuff will help with all the future debugging of that. Reviewed By: mitrandir77 Differential Revision: D15744065 fbshipit-source-id: 094ccdf79c38fed78f5106a1617a5af09e1870e8
46 lines
1.1 KiB
Perl
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"
|