If your old repository was not set read-only and there were commits made to it after your project were upgraded, you will need to bring those commits over to the new repository. With git and Mercurial, it is relatively straightforward to push the commits to the new repository. Just pull all the commits from the old repo, change your origin / default path (see below), and push the commits to the new repo.
For SVN, it is more complicated. If there are no new commits on the new repository, you can just use the Import Repo tool on the Admin page of the project to reimport the repository. If the repos are diverged, you will need to merge the changes into the new repo:
svn merge -r<last-common-revision>:HEAD <old-repo-url>
If you have a newer version of git, you can use
git remote set-url origin <new-repo-url>
If your version of git doesn't support
set-url, you'll need to remove and re-add the origin remote:
git remote rm origin git remote add origin <new-repo-url>
You can also just edit the
.git/config file and change the URL there.
Just edit the
hgrc file in
.hg/hgrc and change the URL for
default in the
Newer versions of SVN can use the
svn relocate <new-repo-url>
Older versions will need to use
svn switch --relocate <old-repo-url> <new-repo-url>
You can get the old repo URL from the
Note that the URL paths need to match, that is, if your old URL ends in
/trunk, the new one must as well, and vice-versa. If not, you may get the error:
svn: Can't find entry
Contact SourceForge Support and we'll do what we can to help.