mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
largefiles: docstrings for verify methods
This commit is contained in:
parent
e9a72ba5f1
commit
1f565a1b35
@ -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')
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user