Remove folder from working copy after removal from repository

23 views
Skip to first unread message

Jonathan Potter

unread,
May 17, 2019, 6:55:57 PM5/17/19
to TortoiseSVN

I have removed a large data folder from our SVN repository using the svndumpfilter technique (dump repository, filter dump file, create new repository and re-import). That all went fine.

Now I'm trying to work out how to remove the folder from my working copy without having to do a fresh checkout.


  • If I do an update as normal, nothing happens.
  • If I delete the folder and then do an update it simply comes back (not sure from where, since it's not in the repo any more - I guess from within the depths of the .svn folder).
  • I have tried a Clean Up, it makes no difference.
  • I expect it would cause problems if I deleted it locally and then did a commit so I haven't tried that (yet).
  • If I right click on the folder to view the log for it, I get a message saying it doesn't exist in the current revision, so it's clearly gone from the repository.

What's the best way to remove the local copy of the folder other than doing a fresh checkout?


Stefan

unread,
May 19, 2019, 9:03:03 AM5/19/19
to TortoiseSVN


On Saturday, May 18, 2019 at 12:55:57 AM UTC+2, Jonathan Potter wrote:

I have removed a large data folder from our SVN repository using the svndumpfilter technique (dump repository, filter dump file, create new repository and re-import). That all went fine.

Now I'm trying to work out how to remove the folder from my working copy without having to do a fresh checkout.


  • If I do an update as normal, nothing happens.
  • If I delete the folder and then do an update it simply comes back (not sure from where, since it's not in the repo any more - I guess from within the depths of the .svn folder).
Yes, it's restored from the working copy metadata in the .svn folder.
 
  • I have tried a Clean Up, it makes no difference.
  • I expect it would cause problems if I deleted it locally and then did a commit so I haven't tried that (yet).
  • If I right click on the folder to view the log for it, I get a message saying it doesn't exist in the current revision, so it's clearly gone from the repository.

What's the best way to remove the local copy of the folder other than doing a fresh checkout?


Since you've removed the folder with svndumpfilter, there's no trace of the folder left. So when you run an update, there's no data telling svn clients to remove that folder.
Unfortunately, I don't know of a clean way to get rid of that folder without doing a fresh checkout.
Sorry.

Stefan

 

Tony Rietwyk

unread,
May 19, 2019, 11:05:38 PM5/19/19
to TortoiseSVN
Would it help if you reran the svndumpfilter on the contents of the folder, but left the folder itself?  That way, you can still commit the removal of the now empty folder, and the clients will unversion it when they update. 
Reply all
Reply to author
Forward
0 new messages