You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by James Stroud <sv...@stroud.biz> on 2006/06/21 21:32:09 UTC

Auto File Commit

Hello All,

I'm very new to SVN and even newer to this list.

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).

I came accross this posting in the archive:

 http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=7245

But this solution seems a little clunky and is also a little dated (over 2 
years old). Has SVN incorporated a way to accomplish this or has someone 
devised a method to do this using a hook such as pre-commit?

Thanks for any help,

James

-- 
James Stroud
UCLA-DOE Institute of Genomics and Proteomics
Box 951570
Los Angeles, CA 90095

python <<EOF
print "".join([chr(ord(i)^ord(j)^64) for (i,j) in
              zip('hpqudxu','BCEGKMQ')] +
              list('ude.alcu.ibm@'[::-1]))
EOF

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Auto File Commit

Posted by "T. Wassermann" <ma...@tobias-wassermann.de>.
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