Re: Two feature requests - Remove from repo without delete from WC, and SVN import with filters
Date: 2005-10-23 14:37:15 CEST
> firstname.lastname@example.org wrote (originally to the TortoiseSVN list):
I know it's a mistake, but in my case, where the codebase is one I haven't seen before, I judged it safer to import the lot and then remove what I find I _don't_ need, as opposed to cleaning the tree outside of the safety net of version control and then finding I'd broken it.
From the rest of your reply, it appears that I shall have what I want when Subversion implements the repository-defined autoprops, because then I can simply define what to ignore on import ahead of time, have that propagate to the client with which I'm doing the import, and then perform the import on my uncleaned tree. Right?
> * Set the "global-ignores" configuration option to filter out as many of the
The issue I've come across is not just auto-generated files. Sometimes, for example, there'll be a website, with a directory full of images that don't strictly speaking, need to be version controlled. Thumbnails, for example. Or a temp directory. Here, one wants the fact that there's a directory, but not the images inside it. It's happened in the past that I've added all the images to the repo where I didn't want to, and subsequently wanted to un-version-control them without deleting them from disk. The workaround is to export someplace, svn delete, set svn:ignore for that directory, and copy in the images. But then there's the problem that if one sets svn:ignore, recursively, from a higher point in the tree, the image directory's svn:ignore gets nuked and if one's not careful, the images will get put in, next commit, again.
> 2. You didn't say whether you were more interested in your own WC or other
I'm mostly interested in my own WC.
> >It would be lovely if I could simply mark items to be removed from source
Here I'm talking more about TSVN's interface for importing rather than SVN's underlying facility for importing. I want to be able to see a list of files, and then tick/untick tickboxes to determine which are imported. I'd like to be able to pre-filter this list by defining filters up-front. I'd like it to be able to intelligently figure out what my svn:ignore property might be to satisfy what I eventually decide to include/exclude, and give me the option of setting it, after review.
> >[Second, separate feature request, really] What would be rather useful,
Yes. But I hadn't remembered to set it appropriately.
So, basically, I can eliminate needing to do what I want (mostly) if I set up the global-ignores ahead of time, and I shall be even more happy when I can do that on a per-repo basis?
This is an archived mail posted to the Subversion Dev mailing list.