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

RE: Making a file in the working directory not be managed by Subversion any more

From: Gavin Lambert <gavinl_at_compacsort.com>
Date: 2006-08-23 00:32:39 CEST

Quoth Nico Kadel-Garcia <mailto:nkadel@comcast.net>:
>> Even with the command-line client, you should be able to 'svn add .'
>> or 'svn add *' to add everything (equivalent to an import) and then
>> 'svn revert' those files that you *don't* want added. Easy, and you
>> get to verify that you've selected the right set of files before
>> finally committing.
>
> Be careful of "svn add *" forgetting to add files starting with "."..
> I've been bitten by that one: "svn add ." is safer.

The other gotcha is that 'svn add *' on a UNIXlike client will result in
the ignores getting ignored (ie. files that should have been ignored get
added regardless) in the current directory, while being properly ignored
for all subdirectories. Which makes sense if you remember how shell
expansion works, but is really weird the first time you see it :)
That's why I suggested the 'svn add .' first.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 23 00:33:51 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.