~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzr.py

  • Committer: Martin Pool
  • Date: 2005-03-13 05:32:33 UTC
  • Revision ID: mbp@sourcefrog.net-20050313053233-e30a4f28aef48f9d
fix up parse_args doctest

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
"""
64
64
 
65
65
# not currently working:
 
66
#  bzr check
 
67
#       Run internal consistency checks.
66
68
#  bzr info
67
69
#       Show some information about this branch.
68
70
 
113
115
## TODO: Perhaps make UUIDs predictable in test mode to make it easier
114
116
## to compare output?
115
117
 
116
 
## TODO: Some kind of global code to generate the right Branch object
117
 
## to work on.  Almost, but not quite all, commands need one, and it
118
 
## can be taken either from their parameters or their working
119
 
## directory.
120
 
 
 
118
 
 
119
 
 
120
 
 
121
######################################################################
 
122
# check status
121
123
 
122
124
 
123
125
def cmd_status(all=False):
736
738
    ## than just a backtrace.
737
739
 
738
740
    try:
739
 
        # TODO: Lift into separate function in trace.py
740
 
        # TODO: Also show contents of /etc/lsb-release, if it can be parsed.
741
 
        #       Perhaps that should eventually go into the platform library?
742
 
        # TODO: If the file doesn't exist, add a note describing it.
743
741
        t = bzrlib.trace._tracefile
744
742
        t.write('-' * 60 + '\n')
745
743
        t.write('bzr invoked at %s\n' % format_date(time.time()))
746
 
        t.write('  by %s on %s\n' % (bzrlib.osutils.username(), socket.getfqdn()))
 
744
        t.write('  by %s on %s\n' % (bzrlib.osutils.username(), socket.gethostname()))
747
745
        t.write('  arguments: %r\n' % argv)
748
746
 
749
747
        starttime = os.times()[4]