This isn't, I don't think, a standard svn ignore question.
I have a repository with a huge directory in it that I don't want. Because others using the repository do, I can't just delete it from the tree. BUT, I don't want to redownload this directory every time I do a svn up. I can understand that ignore will prevent directories that I have from being uploaded to svn, but how I can I tell svn that I don't want it to redownload particular directories that are already in the repository.
What I do...
svn up
rm badDirectory
and then future svn up's redownload it. I want to prevent that.
Thanks!
edit: OK. I was hoping that SVN had a built in option that I just hadn't noticed yet. I was hoping to avoid having to "hack" around subversion's inadequacies, but the options below seem like acceptable alternatives.
edit again to address a couple of comments:
Is there particular reason why you
cannot check-out that folder and keep
it ? no disk space (probably not since
you can check-out it) ? security
reason ?
I could check out the folder. The entire svn repository is about 291 megs.. 290 of it is in this "bad" directory. Basically, some other people who have control over the repository (and therefore get to decide what goes in there) put a directory in there that really didn't need to be in there. I didn't mean for this to be a question about policy and the "proper & right" ways to use svn. I was just wondering if there was a technical solution.
Can you give a better description of
the tree structure of the repository?
Are there files at the same level as
the bad directory, or only other
directories? –
Basic structure:
repository root
- good dir 1
- plenty of subdirs in all of these directories
- good dir 2
- good dir X
- bad dir 1
- bad dir 2
- bad dir X
- good file 1
- good file 2
- good file X
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…