~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/HACKING.txt

Bring in both branch-builder threads.

Show diffs side-by-side

added added

removed removed

Lines of Context:
406
406
    subprocess you can use ``run_bzr_subprocess``. By default the spawned
407
407
    process will not load plugins unless ``--allow-plugins`` is supplied.
408
408
 
 
409
When writing library functionality, it is often necessary to set up a
 
410
branch with a certain history. Most current tests do this by inheriting
 
411
from ``TestCaseWithTransport`` and using the ``make_branch_and_tree``
 
412
helper to give them a ``WorkingTree`` that they can commit to. However,
 
413
there is a newer api available from ``TestCaseWithMemoryTransport`` using
 
414
the ``make_branch_builder`` helper. This helper is preferred, because it
 
415
can build the changes in memory, rather than on disk. Tests that are
 
416
explictly testing how we work with disk objects should, of course, use a
 
417
real ``WorkingTree``. See ``bzrlib/branch_builder.py`` for how to use the
 
418
class.
 
419
 
409
420
 
410
421
Doctests
411
422
--------