##// END OF EJS Templates
docs/contributing: explicitly mention some useful options to nosetests
docs/contributing: explicitly mention some useful options to nosetests

File last commit:

r4902:03bbd33b default
r4927:f879e7ea default
Show More
locking.rst
38 lines | 1.3 KiB | text/x-rst | RstLexer
Implemented basic locking functionality....
r2726 .. _locking:
===================================
Bradley M. Kuhn
Rename some strings examples and commands in documentation
r4192 Kallithea repository locking system
Implemented basic locking functionality....
r2726 ===================================
Mads Kiilerich
docs: rework stuff...
r4902 The scenario for repos with `locking function` enabled is that
every initial clone and every pull gives users (with write permission)
the exclusive right to do a push.
Each repo can be manually unlocked by admin from the repo settings menu.
whitespace cleanup
r3224 | Repos with **locking function=disabled** is the default, that's how repos work
Implemented basic locking functionality....
r2726 today.
| Repos with **locking function=enabled** behaves like follows:
Repos have a state called `locked` that can be true or false.
whitespace cleanup
r3224 The hg/git commands `hg/git clone`, `hg/git pull`, and `hg/git push`
Implemented basic locking functionality....
r2726 influence this state:
whitespace cleanup
r3224 - The command `hg/git pull <repo>` will lock that repo (locked=true)
Implemented basic locking functionality....
r2726 if the user has write/admin permissions on this repo
whitespace cleanup
r3224 - The command `hg/git clone <repo>` will lock that repo (locked=true) if the
Implemented basic locking functionality....
r2726 user has write/admin permissions on this repo
Mads Kiilerich
docs: rework stuff...
r4902 Kallithea will remember the user id who locked the repo so
whitespace cleanup
r3224 only this specific user can unlock the repo (locked=false) by calling
Implemented basic locking functionality....
r2726
whitespace cleanup
r3224 - `hg/git push <repo>`
Implemented basic locking functionality....
r2726
Mads Kiilerich
docs: rework stuff...
r4902 Every other command on that repo from this user and
every command from any other user will result in http return code 423 (locked).
Implemented basic locking functionality....
r2726
Mads Kiilerich
docs: rework stuff...
r4902 Additionally, the http error includes the <user> that locked the repo
(e.g. “repository <repo> locked by user <user>”).