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

Re: Change a file's repository path?

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Tue, 7 Oct 2008 19:53:12 -0500

On Oct 7, 2008, at 19:52, Mike Summers wrote:

> Ryan Schmidt wrote
>
>> On Oct 7, 2008, at 19:26, Mike Summers wrote:
>>
>> > Ryan Schmidt wrote:
>> >
>> >> On Oct 7, 2008, at 18:12, Mike Summers wrote:
>> >>
>> >> > Ryan Schmidt wrote:
>> >> >
>> >> >> On Oct 6, 2008, at 22:06, Mike Summers wrote:
>> >> >>
>> >> >>> Is there anyway to change a file's repository path?
>> >> >>>
>> >> >>> I have two repositories and due to a stray soft link a
>> couple of
>> >> >>> files are pointed at the wrong repository.
>> >> >>
>> >> >> Can you elaborate on the problem? Are we talking about files
>> >> >> within the repository directory, such as the revision and
>> revision
>> >> >> property files in db/revs and db/revprops, or what? If
>> they're in
>> >> >> the wrong place, just move them to the right place, although
>> I
>> >> >> don't see how the got to the wrong place initially.
>> >> >
>> >> > Project foo, file /x/y/z.source, repository path svn://
>> localhost/
>> >> > opt/foo/trunk
>> >> > Project bar, file /a/b/c/link.to.z.source, repository path
>> svn://
>> >> > localhost/opt/bar/trunk
>> >> >
>> >> > When I commit foo, it tells me it's going to save z.source as
>> /bar/
>> >> > trunk/a/b/c/z.source... I'm assuming this is due to the stray
>> soft
>> >> > link in bar that was at some point committed.
>> >> >
>> >> > What I'd like to do is get z.source committed in project
>> foo's
>> >> > trunk.
>> >>
>> >> Have you tried just checking out new working copies? It sounds
>> like
>> >> your foo working copy thinks it is a working copy of bar. Just
>> check
>> >> out new ones, manually move over your changed files, commit, and
>> >> throw away the old working copies.
>> >
>> > There are only two files under foo that are affected, the other 480
>> > files in foo behave just fine.
>>
>> Run "svn info" in the directories of the affected files. Does the
>> repository URL reflect repository foo or repository bar?

> Foo's url.
>
> If I do a commit all but two of the files head for foo's trunk...
> just these two head for bar's trunk. Always the same two.

That surprises me, but I can still only suggest to check out a new
working copy.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-08 02:59:26 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.