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

Re: TortoiseSVN Add and global-ignores

From: Julien Cugnière <julien.cugniere_at_gmail.com>
Date: Thu, 3 Apr 2014 20:44:30 +0200

2014-04-03 20:07 GMT+02:00 Stefan Küng <tortoisesvn_at_gmail.com>:
>
> On 03.04.2014 13:47, Julien Cugnière wrote:
> > With TortoiseSVN, if you execute the "Add" command on the "app"
> > directory, TSVN will *not* respect the svn:global-ignores, and will add
> > everything, including "run.log". I feel that in the "Add" dialog, the
> > ignored files and folders should at least be unchecked by default. Maybe
> > they should even not appear at all.
>
> TSVN will show you a dialog where you can review and check/uncheck the
> files you want to add and those you don't. It will not add anything
> without asking you first.

Manually hunting for and unchecking every file that should not be
added in a directory with dozens of files and sub-directories is a
pain for knowledgeable users, and less knowledgeable ones simply never
do it. And if I follow your reasoning, there is no need at all for
them in svn either : people can just pass the correct list of path to
the command line client :-)

The global-ignore property and configuration setting are meant to make
life easier by automatically getting the most obvious files out of the
way. As a repository admin, they allow me to make it easier for people
to respect policies such as "don't version log files unless you really
need to" (note that hook scripts can answer the "don't version log
files" part, but not the "unless you really need to" one).

What's weird is that the Check for Modification dialog does respect
this property. I suppose it comes from the subversion library, whereas
in the Add dialog, TSVN has to manually harvest the list of files to
add. Is not following the global-ignore property by design, or is it
an oversight ? In other words, if I get motivated enough to work on
this and submit a patch, does it stand a chance to be accepted ?
(though of course if there is no appropriate API in the subversion
library, this might be much more complicated than it looks).

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3075797

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-04-03 20:44:58 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.