How to update moved repository URL?

Asked by Jiří Hajda on 2018-12-27

I can't find way to change import URL of existing Subversion imports. Subversion repository URL changed to shorter form and I need to update my projects to fix automatic synchronization. In console it would be something like svn relocate <new_url>. I can remove existing trunk branch from each project and re-add it again but it seems to be too complicated. There are other objects linked to branch like recipes and releases which would need to be kept. There should be some simple way to do that.

Projects which need to be corrected are listed in https://launchpad.net/~chronoscz/+related-projects
And there are usually two imports per project as there is a normal source code and also packaging directory import.

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Jiří Hajda
Solved:
2018-12-27
Last query:
2018-12-27
Last reply:
2018-12-27
Colin Watson (cjwatson) said : #1

Staff can do that sort of thing on request. Tell us what changes need to be made.

Jiří Hajda (chronoscz) said : #2

Basically I need to "relocate" all SVN imports for all projects under my user profile.
https://launchpad.net/~chronoscz/+related-projects
Its like 15 projects and I am not sure if I should list all those links here.

For each project there are usually two branches:
https://code.launchpad.net/~chronoscz/acronymdecoder/trunk
https://code.launchpad.net/~chronoscz/acronymdecoder/debian-packaging

What needs to be done is to remove root directory /svn from all links.
http://svn.zdechov.net/svn/AcronymDecoder/trunk => http://svn.zdechov.net/AcronymDecoder/trunk
http://svn.zdechov.net/svn/AcronymDecoder/trunk/Install/deb/debian/ => http://svn.zdechov.net/AcronymDecoder/trunk/Install/deb/debian/

Same needs to be done for all other projects.

"svn update" command would suggest new URL like:
$ svn update
Updating '.':
svn: E170011: Repository moved temporarily to 'http://svn.zdechov.net/project_name'

And I would fix that locally by simply executing: svn relocate http://svn.zdechov.net/project_name

Colin Watson (cjwatson) said : #3

I think I've got those all done now. Let us know if I missed anything.

Jiří Hajda (chronoscz) said : #4

Thank you very much. All looks ok now.