mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
ded4c889ca
Summary: We need to start fixing test failures to test hgbuild e2e :) Test Plan: run-tests.py against changed files shows that these ones were fixed Reviewers: quark, mjpieters, rmcelroy, simonfar Subscribers: mjpieters, #sourcecontrol Differential Revision: https://phabricator.intern.facebook.com/D3907217
45 lines
1.2 KiB
Perl
45 lines
1.2 KiB
Perl
$ cat >> $HGRCPATH << EOF
|
|
> [extensions]
|
|
> backups=$TESTDIR/../hgext3rd/backups.py
|
|
> strip=
|
|
> EOF
|
|
|
|
Setup repo
|
|
|
|
$ hg init repo
|
|
$ cd repo
|
|
|
|
Test backups list and recover
|
|
|
|
$ mkcommit() {
|
|
> echo "$1" > "$1"
|
|
> hg add "$1"
|
|
> hg ci -l $1
|
|
> }
|
|
$ mkcommit a
|
|
$ mkcommit b
|
|
$ hg strip .
|
|
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
|
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/d2ae7f538514-2953539b-backup.hg (glob)
|
|
$ hg backups
|
|
Recover changesets using: hg backups --recover <changeset hash>
|
|
|
|
* (glob)
|
|
d2ae7f538514 b
|
|
|
|
$ hg backups --config experimental.evolution=createmarkers
|
|
Marker creation is enabled so no changeset should be
|
|
* (glob)
|
|
stripped changesets. If you are trying to recover a changeset hidden from a
|
|
previous command, use hg journal to get its sha1 and you will be able to access
|
|
it directly without recovering a backup.Recover changesets using: hg backups --recover <changeset hash>
|
|
|
|
* (glob)
|
|
d2ae7f538514 b
|
|
$ hg backups --recover d2ae7f538514
|
|
Unbundling d2ae7f538514
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|
|
added 1 changesets with 1 changes to 1 files
|