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

  • Committer: Aaron Bentley
  • Date: 2007-03-27 13:26:24 UTC
  • mto: (1551.19.24 Aaron's mergeable stuff)
  • mto: This revision was merged to the branch mainline in revision 2382.
  • Revision ID: abentley@panoramicfeedback.com-20070327132624-4v0gvw2iraaov6su
Deprecate Branch.get_root_id

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
                                      deprecated_method,
59
59
                                      DEPRECATED_PARAMETER,
60
60
                                      deprecated_passed,
61
 
                                      zero_eight, zero_nine,
 
61
                                      zero_eight, zero_nine, zero_sixteen,
62
62
                                      )
63
63
from bzrlib.trace import mutter, note
64
64
 
297
297
            raise InvalidRevisionNumber(revno)
298
298
        return self.repository.get_revision_delta(rh[revno-1])
299
299
 
 
300
    @deprecated_method(zero_sixteen)
300
301
    def get_root_id(self):
301
 
        """Return the id of this branches root"""
 
302
        """Return the id of this branches root
 
303
 
 
304
        Deprecated: branches don't have root ids-- trees do.
 
305
        Use basis_tree().get_root_id() instead.
 
306
        """
302
307
        raise NotImplementedError(self.get_root_id)
303
308
 
304
309
    def print_file(self, file, revision_id):
1320
1325
        self._format = format
1321
1326
        mutter("got branch format %s", self._format)
1322
1327
 
 
1328
    @deprecated_method(zero_sixteen)
1323
1329
    @needs_read_lock
1324
1330
    def get_root_id(self):
1325
1331
        """See Branch.get_root_id."""