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

Re: Auto File Commit

From: T. Wassermann <mail_at_tobias-wassermann.de>
Date: 2006-06-22 06:58:03 CEST

Hi James,

James Stroud wrote:
> I have what I think is unlikely to be a unique need for SVN. Basically, I
> would like to add files and directories to my SVN archive without the
> requirement to add each one explicitly (e.g. a single 'commit' finds all the
> newly created files and folders and both adds and commits them).

with Subversion 1.3 you have not add each file explicit, you can use

svn add *

within your working copy directory to add all files. But: If you've
already added some directories to the working copy/repository svn add *
*will not* go into these directories and add the new files in there; you
can force this:

svn add --force *

This command will go through the current directory (if it is a working
copy) and add all new files to revision control. If there is a directory
thats already under version control, svn will check this directory
recursively - only new files/directories will be added.

BUT: svn add will NOT use svn:ignore-definitions, so if you have an
working copy with

testdir/
ignodir/
abc/

and your svn:ignore will be ignodir/* svn add --force * will add this
directory and its files to version control.

[It's a good question, why svn add ignores svn:ignore. It may be
important to add ignored files - I think, Subversion should mention the
svn:ignore-settings. svn add could use the --no-ignore switch, couldn't it?]

Best Regards

Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 22 06:59:28 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.