Show More
@@ -5669,7 +5669,7 def push(ui, repo, dest=None, **opts): | |||
|
5669 | 5669 | |
|
5670 | 5670 | @command( |
|
5671 | 5671 | b'recover', |
|
5672 |
[(b'', b'verify', |
|
|
5672 | [(b'', b'verify', False, b"run `hg verify` after successful recover"),], | |
|
5673 | 5673 | helpcategory=command.CATEGORY_MAINTENANCE, |
|
5674 | 5674 | ) |
|
5675 | 5675 | def recover(ui, repo, **opts): |
@@ -356,7 +356,7 Clean cached versions | |||
|
356 | 356 | $ cat .hg/store/fncache | sort |
|
357 | 357 | data/y.i |
|
358 | 358 | data/z.i |
|
359 | $ hg recover | |
|
359 | $ hg recover --verify | |
|
360 | 360 | rolling back interrupted transaction |
|
361 | 361 | checking changesets |
|
362 | 362 | checking manifests |
@@ -15,11 +15,7 | |||
|
15 | 15 | |
|
16 | 16 | $ hg recover |
|
17 | 17 | rolling back interrupted transaction |
|
18 | checking changesets | |
|
19 | checking manifests | |
|
20 | crosschecking files in changesets and manifests | |
|
21 | checking files | |
|
22 | checked 1 changesets with 1 changes to 1 files | |
|
18 | (verify step skipped, run `hg verify` to check your repository content) | |
|
23 | 19 | |
|
24 | 20 | recover, explicit verify |
|
25 | 21 |
@@ -25,7 +25,9 | |||
|
25 | 25 | > else |
|
26 | 26 | > echo "(no journal)" |
|
27 | 27 | > fi |
|
28 |
> ls .hg/store/journal >/dev/null 2>&1 |
|
|
28 | > if ls .hg/store/journal >/dev/null 2>&1; then | |
|
29 | > hg recover --verify | |
|
30 | > fi | |
|
29 | 31 | > ls .hg/strip-backup/* >/dev/null 2>&1 && hg unbundle -q .hg/strip-backup/* |
|
30 | 32 | > rm -rf .hg/strip-backup |
|
31 | 33 | > } |
General Comments 0
You need to be logged in to leave comments.
Login now