~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests.py

  • Committer: Martin Pool
  • Date: 2005-05-09 03:03:55 UTC
  • Revision ID: mbp@sourcefrog.net-20050509030355-ad6ab558d1362959
- Don't give an error if the trace file can't be opened

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
>>> import bzrlib, os
31
31
>>> from bzrlib import ScratchBranch
32
32
>>> from bzrlib.osutils import isdir, isfile
33
 
>>> bzrlib.commands.cmd_rocks()
34
 
it sure does!
35
 
 
36
 
Hey, nice place to begin.
37
33
 
38
34
The basic object is a Branch.  We have a special helper class
39
35
ScratchBranch that automatically makes a directory and cleans itself
105
101
  >>> r = b.get_revision(b.lookup_revision(1))
106
102
  >>> r.message
107
103
  'start hello world'
108
 
  >>> b.write_log(show_timezone='utc')
 
104
  >>> bzrlib.show_log(b, show_timezone='utc')
109
105
  ----------------------------------------
110
106
  revno: 1
111
107
  committer: foo@nowhere
211
207
    foo => subdir/foo
212
208
    >>> b.show_status()
213
209
    R       foo => subdir/foo
214
 
    >>> bzrlib.commands.cmd_renames(b.base)
215
 
    foo => subdir/foo
216
210
    >>> b.commit("move foo to subdir")
217
211
    >>> isfile(b.abspath('foo'))
218
212
    False