~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzr.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-09 07:00:48 UTC
  • Revision ID: mbp@sourcefrog.net-20050309070048-a0f0a23015e90267
new --timezone option for bzr log

Show diffs side-by-side

added added

removed removed

Lines of Context:
324
324
 
325
325
 
326
326
 
327
 
def cmd_log():
 
327
def cmd_log(timezone):
328
328
    """Show log of this branch.
329
329
 
330
330
    :todo: Options for utc; to show ids; to limit range; etc.
331
331
    """
332
 
    Branch('.').write_log()
 
332
    Branch('.').write_log(show_timezone=timezone)
333
333
 
334
334
 
335
335
def cmd_ls(revision=None, verbose=False):
496
496
    'message':                unicode,
497
497
    'revision':               int,
498
498
    'show-ids':               None,
 
499
    'timezone':               str,
499
500
    'verbose':                None,
500
501
    'version':                None,
501
502
    }
513
514
    'commit':                 ['message', 'verbose'],
514
515
    'diff':                   ['revision'],
515
516
    'inventory':              ['revision'],
 
517
    'log':                    ['show-ids', 'timezone'],
516
518
    'ls':                     ['revision', 'verbose'],
 
519
    'remove':                 ['verbose'],
517
520
    'status':                 ['all'],
518
 
    'log':                    ['show-ids'],
519
 
    'remove':                 ['verbose'],
520
521
    }
521
522
 
522
523