2019-12-10 02:24:31 +03:00
|
|
|
#chg-compatible
|
|
|
|
|
2019-05-20 16:11:59 +03:00
|
|
|
$ enable amend
|
|
|
|
$ setconfig infinitepushbackup.hostname=testhost
|
2017-04-05 10:56:28 +03:00
|
|
|
|
|
|
|
$ . "$TESTDIR/library.sh"
|
2018-01-10 21:44:15 +03:00
|
|
|
$ . "$TESTDIR/infinitepush/library.sh"
|
2017-04-05 10:56:28 +03:00
|
|
|
$ setupcommon
|
|
|
|
|
|
|
|
Setup server
|
|
|
|
$ hg init repo
|
|
|
|
$ cd repo
|
|
|
|
$ setupserver
|
|
|
|
$ cd ..
|
|
|
|
|
|
|
|
Setup backupsource
|
|
|
|
$ hg clone ssh://user@dummy/repo backupsource -q
|
|
|
|
$ cd backupsource
|
|
|
|
|
|
|
|
Do a normal backup
|
|
|
|
$ mkcommit first
|
2019-05-20 16:11:59 +03:00
|
|
|
$ hg cloud backup
|
2018-06-05 14:24:26 +03:00
|
|
|
backing up stack rooted at b75a450e74d5
|
2020-02-28 04:51:13 +03:00
|
|
|
commitcloud: backed up 1 commit
|
2017-04-05 10:56:28 +03:00
|
|
|
remote: pushing 1 commit:
|
|
|
|
remote: b75a450e74d5 first
|
|
|
|
|
|
|
|
Make a commit, than prune a commit, than create a bookmark on top of it.
|
|
|
|
Do a backup and try to restore. Make sure it doesn't fail
|
|
|
|
$ hg up -q null
|
|
|
|
$ mkcommit tobepruned
|
|
|
|
$ hg log -r . -T '{node}\n'
|
|
|
|
edb281c9cc7e2e51c382b6f254d1967fdfa5e6ff
|
|
|
|
$ hg prune .
|
|
|
|
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
|
|
|
working directory now at 000000000000
|
|
|
|
1 changesets pruned
|
2018-04-07 10:36:49 +03:00
|
|
|
hint[strip-hide]: 'hg strip' may be deprecated in the future - use 'hg hide' instead
|
|
|
|
hint[hint-ack]: use 'hg hint --ack strip-hide' to silence these hints
|
2017-04-05 10:56:28 +03:00
|
|
|
$ hg --hidden book -r edb281c9cc7e2e51c382b6f254d1967fdfa5e6ff newbookonpruned
|
2019-05-20 16:11:59 +03:00
|
|
|
$ hg cloud backup
|
2019-03-20 21:19:33 +03:00
|
|
|
backing up stack rooted at edb281c9cc7e
|
2020-02-28 04:51:13 +03:00
|
|
|
commitcloud: backed up 1 commit
|
2019-03-20 21:19:33 +03:00
|
|
|
remote: pushing 1 commit:
|
|
|
|
remote: edb281c9cc7e tobepruned
|
2017-04-05 10:56:28 +03:00
|
|
|
|
|
|
|
Restore the repo
|
|
|
|
$ cd ..
|
|
|
|
$ hg clone ssh://user@dummy/repo restored -q
|
|
|
|
$ cd restored
|
2019-05-20 16:11:59 +03:00
|
|
|
$ hg cloud restorebackup
|
|
|
|
restoring backup for test from $TESTTMP/backupsource on testhost
|
2017-04-05 10:56:28 +03:00
|
|
|
pulling from ssh://user@dummy/repo
|
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
|
|
|
added 1 changesets with 1 changes to 1 files
|
2019-03-20 21:19:33 +03:00
|
|
|
adding changesets
|
|
|
|
adding manifests
|
|
|
|
adding file changes
|
2019-11-07 21:50:10 +03:00
|
|
|
added 1 changesets with 1 changes to 1 files
|