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

Delete directory locally without causing svn diff to report changes

From: David Cummings <david.a.cummings_at_gmail.com>
Date: Wed, 10 Feb 2010 14:59:16 -0500

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
Received on 2010-02-10 20:59:54 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.