You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Mark Phippard <ma...@gmail.com> on 2010/02/10 20:05:43 UTC

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

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
<da...@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@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/

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

Posted by David Cummings <da...@gmail.com>.
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 <ma...@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
> <da...@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@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/
>