/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 breezy/branch.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-03-24 01:19:29 UTC
  • mfrom: (6883.8.3 memorytree)
  • Revision ID: breezy.the.bot@gmail.com-20180324011929-fdts9rsc48id66qw
Add Branch.create_memorytree.

Merged from https://code.launchpad.net/~jelmer/brz/memorytree/+merge/341358

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    config as _mod_config,
27
27
    debug,
28
28
    fetch,
 
29
    memorytree,
29
30
    repository,
30
31
    revision as _mod_revision,
31
32
    tag as _mod_tag,
1513
1514
        if_present_fetch.discard(_mod_revision.NULL_REVISION)
1514
1515
        return must_fetch, if_present_fetch
1515
1516
 
 
1517
    def create_memorytree(self):
 
1518
        """Create a memory tree for this branch.
 
1519
 
 
1520
        :return: An in-memory MutableTree instance
 
1521
        """
 
1522
        return memorytree.MemoryTree.create_on_branch(self)
 
1523
 
1516
1524
 
1517
1525
class BranchFormat(controldir.ControlComponentFormat):
1518
1526
    """An encapsulation of the initialization and open routines for a format.