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

Re: Delete directory locally without causing svn diff to report changes

From: David Cummings <david.a.cummings_at_gmail.com>
Date: Wed, 10 Feb 2010 15:11:32 -0500

Thank you Mark. Works like a charm :)

For those who don't want to follow the link, the following command was
what I was looking for:
svn update --set-depth=exclude <directory_name>

On Wed, Feb 10, 2010 at 3:05 PM, Mark Phippard <markphip_at_gmail.com> wrote:
> 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:12:08 CET

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

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