oky_sabeni
oky_sabeni

Reputation: 7822

Tortoise SVN Commit to a new repository

Background:

I commit a subversion project to assembla with this folder structure.

folder1
folder2

But I made a mistake, folder1 should be in folder2. So I did that in my local copy and did a SVN commit. So, now I have folder1 is both the 'base folder' and inside folder2.

folder1
folder2
  folder1

So, I started reading on how to remove files/folders in SVN and it seems complicated or just scary (what if something goes wrong). I figured I can use a new repo. I can delete the old one since the latest copy, the one I want, is on my local machine. However, here is the issue, when I right-click on the folder, SVN commit automatically points to the existing repo.

How do I change it to point to a new repo. I'm afraid that if I delete the server repo and use the same name, it will complain about mismatch revision/HEAD or something.

Thanks!

Upvotes: 2

Views: 3539

Answers (3)

Lazy Badger
Lazy Badger

Reputation: 97270

So, I started reading on how to remove files/folders in SVN and it seems complicated or just scary

Well, really it's easy - remove in Working Copy and commit or svm rm URL/TO/FIOLDER/ in order to delete directly in repository

Upvotes: 1

Yannick Blondeau
Yannick Blondeau

Reputation: 9621

If what you want to do is use a new repository, and if you have created that new repo, then you can use the Relocate option of TortoiseSVN.

Upvotes: 1

patman
patman

Reputation: 2840

Just delete the folder and commit the deletions via TortoiseSVN. That's what i'm doing.

Upvotes: 0

Related Questions