Wiki

Clone wiki

hglock / Home

Welcome to the Lock extension for Mercurial

Installation:

Edit your .hgrc file to include the lock and unlock extensions.

[extensions]
lock = ~/.hgextension/lock.py
hook = ~/.hgextension/hook.py

Howto lock a file:

hg lock [file]

Howto unlock a file:

hg unlock [file]

The hook releases all locks when pushing to a repository.

Howto configure server url ?

[lock]
url=http://localhost:8080	

The lock extension requires a server to manage the locks. It's based on a web server status code, where 200 is ok and everything else is an error. Please see the server directory for a reference implementation.

Server Howto:

Put the lock.py file on your web server. mod_cgi and python is required, this should not be a problem if you put it on a server where hgwebdir is running.

Updated