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

Identifying changed files containing a specific property

From: Don Smith <Don.Smith_at_novell.com>
Date: 2005-01-06 17:05:21 CET

I need to identify all files that have a specific property that have
changed between specific revisions of the repository. This is to
identify all files that require localization (L10N) which have changed
since a specific revision, so they can be sent back to the translators.
I put a property on each file that requires translation, L10N. The end
goal is to write an Ant script that will generate an archive of the
files to be sent to the translators.
So far I've come up with this bash script:
svn diff -r1:23 | grep +++ | cut -c 5- | cut -f 1 | while read f
    echo 'Processing file ' $f
    X="$(/usr/bin/svn propget L10N $f)"
    if [ "$X" = "true" ]; then
        echo 'L10N file'

This gets a list of all the files that have changed (the diff plus grep
and cut commands), then for each file gets the value of the L10N
property. If the value is true, I know it's a file that requires
translation, and it has changed.
I have also considered using "svnlook changed" to generate my list of
files, but the output is a little less friendly for processing.
Does anyone have any suggestions for better, more efficient ways to do
Received on Thu Jan 6 17:08:46 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.