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

RE: svn switch question

From: Miller, Eric <Eric.Miller_at_amd.com>
Date: 2007-11-01 21:23:10 CET

> First, my opinion on this: Rethink your methodology. I don't think
it
> is a good idea to have a single working copy reference items from
> multiple branches while looking/acting like a representation of
"trunk".

Suffice it to say I wouldn't be doing this if I didn't have to.

> Presumably, when you commit, these changes are going back to their
> respective locations in the repository anyway (since you switched the
> subfolders, so this is just a working copy convenience to you, right?

If it helps, assume that the tag branches are immutable. This scenario
is not just a working copy convenience, see the description below.

> Now, I suggest that if you wish to continue doing it this way that you
> make each path (A, B, C) its own working copy (checkout each
> separately). If you'd done this before, you'd simply delete the "C"
> working copy and be done with it. The disadvantage is that you would
be
> doing a commit per path, rather than a commit at the root, but it
would
> more accurately represent what is actually happening.

No can do. path/ has versioned files in it and we all know that svn
can't check out individual files. Besides, losing the ability to commit
all changes from the working copy root node would not be acceptable.

I'm going to update my nomenclature a bit to better distinguish the
working copy paths from the repository urls.

The updated contrived working copy:
  wc:wc_root/path/ => url:trunk/path (dir)
  wc:wc_root/path/A/ => url:tags/tag2/path/A (dir)
  wc:wc_root/path/B => url:trunk/path/B (file)
  wc:wc_root/path/C/ => url:tags/tag1/path/C (dir)

The scenario:
I created a working copy with subdirs pointing to a mixture of tags.
This "perfect" mixture is what I need to create yet another tag. I do
so and then wish to update a portion of the working copy
(wc:wc_root/path/C) to the trunk. While I was creating my perfect
mixture, someone deleted url:trunk/path/C (and that's ok with me). Lets
say for the sake of argument that url:trunk/path/A has also been
deleted.
 
Restating the question: If url:trunk/path/C has been deleted how do I
switch wc:wc_root/path/C to that deleted trunk state without doing the
same to wc:wc_root/path/A, or any other innocent bystanders?

Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Nov 1 21:24:21 2007

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.