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

svn_apply_autoprops and svn:externals

From: <nicklist_at_planet.nl>
Date: Fri, 4 Jan 2008 13:41:47 +0100

I'm using svn_apply_autoprops to clean a few of my repositories. However, one of the repositories have a few svn:externals included, which are not under our control. The svn_apply_autoprops still walk them down and clutter my svn stat (I know, which I can ignore by --ignore-externals). Is there a possibility to exclude this directories from being affected by svn_apply_autoprops?

I also created a new script by adjusting svn_apply_autoprops, which executes the dos2unix to the files which needs svn:eol-style=native. Maybe it is usefull for someone:

Diff from svn_apply_autoprops:
132,138c131,138
< command = ['svn', 'propset', prop[0], prop[1]]
< for f in matching_filenames:
< command += ["%s/%s" % (dirname, f)]
<
< status = os.spawnvp(os.P_WAIT, 'svn', command)
< if status:
< print 'Command "%s" failed with exit status %s' \

---
>       if prop[0] == 'svn:eol-style':
>         command = ['dos2nix']
>         for f in matching_filenames:
>           command += ["%s/%s" % (dirname, f)]
>
>         status = os.spawnvp(os.P_WAIT, 'dos2unix', command)
>         if status:
>           print 'Command "%s" failed with exit status %s' \
140c140
<         sys.exit(1)
---
>           sys.exit(1)
With regards,
Nick Stolwijk
Received on 2008-01-04 13:42:11 CET

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.