~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-05 14:47:26 UTC
  • mfrom: (5752.2.11 2.4-windows-lfstat)
  • Revision ID: pqm@pqm.ubuntu.com-20110405144726-zi3lj2kwvjml4kx5
(jameinel) Add osutils.lstat/fstat so that even on Windows lstat(fname) ==
 fstat(open(fname).fileno()) (John A Meinel)

Show diffs side-by-side

added added

removed removed

Lines of Context:
365
365
        state = self.current_dirstate()
366
366
        if stat_value is None:
367
367
            try:
368
 
                stat_value = os.lstat(file_abspath)
 
368
                stat_value = osutils.lstat(file_abspath)
369
369
            except OSError, e:
370
370
                if e.errno == errno.ENOENT:
371
371
                    return None
474
474
            self._must_be_locked()
475
475
            if not path:
476
476
                path = self.id2path(file_id)
477
 
            mode = os.lstat(self.abspath(path)).st_mode
 
477
            mode = osutils.lstat(self.abspath(path)).st_mode
478
478
            return bool(stat.S_ISREG(mode) and stat.S_IEXEC & mode)
479
479
 
480
480
    def all_file_ids(self):