You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by matador <ma...@yahoo.com> on 2006/02/11 01:06:18 UTC

readonly repo and echo for custom message

making a repo read only so just a simple script for start-commit.bat.


<<

echo "this is read only"

exit 1

>>




this works fine in terms of blocking a commit but i dont get my error

message << this is read only >> in the svn client (tortoise)

 

did i miss something?

 

svn 1.1.4

apache 2.x

tortoise 1.3.0


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: readonly repo and echo for custom message

Posted by Lieven Govaerts <lg...@mobsol.be>.
Hi,

if you want to send text from a hook script back to the client, you have to
write
to stderr. On Windows it's the same as on Unix, so use:

echo "this is read only" 1>&2

Since you're using apache, you can also use mod_authz_svn with an
svnaccess.conf
file like this to make the repository read-only:

[myrepos:/]
* = r

Lieven.

> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of matador
> Sent: zaterdag 11 februari 2006 2:06
> To: users@subversion.tigris.org
> Subject: readonly repo and echo for custom message
> 
> making a repo read only so just a simple script for start-commit.bat.
> 
> 
> <<
> 
> echo "this is read only"
> 
> exit 1
> 
> >>
> 
> 
> 
> 
> this works fine in terms of blocking a commit but i dont get my error
> 
> message << this is read only >> in the svn client (tortoise)
> 
>  
> 
> did i miss something?
> 
>  
> 
> svn 1.1.4
> 
> apache 2.x
> 
> tortoise 1.3.0
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org