Tushar Desai wrote: > Dan Mick wrote: >> I want to make a repo be pull-from-only (readonly, in essence). Is >> the best/most-complete way to make .hg/ nonwritable? >> > The below is what we did to accomplish what you want to get done > > add the below in .hgrc
But doesn't this require the user to opt in by trusting the hgrc? It's my understanding that hooks are useless without optin. > > [hooks] > pretxnchangegroup.deny.lock = path to the lock script (say > /pathto/foo_lock) > > > > foo_lock would look like below > #!/bin/ksh -p > if [[ -n $READ_ONLY ]] then > print "You do not have write access." 1>&2 > exit 1 > fi > exit 0 > > Thanks > Tushar >> _______________________________________________ >> scm-migration-dev mailing list >> scm-migration-dev at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/scm-migration-dev >>