/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/doc/api/branch.txt

Branch now uses BzrDir reasonably sanely.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
A Branch represents a series of commits and merges carried out by a user.
4
4
 
5
 
Branches are created at urls or file paths:
 
5
Branches are created by BzrDir's:
6
6
 
7
 
   >>> from tempfile import mkdtemp
 
7
   >>> from bzrlib.bzrdir import ScratchDir
8
8
   >>> from bzrlib.branch import Branch
9
 
   >>> branchdir = mkdtemp()
10
 
   >>> new_branch = Branch.create(branchdir)
 
9
   >>> dir = ScratchDir()
 
10
   >>> new_branch = dir.create_branch()
 
11
 
 
12
 
 
13
Existing Branches can be opened directly:
 
14
 
 
15
   >>> another_instance = Branch.open(dir.transport.clone('..').base)
 
16
 
 
17
or via the BzrDir:
 
18
 
 
19
   >>> still_the_same_branch = dir.open_branch()
 
20
 
11
21
 
12
22
A branch has a history of revisions on it:
13
23