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

Re: svnlook changed output

From: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Tue, 15 Apr 2008 00:57:35 -0500

On Apr 14, 2008, at 11:12 PM, Keith Moore wrote:
> 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.

I believe that's correct.

> 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?

I would suggest you try it and see, but I have never seen any quoting
or escaping, so I believe the answer is to read to the end of the line.

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-15 07:58:00 CEST

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