/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/store/text.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
import gzip
26
26
import os
27
27
 
28
 
from bzrlib import osutils
29
 
from bzrlib.errors import BzrError, NoSuchFile, FileExists
30
 
import bzrlib.store
31
 
from bzrlib.trace import mutter
32
 
 
33
 
 
34
 
 
35
 
class TextStore(bzrlib.store.TransportStore):
 
28
from breezy import osutils
 
29
from breezy.errors import BzrError, NoSuchFile, FileExists
 
30
import breezy.store
 
31
from breezy.trace import mutter
 
32
 
 
33
 
 
34
 
 
35
class TextStore(breezy.store.TransportStore):
36
36
    """Store that holds files indexed by unique names.
37
37
 
38
38
    Files can be added, but not modified once they are in.  Typically
44
44
 
45
45
    def _add_compressed(self, fn, f):
46
46
        from cStringIO import StringIO
47
 
        from bzrlib.osutils import pumpfile
 
47
        from breezy.osutils import pumpfile
48
48
 
49
49
        if isinstance(f, basestring):
50
50
            f = StringIO(f)