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

Feature Request - Allow "add to ignore" on folders marked for addition (but not yet added)

From: Thomas S. Trias <tomtrias_at_artizan.com>
Date: Thu, 28 Feb 2008 11:59:41 -0700

Example folder structure:

. // top level working directory already added to repository
.\SubFolder // sub-folder that has not yet been marked for add
.\SubFolder\ignore.txt // file that I want to ignore

I right click on "." and choose "SVN Add..."
Within the add dialog, with "SubFolder" checked, I right-click on
"SubFolder\ignore.txt" and choose "Add to ignore list" > "ignore.txt"
(which choice is made from the sub-menu is irrelevant).

I get an error dialog: "Could not add ignore.txt to the ignore list!"
Since there isn't a _svn / .svn folder within SubFolder to store the
svn:ignore property, this is not unexpected.

However, it would be much handier if this were handled differently; I
have two thoughts on the matter which I am sure can be argued pro / con
by people much closer to the source code than I am:

1) Do a "silent" "svn add" to "SubFolder"

This is probably the easiest fix, but it involves doing something before
/ without explicit confirmation (unless you pop up yet another dialog
box). This what I end up doing manually by first adding the folder
structure and then going back and setting svn:ignore properties.

2) Cache the svn:ignore property for "SubFolder" (and any other folders
in a similar situation)

Here, TortoiseSVN would keep track of the "svn:ignore" properties for
folders that have not yet been added; then, when the user chooses "OK",
TortoiseSVN would first add the folders and then apply the "svn:ignore"
properties. If someone added to a folder's the ignore list and then
unchecked the folder, TortoiseSVN could either silently discard the
svn:ignore property or throw an error trying to set it. This raises the
additional issue that the add dialog must process ignores both from the
_svn / .svn information and from the current cache.

Thanks,

-- 
Thomas S. Trias
Senior Developer
Artizan Internet Services
http://www.artizan.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-02-28 20:12:24 CET

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.