mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
98d9269874
Summary: Create a fork of the Mercurial code that we can use to build server rpms. The hg servers will continue to exist for a few more months while we move the darkstorm and ediscovery use cases off them. In the mean time, we want to start making breaking changes to the client, so let's create a stable copy of the hg code to produce rpms for the hg servers. The fork is based off c7770c78d, the latest hg release. This copies the files as is, then adds some minor tweaks to get it to build: - Disables some lint checks that appear to be bypassed by path - sed replace eden/scm with eden/hg-server - Removed a dependency on scm/telemetry from the edenfs-client tests since scm/telemetry pulls in the original eden/scm/lib/configparser which conflicts with the hg-server conflict parser. allow-large-files Reviewed By: quark-zju Differential Revision: D27632557 fbshipit-source-id: b2f442f4ec000ea08e4d62de068750832198e1f4
89 lines
2.3 KiB
Perl
89 lines
2.3 KiB
Perl
#chg-compatible
|
|
|
|
$ enable amend
|
|
$ disable treemanifest
|
|
|
|
$ . "$TESTDIR/library.sh"
|
|
$ . "$TESTDIR/infinitepush/library.sh"
|
|
$ setconfig extensions.commitcloud=
|
|
|
|
$ setupcommon
|
|
|
|
$ hginit server
|
|
$ cd server
|
|
$ setupserver
|
|
$ setconfig remotefilelog.server=true
|
|
|
|
$ touch base
|
|
$ hg commit -Aqm base
|
|
$ cd ..
|
|
|
|
$ hgcloneshallow ssh://user@dummy/server shallow -q
|
|
1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over *.*s (glob) (?)
|
|
$ cd shallow
|
|
|
|
Test pushing of specific sets of commits
|
|
$ hg debugmakepublic .
|
|
$ drawdag <<'EOS'
|
|
> B C
|
|
> | |
|
|
> A1 A2 D1 D2 D3 E1 E2
|
|
> \| \| | \ /
|
|
> . . . .
|
|
> # amend: A1 -> A2
|
|
> # amend: D1 -> D2 -> D3
|
|
> # rebase: E1 -> E2
|
|
> EOS
|
|
$ hg book -r $E1 pinnedvisible --hidden
|
|
$ hg up $D2 -q --hidden
|
|
|
|
Check backing up top stack commit and mid commit
|
|
$ hg cloud check -r $A1 -r $D2 -r $E1
|
|
* not backed up (glob)
|
|
* not backed up (glob)
|
|
* not backed up (glob)
|
|
|
|
$ hg cloud backup --traceback
|
|
backing up stack rooted at 64164d1e0f82
|
|
backing up stack rooted at d0d71d09c927
|
|
backing up stack rooted at d79a807cba78
|
|
backing up stack rooted at eccc11f58a56
|
|
backing up stack rooted at 42952ab62cec
|
|
backing up stack rooted at 4903fdffd9c6
|
|
commitcloud: backed up 8 commits
|
|
remote: pushing 2 commits:
|
|
remote: 64164d1e0f82 A1
|
|
remote: 796f1f48de85 B
|
|
remote: pushing 2 commits:
|
|
remote: d0d71d09c927 A2
|
|
remote: daeeb2f180d6 C
|
|
remote: pushing 1 commit:
|
|
remote: d79a807cba78 D2
|
|
remote: pushing 1 commit:
|
|
remote: eccc11f58a56 D3
|
|
remote: pushing 1 commit:
|
|
remote: 42952ab62cec E1
|
|
remote: pushing 1 commit:
|
|
remote: 4903fdffd9c6 E2
|
|
|
|
$ hg cloud check -r $A1 -r $D2 -r $E1
|
|
64164d1e0f82f6a670c84728b83061df1b126b5c backed up
|
|
d79a807cba78db45ec042b74da65ebfd6d58eadd backed up
|
|
42952ab62cecf85e36eaab6965b6bf3f5e3e9fe1 backed up
|
|
$ hg cloud check -r $D1 --hidden
|
|
7c8a43610cd6d316f9bec941fa2677e5c7a90bf5 not backed up
|
|
|
|
Test --force option
|
|
$ hg cloud backup --debug
|
|
nothing to back up
|
|
|
|
$ hg cloud backup -f --debug
|
|
running * (glob)
|
|
sending hello command
|
|
sending between command
|
|
remote: * (glob)
|
|
remote: * (glob)
|
|
remote: * (glob)
|
|
sending knownnodes command
|
|
nothing to back up
|