~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

Check.check now takes a path rather than a branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2370
2370
    """
2371
2371
 
2372
2372
    _see_also = ['reconcile']
2373
 
    takes_args = ['branch?']
 
2373
    takes_args = ['path?']
2374
2374
    takes_options = ['verbose']
2375
2375
 
2376
 
    def run(self, branch=None, verbose=False):
 
2376
    def run(self, path=None, verbose=False):
2377
2377
        from bzrlib.check import check
2378
 
        if branch is None:
2379
 
            branch_obj = Branch.open_containing('.')[0]
2380
 
        else:
2381
 
            branch_obj = Branch.open(branch)
2382
 
        check(branch_obj, verbose)
 
2378
        if path is None:
 
2379
            path = '.'
 
2380
        check(path, verbose)
2383
2381
        # bit hacky, check the tree parent is accurate
2384
2382
        try:
2385
2383
            if branch is None: