There was an svn project in svn repo http://svn/repoA/path1/ . Call this original repo.
This was copied to http://svn/repoA/path2 . Call this new repo.
A local working copy on one of our machines, checked out from original repo, was updated after this copy occurred.
Then original repo was deleted.
We now wish to reintegrate the working copy into new repo.
svn switch
is suitable for this. Running inside the project base directory:
svn switch http://svn/repoA/path2
However, switch
complains because the project has a revision number which does not exist in new repo.
In svn 1.6 I would have changed the revision number in .svn/entries
recursively under the project base dir, where it is stored as plaintext.
In svn 1.7 such information seems to be stored opaquely (encoded in some way) into .svn/wc.db
or other new files.
My question is: how can I force the working copy to think it's an existing revision on the copied revision history so that I can switch it to the cloned repo folder and thereafter update it?
You know you were not suppose to touch those
.svn
directories. I bet you also open the back of electronic appliances even though there's a label that clearly says Warning: No user serviceable parts inside. Do not open unless sudden death by electrocution is desired.Yes, I do too.
You can still do a
svn status
on the old working directory to find your changed files, and then copy those over to the new working directory. Ansvn status
will work even though the old repository doesn't exist.Or, you can checkout a new working copy in another directory, delete all the old
.svn
directories from the old working copy, and then just copy all of those files over to the new working directory. You can then do ansvn status
to find what changed, and fix those issues.