[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: Eric Gorr <mailist_at_ericgorr.net>
Date: 2005-06-10 21:12:44 CEST

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

> They don't like to add bloat for
> things that can be simply [though that is a relative term] done outside
> the program and I agree with that stance.

Considering that it is useful and I believe will be increasingly
required by even average users, the method for accomplishing this task
should be easily discernible by the user who does not wish to know much
about pipes, scripting, etc. It is simply good user interface design and
certainly not bloat to provide the user with an easily discoverable
method for accomplishing this task.

The method you pointed out certainly works, but fails every good user
interface design test I am aware of.

> I hate to say it but most SVN commands that I know do not attempt to do
> "auto-magic" things for users. You need to tell subversion exactly what
> you want to do.

On this point, I would agree and retract the earlier suggestion.

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

The svn addunversioned would take a source directory in which to look
for files. It would have a -r flag to recursively search through
subdirectories 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.

This would pass the test of telling subversion exactly what you want to do.

== Eric Gorr =============================== http://www.ericgorr.net ===
"Government is not reason, it is not eloquence, it is force; like fire,
a troublesome servant and a fearful master." - George Washington
== Insults, like violence, are the last refuge of the incompetent... ===
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 10 21:15:22 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.