~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Jonathan Riddell
  • Date: 2011-09-20 13:31:00 UTC
  • mto: This revision was merged to the branch mainline in revision 6153.
  • Revision ID: jriddell@canonical.com-20110920133100-kpsomvcnjoxv6n6b
syntax fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
2134
2134
        """See Tree.get_file_mtime."""
2135
2135
        if not path:
2136
2136
            path = self.inventory.id2path(file_id)
2137
 
        try:
2138
 
            return os.lstat(self.abspath(path)).st_mtime
2139
 
        except OSError, e:
2140
 
            if e.errno == errno.ENOENT:
2141
 
                raise errors.FileTimestampUnavailable(path)
2142
 
            raise
 
2137
        return os.lstat(self.abspath(path)).st_mtime
2143
2138
 
2144
2139
    def _is_executable_from_path_and_stat_from_basis(self, path, stat_result):
2145
2140
        file_id = self.path2id(path)
3091
3086
    def unregister_format(klass, format):
3092
3087
        format_registry.remove(format)
3093
3088
 
3094
 
    def get_controldir_for_branch(self):
3095
 
        """Get the control directory format for creating branches.
3096
 
 
3097
 
        This is to support testing of working tree formats that can not exist
3098
 
        in the same control directory as a branch.
3099
 
        """
3100
 
        return self._matchingbzrdir
3101
 
 
3102
3089
 
3103
3090
format_registry.register_lazy("Bazaar Working Tree Format 4 (bzr 0.15)\n",
3104
3091
    "bzrlib.workingtree_4", "WorkingTreeFormat4")