On Dec 1, 2008, at 11:37, Ashish Utagikar wrote:
> Hi Ryan,
> I did not get any reply from anybody on this mail.
There was a response to your initial email, with which I agreed:
http://svn.haxx.se/users/archive-2008-11/0772.shtml
You can switch any part of the repository you want. Just specify that
part in your arguments to the switch command.
Suppose you have a trunk that you check out to my-wc:
svn checkout $REPO/trunk my-wc
If you just want to switch the subdirectory foo/bar to the
corresponding directory in the my-branch branch, then you would do:
svn switch $REPO/branches/my-branch/foo/bar my-wc/foo/bar
> unfortunately I am stuck now. I am evaluating subversion as SCM for
> my company and support is becoming a big issue for me.
>
> I would like to do the below and I think i found out that I will
> have to set the svn:externals property on the directories to
> checkout the externals so that partly it points to branch and the
> rest points to trunk in the work copy
>
> But my main question is how do I switch to only one file in the
> branch and the rest of it points to the trunk in the working copy ?
I do not know if you can switch just a single file; you may have to
settle for switching at the directory level. But give it a try.
> I tried that out and what i found out that subversion only works/
> switches on directories and is unable to switch to individual
> files. Am i right ?
Yes, you cannot do file-level externals, until this issue is
resolved, perhaps in Subversion 1.6:
http://subversion.tigris.org/issues/show_bug.cgi?id=937
> Also if i want to update a single file in my work copy by bring it
> in the work copy from a tag called gold, it cannot do that. it
> always updates it from the trunk.
>
> ie. svn update --> always updates from trunk
Yes...
> So how do I update only one file in my work area by bringing it in
> from a tag called gold instead of the trunk ? i.e only the file
> points to tag gold and everything else points to trunk in the
> working copy
Try switch. Maybe it works at the file level.
If not, there are of course other ways to get the file from the tag
into the working copy temporarily to test something out. You could
"svn rm" the file and then "svn cp" it from the tag (just remember
not to commit that, if you don't mean to commit it).
> I am stuck with these two important questions
>
> Can you please help ?
>
> P.S. this will be my first and last personal mail to you
>
> thanks a lot for your help
> ashish
>
> thanks
> ashish
>
>
>
>
> --- On Mon, 11/24/08, Ashish Utagikar <aputagikar_at_yahoo.com> wrote:
>
>> From: Ashish Utagikar <aputagikar_at_yahoo.com>
>> Subject: switching only part of the working copy
>> To: users_at_subversion.tigris.org
>> Date: Monday, November 24, 2008, 2:25 PM
>> Hi All,
>> I am using the svn switch command and I would like
>> to switch only part of the working copy to the branch, so
>> that in my working copy, I will have some data from the
>> trunk and the rest of the data from the branch
>>
>> Right now when i do the svn switch it switches me
>> completely to the branch and deletes all the trunk data from
>> my work copy.
>>
>> Also if i switch back to the trunk it switches me
>> completely to the trunk and deletes all the branch data from
>> my working copy.
>>
>> So I need part of the data to come from trunk and the rest
>> to come from the branch in my working copy .
>>
>> So can anyone please tell me how to do this ?
>>
>> thanks
>> ashish utagkar
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-12-01 20:44:46 CET