~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: John Arbash Meinel
  • Date: 2007-03-01 00:47:45 UTC
  • mto: (2255.11.3 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: john@arbash-meinel.com-20070301004745-2hwuavq5wgmi2idi
All trees should implement get_file_mtime()

Show diffs side-by-side

added added

removed removed

Lines of Context:
596
596
    def get_file_mtime(self, file_id, path=None):
597
597
        file_id = osutils.safe_file_id(file_id)
598
598
        if not path:
599
 
            path = self._inventory.id2path(file_id)
 
599
            path = self.inventory.id2path(file_id)
600
600
        return os.lstat(self.abspath(path)).st_mtime
601
601
 
602
602
    if not supports_executable():