You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by John Browne <jk...@gmail.com> on 2005/06/24 15:38:19 UTC

svnlook output

I was curious to know if there is a way to determine if a changed path
in the output of "svnlook changed" is a directory or a file.  I'd like
to implement two different regular expressions in a hook script for
naming conventions for directories and files.  I need to allow the
period character for files, but I do not want to allow it for
directories.

Any ideas?

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


Re: svnlook output

Posted by Dominic Anello <da...@danky.com>.
On 2005-06-24 10:38:19 -0500, John Browne wrote:
> I was curious to know if there is a way to determine if a changed path
> in the output of "svnlook changed" is a directory or a file.  I'd like
> to implement two different regular expressions in a hook script for
> naming conventions for directories and files.  I need to allow the
> period character for files, but I do not want to allow it for
> directories.
> 
> Any ideas?

Directories are reported with a trailing forward slash, like so:

Directory add/delete:
[svn@lynx ~/ec-svn]$ svnlook changed -r 4409 repo
A   builds/eCommerce/4.8/4.8.0.1.1/

Property update:
[svn@lynx ~/ec-svn]$ svnlook changed -r 4208 repo
_U  branches/eCommerce/4.8.0.0/

-- 
Life to you is a dashing, bold adventure.