~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 04:08:15 UTC
  • Revision ID: mbp@sourcefrog.net-20050309040815-13242001617e4a06
import from baz patch-364

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
from pprint import pprint
84
84
from stat import *
85
85
from glob import glob
 
86
from ElementTree import Element, ElementTree, SubElement
86
87
 
87
88
import bzrlib
88
89
from bzrlib.store import ImmutableStore
115
116
## TODO: Perhaps make UUIDs predictable in test mode to make it easier
116
117
## to compare output?
117
118
 
 
119
## TODO: Is ElementTree really all that much better for our purposes?
 
120
## Perhaps using the standard MiniDOM would be enough?
 
121
 
 
122
 
 
123
 
118
124
 
119
125
 
120
126
 
324
330
 
325
331
 
326
332
 
327
 
def cmd_log(timezone='original'):
 
333
def cmd_log():
328
334
    """Show log of this branch.
329
335
 
330
336
    :todo: Options for utc; to show ids; to limit range; etc.
331
337
    """
332
 
    Branch('.').write_log(show_timezone=timezone)
 
338
    Branch('.').write_log()
333
339
 
334
340
 
335
341
def cmd_ls(revision=None, verbose=False):
394
400
 
395
401
 
396
402
 
397
 
def cmd_local_time_offset():
398
 
    print bzrlib.osutils.local_time_offset()
399
 
 
400
 
 
401
 
 
402
403
def cmd_commit(message, verbose=False):
403
404
    Branch('.').commit(message, verbose=verbose)
404
405
 
496
497
    'message':                unicode,
497
498
    'revision':               int,
498
499
    'show-ids':               None,
499
 
    'timezone':               str,
500
500
    'verbose':                None,
501
501
    'version':                None,
502
502
    }
514
514
    'commit':                 ['message', 'verbose'],
515
515
    'diff':                   ['revision'],
516
516
    'inventory':              ['revision'],
517
 
    'log':                    ['show-ids', 'timezone'],
518
517
    'ls':                     ['revision', 'verbose'],
 
518
    'status':                 ['all'],
 
519
    'log':                    ['show-ids'],
519
520
    'remove':                 ['verbose'],
520
 
    'status':                 ['all'],
521
521
    }
522
522
 
523
523