Hey people,
Hey people,
I really like subversion, so thanks for it! I was looking for a feature
though that didn't exit. I solved it with scripting, so here is both the
feature I was looking for and my script to solve it.
I was looking for the possibility with svn propset svn:ignore to append a
pattern for ignoring files to all subdirectories. Propset doesn't allow
appending to the already present patterns though. So I wrote a small bash
script to solve my problem.
It would be easier though if this would be available as an option in svn
because of course this bash script requires running UNIX/LINUX. Something
like
"svn propset --append -R svn:ignore 'somepattern' ." would be nice.
Untill then, here is my script, hope it is usefull.
#!/bin/bash
pattern=".*.swp"
for file in `find -type d`;do
file2=`echo $file|sed -e s/.*\.svn.*//`
if [ $file2 ];then
svn propget svn:ignore $file2>properties.txt
echo $pattern>>properties.txt
svn propset svn:ignore -F properties.txt $file2
fi
done
rm properties.txt
Cheers,
Dolf.
--
Elcyon: webapplications, webdesign and GIS
http://www.elcyon.nl
dolf.andringa_at_elcyon.nl
cell: 0614243123
Received on 2008-10-31 23:25:37 CET