~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/integration.txt

  • Committer: Martin
  • Date: 2011-02-25 18:52:53 UTC
  • mto: This revision was merged to the branch mainline in revision 5691.
  • Revision ID: gzlist@googlemail.com-20110225185253-y0kplvee84n7pvgn
Use correct format character for unsigned int gc_chk_sha1_record members

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
bzrlib needs ways to handle user input, passwords, a place to emit
28
28
progress bars, logging setup appropriately for your program. The easiest
29
29
way to set all this up in the same fashion ``bzr`` does is to call
30
 
``bzrlib.initialize``. 
31
 
 
32
 
This returns a context manager within which bzrlib functions will work
33
 
correctly. See the pydoc for ``bzrlib.initialize`` for more information. 
34
 
(You can get away without entering the context manager, because the setup
35
 
work happens directly from ``initialize``.)
36
 
 
37
 
In Python 2.4 the ``with`` keyword is not supported and
 
30
``bzrlib.initialize``. This returns a context manager within which bzrlib
 
31
functions will work correctly. See the pydoc for ``bzrlib.initialize`` for
 
32
more information. In Python 2.4 the ``with`` keyword is not supported and
38
33
so you need to use the context manager manually::
39
34
 
40
35
  # This sets up your ~/.bzr.log, ui factory and so on and so forth. It is