Don't you just want this?
http://blogs.open.collab.net/svn/2009/03/sparse-directories-now-with-exclusion.html
Basically use the --depth feature to prune away what you do not want
rather than using svn rm.
Mark
On Wed, Feb 10, 2010 at 2:59 PM, David Cummings
<david.a.cummings_at_gmail.com> wrote:
> I'm looking for a way to remove a directory from my working copy
> without it causing svn diff to report changes.
>
> I often use svn co and svn up with --depth files to checkout partial
> pieces of a repository.
>
> For example I have the following repository structure:
> ----trunk
> |------- folder1
> |------- folder2
>
> To checkout trunk and folder 1 I would do:
> svn checkout "file:///svn/project/trunk_at_HEAD" -r HEAD
> --ignore-externals --depth files
> "/home/davey/ws/project_runtime/trunk3"
> svn update "/home/davey/ws/project_runtime/trunk3/folder1" -r HEAD --depth files
>
> This gives me a partial checkout of my repository. Most importantly
> though, if I do an svn diff I do not see any changes.
>
> Now sometimes I checkout everything, but then decide that I don't want
> certain folders in my working copy. If I remove them using svn rm, and
> then subsequently do an svn diff, I obviously see the deletion as a
> change.
>
> So I'm looking for a different command like svn rmlocal that would not
> report this diff (essentially removing the deleted dir from the
> .svn/entries). I can remove this data from the entries file, but it is
> a pain. Is there an svn command that allows me to do this?
>
> Thanks,
> David
>
--
Thanks
Mark Phippard
http://markphip.blogspot.com/
Received on 2010-02-10 21:06:20 CET