340
343
"""Write information about a pending lock to a temporary file.
343
346
# XXX: is creating this here inefficient?
344
347
config = bzrlib.config.GlobalConfig()
345
352
s = Stanza(hostname=socket.gethostname(),
347
354
start_time=str(int(time.time())),
353
360
def _parse_info(self, info_file):
354
361
return read_stanza(info_file.readlines()).as_dict()
358
364
"""Wait a certain period for a lock.
360
366
If the lock can be acquired within the bounded time, it