~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.py

  • Committer: Patch Queue Manager
  • Date: 2011-09-21 12:51:13 UTC
  • mfrom: (6153.1.5 847435-diff-time)
  • Revision ID: pqm@pqm.ubuntu.com-20110921125113-1fs5cdcrixafkkfs
(jelmer) Raise NoSuchId from Tree.get_file_mtime if the file id was not
 found. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1849
1849
        # Make sure the file exists
1850
1850
        entry = self._get_entry(file_id, path=path)
1851
1851
        if entry == (None, None): # do we raise?
1852
 
            return None
 
1852
            raise errors.NoSuchId(self, file_id)
1853
1853
        parent_index = self._get_parent_index()
1854
1854
        last_changed_revision = entry[1][parent_index][4]
1855
1855
        try: