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

Re: "svn add * --force" and global-ignores / svn:ignore property

From: <Mathias.Weinert_at_gfa-net.de>
Date: 2006-01-03 16:46:37 CET

mailinglist@perspectives.qc.ca wrote:

> Ryan Schmidt wrote, On 03/01/06 06:52:
>
> > [...]
> > Maybe if you can generate the proper listing of files using ls you
> > can send it to svn's argument list using xargs. Something like "ls
> > -A" would give you all files, including dot files, but excluding "."
> > and "..", but you can't feed that directly to svn with xargs because
> > it's not escaped properly. (Filenames containing spaces or other
> > special chars would break it.)

For this you could try something like
find . -type f | grep -v "/\.svn" | sed -e "s/\(.*\)/\"\1\"/" | xargs svn
...

'find . -type f' to only find files

'grep -v "/\.svn"' to exclude all directories (and files)
starting with .svn

'sed -e "s/\(.*\)/\"\1\"/" ' to put file names into
quotation marks

If you want each file to get a separate svn command you can
use 'xargs -n 1 svn ...' instead of 'xargs svn ...'

Mathias

> > [...]

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 3 17:04:41 2006

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.