~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/integration.txt

resolve conflicts against trunk

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``. 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
 
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
33
38
so you need to use the context manager manually::
34
39
 
35
40
  # This sets up your ~/.bzr.log, ui factory and so on and so forth. It is