"Bert Huijben" <b...@qqmail.nl> writes:

> I'm wondering, is it safe to do this this way... or should we use the
> safer svn_uri_dirname() to split of whole components from a url at a
> time.
>
> Are there cases where this might match half a directory (or host) name?

Relocate prefixes do not need to be complete components:

svnadmin create yyrepo
svn co file://`pwd`/yyrepo wc
mv yyrepo xxrepo

$ svn info --show-item url wc
file:///home/pm/sw/subversion/obj/yyrepo
$ svn relocate file://`pwd`/yy file://`pwd`/xx wc
$ svn info --show-item url wc
file:///home/pm/sw/subversion/obj/xxrepo

-- 
Philip Martin
WANdisco

Reply via email to