comparison mercurial/windows.py @ 8657:3fa92c618624

posix: do not use fstat in isowner The fstat function was undefined, but never used since a stat object was always passed in the optional st argument. Passing st is now mandatory. This bug crept in when util was split up into posix and windows modules. The fstat function is still defined in util, but importing it into posix would create an import cycle which seems unnecessary.
author Martin Geisler <mg@lazybytes.net>
date Sat, 30 May 2009 23:42:35 +0200
parents 573734e7e6d0
children 0289f384e1e5
comparison
equal deleted inserted replaced
8656:284fda4cd093 8657:3fa92c618624
162 def explain_exit(code): 162 def explain_exit(code):
163 return _("exited with status %d") % code, code 163 return _("exited with status %d") % code, code
164 164
165 # if you change this stub into a real check, please try to implement the 165 # if you change this stub into a real check, please try to implement the
166 # username and groupname functions above, too. 166 # username and groupname functions above, too.
167 def isowner(fp, st=None): 167 def isowner(st):
168 return True 168 return True
169 169
170 def find_exe(command): 170 def find_exe(command):
171 '''Find executable for command searching like cmd.exe does. 171 '''Find executable for command searching like cmd.exe does.
172 If command is a basename then PATH is searched for command. 172 If command is a basename then PATH is searched for command.