~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisiontree.py

  • Committer: Vincent Ladeuil
  • Date: 2010-02-09 17:15:17 UTC
  • mto: (5029.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5030.
  • Revision ID: v.ladeuil+lp@free.fr-20100209171517-1wzz1nh3d3nhnkbu
Move ReadonlyServer to bzrlib.tests.readonly

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