You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by ni...@planet.nl on 2008/01/04 12:41:47 UTC

svn_apply_autoprops and svn:externals

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