"Skipped obstructing working copy" for folder checked out later from same trunk

2,403 views
Skip to first unread message

Marc Preuß

unread,
Mar 14, 2013, 3:59:41 AM3/14/13
to us...@tortoisesvn.tigris.org
Hi,

when I created my local working copy, I only checked out the projects
I'm working on.
Say, there are folders projectA...projectZ in the SVN trunk.
I created a local folder /projects and used the "Choose items" dialog
to check out only projectA, projectC and projectG.

Later I also worked on projectK so I went to my /projects folder and checked
out projectK. Still, the folder hierarchy is the same as in the trunk, only
that not all folders are there.

/projects
+-.svn
+-projectA
+-projectC
+-projectG
+-projectK
+-.svn

Now when I update /projects I get the "Skipped obstructing working copy"
message for projectK.
I understand that it forms its own working copy because it wasn't
included in my original checkout
and has its own .svn folder. But why does subversion do that when the
folder structure is the same
as in the trunk?

My questions:
- Is there a way to tell subversion that the new folder is part of the
same working copy?
Or somehow "move" it there, without checking everything out again?
- Is there a way, for a working copy that has originally been checked
out using "choose items",
to select more items to include when updating, to avoid this
situation in the future?

Am I just not seeing something or are these features really missing?

Thanks,

Marc

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3050992

To unsubscribe from this discussion, e-mail: [users-un...@tortoisesvn.tigris.org].

Ben Fritz

unread,
Mar 14, 2013, 11:06:23 AM3/14/13
to us...@tortoisesvn.tigris.org
I don't know of a way to do this. You can try deleting the .svn
directory inside the new working copy to see what happens, but you
could just end up screwing it up. I'd make a copy first. That's just a
guess, you might get a better answer from somebody else.

> - Is there a way, for a working copy that has originally been checked
> out using "choose items",
> to select more items to include when updating, to avoid this
> situation in the future?
>

This I can answer. Use "Update to Revision" and select the items again
with the same dialog.

Or use the command-line tools with one of the switches to the "svn
update" command. Basically, if you're modifying the current working
copy, you want "update", and you only use "checkout" when you want a
*new* working copy.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3051022

Kurt Pruenner

unread,
Mar 14, 2013, 11:19:17 AM3/14/13
to us...@tortoisesvn.tigris.org
On 14.3.2013 16:06, Ben Fritz wrote:
> This I can answer. Use "Update to Revision" and select the items again
> with the same dialog.

Which is kinda awkward as it also makes it easy to accidentally remove
something that you forgot to select.

> Or use the command-line tools with one of the switches to the "svn
> update" command. Basically, if you're modifying the current working
> copy, you want "update", and you only use "checkout" when you want a
> *new* working copy.

Or use the Repo Browser, navigate to the folder that you want to pull
in, right click on it and choose "Update item to revision..." - that
allows you to just add this very folder without having to worry about
affecting any other folders.

This even works with several folders at the same level if you select
them before opening the context menu.

And if you want to exclude a folder again you can choose "Update to
revision..." from Explorer on it and select "Exclude" as the depth.

--
Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3051023

Ben Fritz

unread,
Mar 14, 2013, 1:14:34 PM3/14/13
to us...@tortoisesvn.tigris.org
On Thu, Mar 14, 2013 at 10:19 AM, Kurt Pruenner <le...@gmx.at> wrote:
> On 14.3.2013 16:06, Ben Fritz wrote:
>> This I can answer. Use "Update to Revision" and select the items again
>> with the same dialog.
>
> Which is kinda awkward as it also makes it easy to accidentally remove
> something that you forgot to select.
>

Yes. What I actually like doing when creating my sparse working
copies, is to pull in the top-level directory structure in its
entirety, but not pull in any *contents* of the directories I don't
need. This way if I do need them in the future I can easily "update to
revision" on the the directory in question to pull it in.

>> Or use the command-line tools with one of the switches to the "svn
>> update" command. Basically, if you're modifying the current working
>> copy, you want "update", and you only use "checkout" when you want a
>> *new* working copy.
>
> Or use the Repo Browser, navigate to the folder that you want to pull
> in, right click on it and choose "Update item to revision..." - that
> allows you to just add this very folder without having to worry about
> affecting any other folders.
>
> This even works with several folders at the same level if you select
> them before opening the context menu.
>

Nice, I didn't know this trick!

> And if you want to exclude a folder again you can choose "Update to
> revision..." from Explorer on it and select "Exclude" as the depth.
>

Or you can chose "this item only" as the depth so that you can more
easily get it back in the future if you want it.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3051037
Reply all
Reply to author
Forward
0 new messages