~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-08-16 01:58:16 UTC
  • mfrom: (2696.1.2 remove-deprecated)
  • Revision ID: pqm@pqm.ubuntu.com-20070816015816-95mkpi0q9k1hrsy3
Remove deprecated interfaces

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
from bzrlib.errors import BzrError, UnlistableStore, TransportNotPossible
40
40
from bzrlib.symbol_versioning import (
41
41
    deprecated_function,
42
 
    zero_eight,
43
 
    zero_eleven,
44
42
    )
45
43
from bzrlib.trace import mutter
46
44
from bzrlib.transport import Transport
176
174
        """
177
175
        fileid = osutils.safe_file_id(fileid)
178
176
        mutter("add store entry %r", fileid)
179
 
        if isinstance(f, str):
180
 
            symbol_versioning.warn(zero_eleven % 'Passing a string to Store.add',
181
 
                DeprecationWarning, stacklevel=2)
182
 
            f = StringIO(f)
183
 
        
184
177
        names = self._id_to_names(fileid, suffix)
185
178
        if self._transport.has_any(names):
186
179
            raise BzrError("store %r already contains id %r" 
375
368
            total += self._transport.stat(relpath).st_size
376
369
                
377
370
        return count, total
378
 
 
379
 
 
380
 
@deprecated_function(zero_eight)
381
 
def copy_all(store_from, store_to, pb=None):
382
 
    """Copy all ids from one store to another."""
383
 
    store_to.copy_all_ids(store_from, pb)