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

Re: Searching Properties

From: Alexis Huxley <ahuxley_at_gmx.net>
Date: 2002-09-03 18:18:25 CEST

> svn pl -vR
>
> Of course the only problem now is that the verbose output of 'svn
> proplist' isn't very friendly for piping through grep. If I were to
> pipe through "grep 'color : green'", I'd see the matching lines, but
> have no idea which items the matching properties were attached to.
> That's because proplist outputs pairs of lines:
>
> Properties on 'INSTALL':
> svn:keywords : LastChangedDate
> Properties on 'gen-make.py':
> svn:executable : on
> Properties on 'packages/freebsd/subversion':
> svn:ignore : work
>
> Hmmmmmmmmmm.

If you like in a GNU universe, then pipe the result of
the svn command through

        sed ':b;/:$/{;N;s/:\n[ ]*//;bb;}'

(that's a space and a tab in the square brackets) before piping
that on into the grep.

Not sure if it'll choke on multiple properties, but
the necessary adaption should be difficult.

Alexis

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 3 18:19:05 2002

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