mercurial/util.py
changeset 51885 cbd01bf33802
parent 51884 f833ad92ee44
child 51926 bc9ed92d4753
equal deleted inserted replaced
51884:f833ad92ee44 51885:cbd01bf33802
  2183     checkosfilename = platform.checkosfilename  # pytype: disable=module-attr
  2183     checkosfilename = platform.checkosfilename  # pytype: disable=module-attr
  2184     if not timer:
  2184     if not timer:
  2185         timer = time.time
  2185         timer = time.time
  2186 
  2186 
  2187 
  2187 
  2188 def makelock(info, pathname):
  2188 def makelock(info: bytes, pathname: bytes) -> None:
  2189     """Create a lock file atomically if possible
  2189     """Create a lock file atomically if possible
  2190 
  2190 
  2191     This may leave a stale lock file if symlink isn't supported and signal
  2191     This may leave a stale lock file if symlink isn't supported and signal
  2192     interrupt is enabled.
  2192     interrupt is enabled.
  2193     """
  2193     """