~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-05-05 06:51:01 UTC
  • Revision ID: mbp@sourcefrog.net-20050505065100-ccd10da9e78c2b27
- New --show-ids option for bzr log

Show diffs side-by-side

added added

removed removed

Lines of Context:
416
416
class cmd_log(Command):
417
417
    """Show log of this branch.
418
418
 
419
 
    TODO: Options to show ids; to limit range; etc.
 
419
    TODO: Option to limit range.
 
420
 
 
421
    TODO: Perhaps show most-recent first with an option for last.
 
422
 
 
423
    TODO: Option to limit to only a single file or to get log for a
 
424
          different directory.
420
425
    """
421
 
    takes_options = ['timezone', 'verbose']
422
 
    def run(self, timezone='original', verbose=False):
423
 
        Branch('.', lock_mode='r').write_log(show_timezone=timezone, verbose=verbose)
 
426
    takes_options = ['timezone', 'verbose', 'show-ids']
 
427
    def run(self, timezone='original', verbose=False, show_ids=False):
 
428
        b = Branch('.', lock_mode='r')
 
429
        b.write_log(show_timezone=timezone,
 
430
                    verbose=verbose,
 
431
                    show_ids=show_ids)
424
432
 
425
433
 
426
434
class cmd_ls(Command):