~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisiontree.py

Merge cleanup into description

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
 
104
104
    def get_file_mtime(self, file_id, path=None):
105
105
        ie = self._inventory[file_id]
106
 
        revision = self._repository.get_revision(ie.revision)
 
106
        try:
 
107
            revision = self._repository.get_revision(ie.revision)
 
108
        except errors.NoSuchRevision:
 
109
            raise errors.FileTimestampUnavailable(self.id2path(file_id))
107
110
        return revision.timestamp
108
111
 
109
112
    def is_executable(self, file_id, path=None):