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

Re: How to invert the svn:ignore meaning?

From: Luca Ferrari <fluca1978_at_infinito.it>
Date: 2007-09-09 00:14:41 CEST

On Friday 7 September 2007 ANGonline's cat, walking on the keyboard, wrote:
> So I'd like to avoid versioning of those uninteresting (to me) file.
> I found that svn:ignore can help me to avoid the versioning of known
> *unwanted* file pattern while I olny now the pattern of *wanted* file: *.h
> *.c *.m.

Not sure if this is what you want and is the best way of doing: supposing you
can run scripts (like shell scripts) you can traverse your tree examinating
each file and making an add only of those that interest you. For instance in
bash something like this:

# invoke with the tree root
cd $1

for f in *
   if [ -f $f ]
    case $f in
      *.h | *.c | *.m) svn add $f;;
      *) ;;
    if [-d $f]
         $0 $f

Hopes this help.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 10 08:39:55 2007

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.