locking files
From: <kmoulton_at_chisystems.com>
Date: 2003-09-17 16:55:55 CEST
I am in need of a solution which will allow me to lock files and to notify
I would think we would need a pre-checkout and post checkout hook. This way
Thanks, Kathy Moulton
Yup, quite doable. The locking plan sitting in notes/ is the long-term
goal. For a short term, you should be able to do this relatively easily
with a small (command-line) client tool (written in Python or Perl) which
interacts with a CGI script on the server to maintain a lock database. A
pre-commit hook script can then check the if any of the modified files are
present in the lock database and held by somebody besides the committer. A
post-commit hook can then clear the appropriate files from the lock
database (if desired). The cron job can periodically expire files, or you
can simply test the expiration when you investigate whether a lock is
present.
Cheers,
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.