~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests.py

  • Committer: Martin Pool
  • Date: 2005-05-03 08:00:27 UTC
  • Revision ID: mbp@sourcefrog.net-20050503080027-908edb5b39982198
doc

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.
33
37
 
34
38
The basic object is a Branch.  We have a special helper class
35
39
ScratchBranch that automatically makes a directory and cleans itself
101
105
  >>> r = b.get_revision(b.lookup_revision(1))
102
106
  >>> r.message
103
107
  'start hello world'
104
 
  >>> bzrlib.show_log(b, show_timezone='utc')
 
108
  >>> b.write_log(show_timezone='utc')
105
109
  ----------------------------------------
106
110
  revno: 1
107
111
  committer: foo@nowhere
207
211
    foo => subdir/foo
208
212
    >>> b.show_status()
209
213
    R       foo => subdir/foo
 
214
    >>> bzrlib.commands.cmd_renames(b.base)
 
215
    foo => subdir/foo
210
216
    >>> b.commit("move foo to subdir")
211
217
    >>> isfile(b.abspath('foo'))
212
218
    False