##// END OF EJS Templates
largefiles: make verify --lfa and --lfc work without --large...
Mads Kiilerich -
r18547:2e3ec9e6 default
parent child Browse files
Show More
@@ -274,7 +274,7 b' def overrideverify(orig, ui, repo, *pats'
274 contents = opts.pop('lfc', False)
274 contents = opts.pop('lfc', False)
275
275
276 result = orig(ui, repo, *pats, **opts)
276 result = orig(ui, repo, *pats, **opts)
277 if large:
277 if large or all or contents:
278 result = result or lfcommands.verifylfiles(ui, repo, all, contents)
278 result = result or lfcommands.verifylfiles(ui, repo, all, contents)
279 return result
279 return result
280
280
@@ -52,11 +52,12 b' def uisetup(ui):'
52 entry = extensions.wrapcommand(commands.table, 'verify',
52 entry = extensions.wrapcommand(commands.table, 'verify',
53 overrides.overrideverify)
53 overrides.overrideverify)
54
54
55 verifyopt = [('', 'large', None, _('verify largefiles')),
55 verifyopt = [('', 'large', None,
56 _('verify that all largefiles in current revision exists')),
56 ('', 'lfa', None,
57 ('', 'lfa', None,
57 _('verify all revisions of largefiles not just current')),
58 _('verify largefiles in all revisions, not just current')),
58 ('', 'lfc', None,
59 ('', 'lfc', None,
59 _('verify largefile contents not just existence'))]
60 _('verify local largefile contents, not just existence'))]
60 entry[1].extend(verifyopt)
61 entry[1].extend(verifyopt)
61
62
62 entry = extensions.wrapcommand(commands.table, 'debugstate',
63 entry = extensions.wrapcommand(commands.table, 'debugstate',
@@ -1217,7 +1217,7 b' revert some files to an older revision'
1217
1217
1218 - verifying all revisions will fail because we didn't clone all largefiles to d:
1218 - verifying all revisions will fail because we didn't clone all largefiles to d:
1219 $ echo 'T-shirt' > $TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4
1219 $ echo 'T-shirt' > $TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4
1220 $ hg verify -q --large --lfa --lfc
1220 $ hg verify -q --lfa --lfc
1221 changeset 0:30d30fe6a5be: large1 references missing $TESTTMP/d/.hg/largefiles/4669e532d5b2c093a78eca010077e708a071bb64
1221 changeset 0:30d30fe6a5be: large1 references missing $TESTTMP/d/.hg/largefiles/4669e532d5b2c093a78eca010077e708a071bb64
1222 changeset 0:30d30fe6a5be: sub/large2 references missing $TESTTMP/d/.hg/largefiles/1deebade43c8c498a3c8daddac0244dc55d1331d
1222 changeset 0:30d30fe6a5be: sub/large2 references missing $TESTTMP/d/.hg/largefiles/1deebade43c8c498a3c8daddac0244dc55d1331d
1223 changeset 1:ce8896473775: large1 references missing $TESTTMP/d/.hg/largefiles/5f78770c0e77ba4287ad6ef3071c9bf9c379742f
1223 changeset 1:ce8896473775: large1 references missing $TESTTMP/d/.hg/largefiles/5f78770c0e77ba4287ad6ef3071c9bf9c379742f
General Comments 0
You need to be logged in to leave comments. Login now