[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Return code on "lock" and "unlock"

From: Thomas Denk <thomas.denk_at_gmail.com>
Date: 2005-08-04 16:23:52 CEST

"lock" and "unlock" never returns failure, even if it fails:

correct:
$ svn invalidcommand && echo "0" || echo "1"
Unknown command: 'invalidcommand'
Type 'svn help' for usage.
1
$ svn update -r99999 && echo "0" || echo "1"
svn: No such revision 99999
1

incorrect:
$ svn lock main.c && echo "0" || echo "1"
svn: Path '/main.c' is already locked by user 'bill' in filesystem
'd:/repos/test/db'
0
$ svn unlock main.c && echo "0" || echo "1"
svn: User 'tom' is trying to use a lock owned by 'bill' in filesystem
'd:/repos/test/db'
0
$ svn --version | head -n 1
svn, version 1.2.1 (r15230)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Aug 4 16:27:01 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.