Reserved Edit Plugin

John Arbash Meinel john at arbash-meinel.com
Tue Dec 1 14:50:03 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Simon Kersey wrote:
> I am developing a plugin to provide Reserved Edit functionality for Bazaar.
> 
> As I am new to both Bazaar and Python any feedback on the feasibility of
> the approach outlined below would be much appreciated.
> 
> The plan is that the plugin will add 5 new commands and 2 hooks:
> 
> red-add    - add file to reserved edit (RED) list 
> red-remove - remove file from reserved edit list 
> red-lock   - lock file on reserved edit list 
> red-unlock - unlock file on reserved edit list 
> red-ls     - list reserved edit list files in a branch (shows RED
>              files, whether they are locked, and who by 
> 
> branch pre-commit hook  - prevent commit if user has made changes to a 
>                           file on the reserved edit list 
>                           without having the reserved edit lock for it 
> 
> 
> branch open hook        - make files on reserved edit list read only 
>                           unless user has reserved edit lock 
> 
> The RED list itself is implemented as a set of LockDir based 
> locks in a .bzr/red/locks dir in a branch identified by an environment
> variable.
> 

You may want to look at
 lp:~jameinel/+junk/file-locking

Which was my original prototype for this sort of thing.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksVLRsACgkQJdeBCYSNAAMTawCfenGq6O6BGaKlwQZ1fIPxlwp7
vpsAoKCWFu3Kmm7SsVvqq5INcypWr6FP
=GGZG
-----END PGP SIGNATURE-----



More information about the bazaar mailing list