~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisiontree.py

  • Committer: Jelmer Vernooij
  • Date: 2010-01-20 23:21:35 UTC
  • mto: This revision was merged to the branch mainline in revision 4977.
  • Revision ID: jelmer@samba.org-20100120232135-xh4koabt5ji8wyov
Raise FileStampUnavailable if there is no filestamp known.

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):