~bzr/bzr/bzr.1.5

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-07 07:27:16 UTC
  • mfrom: (3408.2.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080507072716-lr54bdt55km4feso
(mbp) Remove code deprecated prior to 1.1 and its tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
from bzrlib.decorators import needs_read_lock, needs_write_lock
43
43
from bzrlib.hooks import Hooks
44
 
from bzrlib.symbol_versioning import (deprecated_method,
45
 
                                      zero_sixteen,
46
 
                                      )
47
44
from bzrlib.trace import mutter, mutter_callsite, note, is_quiet
48
45
 
49
46
 
323
320
            raise errors.InvalidRevisionNumber(revno)
324
321
        return self.repository.get_revision_delta(rh[revno-1])
325
322
 
326
 
    @deprecated_method(zero_sixteen)
327
 
    def get_root_id(self):
328
 
        """Return the id of this branches root
329
 
 
330
 
        Deprecated: branches don't have root ids-- trees do.
331
 
        Use basis_tree().get_root_id() instead.
332
 
        """
333
 
        raise NotImplementedError(self.get_root_id)
334
 
 
335
323
    def print_file(self, file, revision_id):
336
324
        """Print `file` to stdout."""
337
325
        raise NotImplementedError(self.print_file)
1365
1353
        """See Branch.abspath."""
1366
1354
        return self.control_files._transport.abspath(name)
1367
1355
 
1368
 
 
1369
 
    @deprecated_method(zero_sixteen)
1370
 
    @needs_read_lock
1371
 
    def get_root_id(self):
1372
 
        """See Branch.get_root_id."""
1373
 
        tree = self.repository.revision_tree(self.last_revision())
1374
 
        return tree.get_root_id()
1375
 
 
1376
1356
    def is_locked(self):
1377
1357
        return self.control_files.is_locked()
1378
1358