~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-06 11:04:45 UTC
  • mfrom: (1740.1.2 bzr.mbp.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060606110445-79d71fb5b8e9fa8e
(mbp,jamesh) show file times; doc

Show diffs side-by-side

added added

removed removed

Lines of Context:
535
535
            path = self._inventory.id2path(file_id)
536
536
        return self._hashcache.get_sha1(path)
537
537
 
 
538
    def get_file_mtime(self, file_id, path=None):
 
539
        if not path:
 
540
            path = self._inventory.id2path(file_id)
 
541
        return os.lstat(self.abspath(path)).st_mtime
 
542
 
538
543
    if not supports_executable():
539
544
        def is_executable(self, file_id, path=None):
540
545
            return self._inventory[file_id].executable