mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
3bf1e7d0b3
Summary: Use the new stack-by-stack commit backup for infinitepushbackup as well as commitcloud. Reviewed By: DurhamG Differential Revision: D8241380 fbshipit-source-id: 0c1481ad1ab5759ab642d0b02c7fe08523056292
24 lines
608 B
Perl
24 lines
608 B
Perl
$ . $TESTDIR/require-ext.sh remotenames
|
|
$ . "$TESTDIR/library.sh"
|
|
$ . "$TESTDIR/infinitepush/library.sh"
|
|
$ setupcommon
|
|
|
|
Setup server
|
|
$ hg init repo
|
|
$ cd repo
|
|
$ setupserver
|
|
$ cd ..
|
|
|
|
Create client
|
|
$ hg clone ssh://user@dummy/repo client -q
|
|
$ cd client
|
|
|
|
Backup with remotenames enabled. Make sure that it works fine with anon heads
|
|
$ mkcommit remotenamespush
|
|
$ hg --config extensions.remotenames= pushbackup
|
|
starting backup .* (re)
|
|
backing up stack rooted at f4ca5164f72e
|
|
remote: pushing 1 commit:
|
|
remote: f4ca5164f72e remotenamespush
|
|
finished in \d+\.(\d+)? seconds (re)
|