~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.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:
1755
1755
            return None
1756
1756
        parent_index = self._get_parent_index()
1757
1757
        last_changed_revision = entry[1][parent_index][4]
1758
 
        return self._repository.get_revision(last_changed_revision).timestamp
 
1758
        try:
 
1759
            rev = self._repository.get_revision(last_changed_revision)
 
1760
        except errors.NoSuchRevision:
 
1761
            raise errors.FileTimestampUnavailable(self.id2path(file_id))
 
1762
        return rev.timestamp
1759
1763
 
1760
1764
    def get_file_sha1(self, file_id, path=None, stat_value=None):
1761
1765
        entry = self._get_entry(file_id=file_id, path=path)