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

Re: create branch failed

From: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Tue, 6 Jan 2009 21:36:26 +0300

2009/1/5 Helge Kruse <HelgeKruse_at_t-online.de>:
> Hello,
>
> I want to reorganize my repository and create a trunk/branch structure.
>
> I moved the former root to /trunk and created a /branch directory and commited it with the repository. Now I wanted to create the
> specific branch. I accidentily used
>
> svn copy /trunk/Product /branch/x.y/Product
>
> This copied the complete tree below Product to the new branch. I deleted the local x.y/Product tree and used
>
> svn revert /branch
>
> before any commit. Now I wanted to create the directories x.y and Product and "svn copy" the directories to Product. Unfortunately
> this doesnt work:
>
> svn mkdir x.y
> svn: 'x.y' is already under version control
>
> I tried to revert, update and cleanup. But I cant get rid off the x.y directory:
>
> cd /branch
> svn cleanup .
> svn st
> ! x.y
>
> svn revert .
> svn st
> ! x.y
>
> svn update
> At revision 114.
>
> svn st
> ! x.y
>
> But the repository doesn hold this directory:
>
> svn ls
> (no entries listed here)
>
> How do I get in sync again and copy efficiently specific directories from the trunk to the branches?
>
> Regards,
> Helge
>

Revert of a copy operation performed on a working copy (and that copy
operation, actually, consists of physically copying the file plus
"adding" it) does revert only the "add" part of it. The copied files
and subdirectories remain on your system.

That is by design.

To get rid of those extra files, just remove them (rm -f I suppose)

Also, I recommend you to learn how to use the copy command directly on
the repository, without affecting the working copy. That is, to use
URL -> URL copy instead of WC -> WC one that you are using. I prefer
to use that one when creating tags.

Best regards,
Konstantin Kolinko

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1008190

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-06 19:37:53 CET

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.