ADC "rmrepo" replaced by "rm" and "trash", with helper ADCs

helpers for 'rm': lock, unlock
helpers for 'trash': list-trash, undelete

common functions updated with local settings for ADCs as well
This commit is contained in:
Sitaram Chamarty 2010-10-21 22:36:15 +05:30
parent a0aecbb012
commit cb0a9bdb0c
10 changed files with 204 additions and 17 deletions

12
contrib/adc/lock Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
. $(dirname $0)/adc.common-functions
# this is a helper ADC for "rm"; see that one for documentation
# cd to repo base and make sure arg1 is a valid repo (also sets $repo)
valid_owned_repo $1
rm -f $repo.git/gl-rm-ok
echo "$repo has been locked"