[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1723385 - in /subversion/trunk/subversion: libsvn_client/relocate.c tests/cmdline/relocate_tests.py

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 06 Jan 2016 18:29:30 +0000

"Bert Huijben" <bert_at_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
Received on 2016-01-06 19:29:45 CET

This is an archived mail posted to the Subversion Dev mailing list.