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

Re: Automatically adding new files in a folder (Re: versioning MacOS X bundle)

From: Max Bowsher <maxb_at_ukf.net>
Date: 2005-06-10 22:18:19 CEST

Eric Gorr wrote:
> Christopher Ness wrote:
>
>> To remove files that went away and are identified by a '!', use:
>> svn status | grep ^\! | cut -c8- | xargs svn rm
>
>> To add files svn doesn't know about:
>> svn status | grep ^\? | cut -c8- | xargs svn add
>
>> Good luck convincing the Devel's. ;)
>
> Well, considering that it is possible I could become one, it wouldn't be
> that hard to convince me. :-)

Actually, I've scripted things like the above commands enough times, that
I'm actually in favour of an "auto add new things, auto rm deleted things"
command.

...

> Perhaps then it should be either an explicit command (svn
> addunversioned) or a flag on svn add.

A new command, because it should be a combination of delete and add.

> The svn addunversioned would take a source directory in which to look
> for files.

And would default to acting on '.', as most current commands do.

> It would have a -r flag to recursively search through
> subdirectories

Recursive by default seems more sensible and consistent to me.

> and take --exclude patterns (see rsync for a good
> implementation of exclude patterns) so the user can avoid having files
> versioned that still should not be.

Hmm. Really needed?
Doesn't svn:ignore fulfil this purpose already?

Anyway, we should take this to the dev@ list, since we've started a design
discussion.
Want to summarize and start a thread there?

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 10 22:20:13 2005

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.