Show More
@@ -1,39 +1,39 b'' | |||
|
1 | 1 | $ cat >> $HGRCPATH << EOF |
|
2 | 2 | > [extensions] |
|
3 | 3 | > strip= |
|
4 | 4 | > EOF |
|
5 | 5 | |
|
6 | 6 | Setup repo |
|
7 | 7 | |
|
8 | 8 | $ hg init repo |
|
9 | 9 | $ cd repo |
|
10 | 10 | |
|
11 | 11 | Test backups list and recover |
|
12 | 12 | |
|
13 | 13 | $ hg debugbackupbundle |
|
14 | 14 | no backup changesets found |
|
15 | 15 | |
|
16 | 16 | $ mkcommit() { |
|
17 | 17 | > echo "$1" > "$1" |
|
18 | 18 | > hg add "$1" |
|
19 | 19 | > hg ci -l $1 |
|
20 | 20 | > } |
|
21 | 21 | $ mkcommit a |
|
22 | 22 | $ mkcommit b |
|
23 | 23 | $ hg strip . |
|
24 | 24 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
25 |
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/d2ae7f538514-2953539b-backup.hg |
|
|
25 | saved backup bundle to $TESTTMP/repo/.hg/strip-backup/d2ae7f538514-2953539b-backup.hg | |
|
26 | 26 | $ hg debugbackupbundle |
|
27 | 27 | Recover changesets using: hg debugbackupbundle --recover <changeset hash> |
|
28 | 28 | |
|
29 | 29 | Available backup changesets: |
|
30 | 30 | * (glob) |
|
31 | 31 | d2ae7f538514 b |
|
32 | 32 | |
|
33 | 33 | $ hg debugbackupbundle --recover d2ae7f538514 |
|
34 | 34 | Unbundling d2ae7f538514 |
|
35 | 35 | adding changesets |
|
36 | 36 | adding manifests |
|
37 | 37 | adding file changes |
|
38 | 38 | added 1 changesets with 1 changes to 1 files |
|
39 | 39 | new changesets d2ae7f538514 (1 drafts) |
General Comments 0
You need to be logged in to leave comments.
Login now