/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/bundle/bundle_data.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import os
24
24
import pprint
25
25
 
26
 
from brzlib import (
 
26
from breezy import (
27
27
    osutils,
28
28
    timestamp,
29
29
    )
30
 
from brzlib.bundle import apply_bundle
31
 
from brzlib.errors import (
 
30
from breezy.bundle import apply_bundle
 
31
from breezy.errors import (
32
32
    TestamentMismatch,
33
33
    BzrError,
34
34
    )
35
 
from brzlib.inventory import (
 
35
from breezy.inventory import (
36
36
    Inventory,
37
37
    InventoryDirectory,
38
38
    InventoryFile,
39
39
    InventoryLink,
40
40
    )
41
 
from brzlib.osutils import sha_string, pathjoin
42
 
from brzlib.revision import Revision, NULL_REVISION
43
 
from brzlib.testament import StrictTestament
44
 
from brzlib.trace import mutter, warning
45
 
from brzlib.tree import Tree
46
 
from brzlib.xml5 import serializer_v5
 
41
from breezy.osutils import sha_string, pathjoin
 
42
from breezy.revision import Revision, NULL_REVISION
 
43
from breezy.testament import StrictTestament
 
44
from breezy.trace import mutter, warning
 
45
from breezy.tree import Tree
 
46
from breezy.xml5 import serializer_v5
47
47
 
48
48
 
49
49
class RevisionInfo(object):
140
140
        split up, based on the assumptions that can be made
141
141
        when information is missing.
142
142
        """
143
 
        from brzlib.timestamp import unpack_highres_date
 
143
        from breezy.timestamp import unpack_highres_date
144
144
        # Put in all of the guessable information.
145
145
        if not self.timestamp and self.date:
146
146
            self.timestamp, self.timezone = unpack_highres_date(self.date)
784
784
 
785
785
def patched_file(file_patch, original):
786
786
    """Produce a file-like object with the patched version of a text"""
787
 
    from brzlib.patches import iter_patched
788
 
    from brzlib.iterablefile import IterableFile
 
787
    from breezy.patches import iter_patched
 
788
    from breezy.iterablefile import IterableFile
789
789
    if file_patch == "":
790
790
        return IterableFile(())
791
791
    # string.splitlines(True) also splits on '\r', but the iter_patched code