mercurial/lock.py
changeset 25956 8cd30e9277ae
parent 25660 328739ea70c3
child 26081 3b6e5914edd8
equal deleted inserted replaced
25955:2c07c6884394 25956:8cd30e9277ae
     3 # Copyright 2005, 2006 Matt Mackall <mpm@selenic.com>
     3 # Copyright 2005, 2006 Matt Mackall <mpm@selenic.com>
     4 #
     4 #
     5 # This software may be used and distributed according to the terms of the
     5 # This software may be used and distributed according to the terms of the
     6 # GNU General Public License version 2 or any later version.
     6 # GNU General Public License version 2 or any later version.
     7 
     7 
     8 import util, error
     8 from __future__ import absolute_import
     9 import errno, os, socket, time
     9 
       
    10 import errno
       
    11 import os
       
    12 import socket
       
    13 import time
    10 import warnings
    14 import warnings
       
    15 
       
    16 from . import (
       
    17     error,
       
    18     util,
       
    19 )
    11 
    20 
    12 class lock(object):
    21 class lock(object):
    13     '''An advisory lock held by one process to control access to a set
    22     '''An advisory lock held by one process to control access to a set
    14     of files.  Non-cooperating processes or incorrectly written scripts
    23     of files.  Non-cooperating processes or incorrectly written scripts
    15     can ignore Mercurial's locking scheme and stomp all over the
    24     can ignore Mercurial's locking scheme and stomp all over the