~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

Various other cleanup as requested by reviews.

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
    
248
248
    Results are reported through logging.
249
249
    
250
 
    Deprecated in 1.3.  Please use check_branch instead.
 
250
    Deprecated in 1.6.  Please use check_branch instead.
251
251
 
252
252
    :raise BzrCheckError: if there's a consistency error.
253
253
    """
270
270
 
271
271
 
272
272
def check_dwim(path, verbose):
273
 
    tree, branch, repo = BzrDir.open_containing_tree_branch_or_repository(path)
 
273
    tree, branch, repo, relpath = BzrDir.open_containing_tree_branch_or_repository(path)
274
274
 
275
275
    if tree is not None:
276
276
        note("Checking working tree at '%s'." 
277
277
             % (tree.bzrdir.root_transport.base,))
278
 
        tree.check()
 
278
        tree._check()
279
279
 
280
280
    if branch is not None:
281
281
        # We have a branch