~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/HACKING

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-05-30 15:27:20 UTC
  • mfrom: (2495.3.2 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070530152720-qdjd3zs950nindfs
(Robert Collins) Add a BranchBuilder API for use by the test suite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
757
757
 
758
758
Please see bzrlib.treebuilder for more details.
759
759
 
 
760
BranchBuilder
 
761
~~~~~~~~~~~~~
 
762
 
 
763
The ``BranchBuilder`` interface allows the creation of test branches in a
 
764
quick and easy manner. A sample session::
 
765
 
 
766
  builder = BranchBuilder(self.get_transport().clone('relpath'))
 
767
  builder.build_commit()
 
768
  builder.build_commit()
 
769
  builder.build_commit()
 
770
  branch = builder.get_branch()
 
771
 
 
772
Please see bzrlib.branchbuilder for more details.
760
773
 
761
774
Doctests
762
775
--------