SCM-Manager and Repo URL

362 views
Skip to first unread message

Romain Gouyet

unread,
Dec 18, 2019, 8:38:43 AM12/18/19
to scmmanager
Hi
I'm  using scm-manager 1.60 since a few month with more than 800 repository with success.


With SCM-manager 2.0, i saw that url will be in the form : http://localhost/scm/repo/hg/my-repo

Is there any way to keep my actual repo url working with Scm 2.0 ?
Because I can't imagine updating all my projects and dev settings to change all the repo URLs ...

thanks




Rene Pfeuffer

unread,
Dec 18, 2019, 9:17:25 AM12/18/19
to scmmanager
Hi Romain,

just tried this. Good news first: We have implemented redirections for legacy repository URLs.

Mercurial is following these redirects (at least version 4.8.2 at my machine), so here nothing has to be changed.

SVN only mentions the redirect, which then can be applied

svn update                                                                                      
Updating '.':
svn
: E170011: Repository moved temporarily to 'http://localhost:8080/scm/repo/svn/my-repo'
svn relocate http://localhost:8080/scm/repo/svn/my-repo                                      
svn update                                            
Updating '.':
A    some_more_file
Updated to revision 2.

For git you can configure the client to follow redirects:

git config --global --add http.https://my.server.com.followRedirects true

Hope this helps.

René

Romain Gouyet

unread,
Dec 18, 2019, 10:09:10 AM12/18/19
to scmmanager
Thanks for you answer.

Is there something to do to setup the redirection in scm-manager (hg and svn)?

Romain Gouyet

unread,
Dec 18, 2019, 10:17:54 AM12/18/19
to scmmanager
Sorry I just saw the migration screen on the blog. I think my answer is probably here

Rene Pfeuffer

unread,
Dec 18, 2019, 10:19:53 AM12/18/19
to scmmanager
No, there is nothing to do. The redirection works "out of the box" and for all migration options (COPY, MOVE and INLINE).
Reply all
Reply to author
Forward
0 new messages