~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Daniel Watkins
  • Date: 2008-03-03 11:02:19 UTC
  • mto: This revision was merged to the branch mainline in revision 3583.
  • Revision ID: d.m.watkins@warwick.ac.uk-20080303110219-gc404v9hk5nwhjf1
Made UI changes to include CLI options.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2379
2379
 
2380
2380
    _see_also = ['reconcile']
2381
2381
    takes_args = ['path?']
2382
 
    takes_options = ['verbose']
 
2382
    takes_options = ['verbose',
 
2383
                     Option('branch', help="Check the branch related to the"
 
2384
                                           " current directory."),
 
2385
                     Option('repo', help="Check the repository related to the"
 
2386
                                         " current directory."),
 
2387
                     Option('tree', help="Check the working tree related to"
 
2388
                                         " the current directory.")]
2383
2389
 
2384
 
    def run(self, path=None, verbose=False):
 
2390
    def run(self, path=None, verbose=False, branch=True, repo=None, tree=None):
2385
2391
        from bzrlib.check import check_dwim
2386
2392
        if path is None:
2387
2393
            path = '.'
2388
 
        check_dwim(path, verbose)
 
2394
        check_dwim(path, verbose, do_branch=branch, do_repo=repo, do_tree=tree)
2389
2395
 
2390
2396
 
2391
2397
class cmd_upgrade(Command):