~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

  • Committer: Daniel Watkins
  • Date: 2008-03-03 13:53:25 UTC
  • mto: This revision was merged to the branch mainline in revision 3583.
  • Revision ID: d.m.watkins@warwick.ac.uk-20080303135325-qq06p198tifrx5k3
Each option selects only the specific thing to be checked.

Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
    return tree, repo, branch
301
301
 
302
302
 
303
 
def check_dwim(path, verbose, do_branch=True, do_repo=True, do_tree=True):
 
303
def check_dwim(path, verbose, do_branch=False, do_repo=False, do_tree=False):
304
304
    tree, repo, branch = _get_elements(path)
305
305
 
306
 
    if do_tree and tree is not None:
307
 
        note("Checking working tree at '%s'." 
308
 
             % (tree.bzrdir.root_transport.base,))
309
 
        _check_working_tree(tree)
 
306
    if do_tree:
 
307
        if tree is not None:
 
308
            note("Checking working tree at '%s'." 
 
309
                 % (tree.bzrdir.root_transport.base,))
 
310
            _check_working_tree(tree)
310
311
 
311
 
    if do_branch and branch is not None:
 
312
    if branch is not None:
312
313
        # We have a branch
313
314
        if repo is None:
314
315
            # The branch is in a shared repository