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

svnlook changed output

From: Keith Moore <Keith.Moore_at_securency.com.au>
Date: Tue, 15 Apr 2008 14:12:45 +1000

Hello, I'm trying to write a pre-commit hook that catches changes or deletions on tags branches. I've seen a very simple example using svnlook and grep to parse it's output. Even though I'm running subversion on windows I believe this solution will work using svnlook and findstr (essentially the same thing).

The first question I have is on the output of the svnlook changed command. Are the numbered statements below a correct description of the output of svnlook?

1. The first character specifies the type of change to the file or dir, add, delete or update.

2. The second character is the type of change to the file or dirs properties.

3. There are two spaces.

4. A variable left file or directory path.

The second question is what happens if the file or directory path has a space in it? Do the spaces get escaped out or is the whole path surrounded with quotes? Or do you just read to the end of the line?

Thanks.

_________________________________________________________________

Keith Moore

#####################################################################################
Attention:
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from any system and destroy any copies.
#####################################################################################
Received on 2008-04-15 06:12:37 CEST

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