How can I redirect svn urls to another domain? -
background: dyndns has started require once month logon keep free accounts active (previously had renew ip address once month). sure sooner or later forget , lose account.
i use mysvn.dyndns.org accessing subversion repository on server can (as of now) reached svn.mydomain.com. unfortunately projects refer externals located @ mysvn.dyndns.org , don't want go through projects (>100) , change externals, because take several hours , rather error prone.
is there way configure windows or subversion / tortoisesvn clients redirect 1 domain another?
e.g.:
https://mysvn.dyndns.org/svn/blablub
should redirected to
https://svn.mydomain.com/svn/blablub
i know can add entry hosts redirect ip address, prefer redirection domain name.
you (really) asked 2 related questions:
- can redirect
somename.domain.com
anothername.somedomain.com
? - can svn-clients use old name, intecat new host?
and short answers be
- yes
- no
longer versions
for redirecting old hostname new have , can use @ least 2 variations (with same final result)
- at dns level , cname record, alias new name new:
somename.domain.com. in cname anothername.somedomain.com
on request of somename answer data anothername
- in apache's config host of location somename can add redirect anothername apache's
but: work on browsers's level - when you'll try use redirected location target subversion's command, you'll error "repository moved, please relocate" , must relocate old resources new url.
good news your
all externals definition written svn-properties inside source repo, can list of these externals (with values) , update new values, , operation (theoretically) can automated
svn propget -r svn:externals . > file
in root of working copy getting externals
svn propset svn:externals --target file
defining new externals in batch
Comments
Post a Comment