/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/revisiontree.py

  • Committer: Martin
  • Date: 2010-05-25 17:27:52 UTC
  • mfrom: (5254 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5257.
  • Revision ID: gzlist@googlemail.com-20100525172752-amm089xcikv968sw
Merge bzr.dev to unite with similar changes already made

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2007 Canonical Ltd
 
1
# Copyright (C) 2006-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
20
20
 
21
21
from bzrlib import (
22
22
    errors,
23
 
    osutils,
24
23
    revision,
25
 
    symbol_versioning,
26
24
    tree,
27
25
    )
28
26
 
103
101
 
104
102
    def get_file_mtime(self, file_id, path=None):
105
103
        ie = self._inventory[file_id]
106
 
        revision = self._repository.get_revision(ie.revision)
 
104
        try:
 
105
            revision = self._repository.get_revision(ie.revision)
 
106
        except errors.NoSuchRevision:
 
107
            raise errors.FileTimestampUnavailable(self.id2path(file_id))
107
108
        return revision.timestamp
108
109
 
109
110
    def is_executable(self, file_id, path=None):
173
174
        return set(self._repository.get_ancestry(self._revision_id,
174
175
                                                 topo_sorted=False))
175
176
 
 
177
    def is_locked(self):
 
178
        return self._repository.is_locked()
 
179
 
176
180
    def lock_read(self):
177
181
        self._repository.lock_read()
 
182
        return self
178
183
 
179
184
    def __repr__(self):
180
185
        return '<%s instance at %x, rev_id=%r>' % (