~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: John Arbash Meinel
  • Date: 2007-03-29 18:47:42 UTC
  • mfrom: (2386 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2387.
  • Revision ID: john@arbash-meinel.com-20070329184742-npx69aia97o6qc0v
[merge] bzr.dev 2386

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):
1220
1225
        """See Branch.abspath."""
1221
1226
        return self.control_files._transport.abspath(name)
1222
1227
 
 
1228
 
 
1229
    @deprecated_method(zero_sixteen)
1223
1230
    @needs_read_lock
1224
1231
    def get_root_id(self):
1225
1232
        """See Branch.get_root_id."""