~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/HACKING

  • Committer: John Arbash Meinel
  • Date: 2007-05-30 12:45:23 UTC
  • mfrom: (2466.7.10 build-branch)
  • mto: This revision was merged to the branch mainline in revision 2498.
  • Revision ID: john@arbash-meinel.com-20070530124523-gxsp1617s70fhwqc
(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
--------