mercurial/util.py
changeset 3859 8c24b6fd5866
parent 3854 4f6db0233606
child 3860 8e907b86126b
equal deleted inserted replaced
3858:7c12958eba26 3859:8c24b6fd5866
   900         """Return True if the file object f belongs to the current user.
   900         """Return True if the file object f belongs to the current user.
   901 
   901 
   902         The return value of a util.fstat(f) may be passed as the st argument.
   902         The return value of a util.fstat(f) may be passed as the st argument.
   903         """
   903         """
   904         if st is None:
   904         if st is None:
   905             st = fstat(f)
   905             st = fstat(fp)
   906         return st.st_uid == os.getuid()
   906         return st.st_uid == os.getuid()
   907 
   907 
   908 def _buildencodefun():
   908 def _buildencodefun():
   909     e = '_'
   909     e = '_'
   910     win_reserved = [ord(x) for x in '|\?*<":>+[]']
   910     win_reserved = [ord(x) for x in '|\?*<":>+[]']