largefiles: docstrings for verify methods

This commit is contained in:
Mads Kiilerich 2013-02-08 13:08:25 +01:00
parent e9a72ba5f1
commit 1f565a1b35
2 changed files with 7 additions and 2 deletions

View File

@ -133,6 +133,11 @@ class basestore(object):
def _verifyfile(self, cctx, cset, contents, standin, verified):
'''Perform the actual verification of a file in the store.
'cset' is only used in warnings.
'contents' controls verification of content hash.
'standin' is the standin path of the largefile to verify.
'verified' is maintained as a set of already verified files.
Returns _true_ if it is a standin and any problems are found!
'''
raise NotImplementedError('abstract method')

View File

@ -368,9 +368,9 @@ def uploadlfiles(ui, rsrc, rdst, files):
ui.progress(_('uploading largefiles'), None)
def verifylfiles(ui, repo, all=False, contents=False):
'''Verify that every big file revision in the current changeset
'''Verify that every largefile revision in the current changeset
exists in the central store. With --contents, also verify that
the contents of each big file revision are correct (SHA-1 hash
the contents of each local largefile file revision are correct (SHA-1 hash
matches the revision ID). With --all, check every changeset in
this repository.'''
if all: