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

Re: my understanding on svn switch

From: N D <niranjan8712_at_gmail.com>
Date: Wed, 30 Jul 2008 18:48:31 +0200

Hi Blair,

Thanks a ton on that information. Another query that I would like to ask is:

My prj is as, in home_dir/user_name i have
WC_web
WC_ear
WC= working copy.

I am using the following command to tag the WC_ear:

svn copy --message 'some message' WC_ear <svn_repo_link_to_tags>/tag_number
For the ear of my webapp, the WC_ear goes in properly at that tag. so i have
<svn_repo_link_to_tags>/tag_number/WC_ear

But, when i use similar command for tagging the WC_web,of my project, the *
contents* of the WC_web go in at the tag rather than the *WC_web itself*. So
i have this after the above two copy operation:
<svn_repo_link_to_tags>/tag_number/WC_Ear
                                                         -
                                                         -
                                                         -
                                                         -
where the dashes above indicate the contents of WC_web

even i used this
svn mkdir - - message 'some message' <svn_link_to_tags>/tag_number/WC_web
and then the
 svn copy --message 'some msg' WC_web
<svn_repo_link_to_tags>/tag_number/WC_web

but still the contents of WC_web are pushed in rather than the WC_web
folder.

I would like to see such folder structure at the tag location, after the
copy operation:

<svn_link_to_tags>/tag_number/Wc_web
                                              /Wc_ear

The locaton where i do a checkout is
/home_dir/user_name/WC_Web
/home_dir/user_name/WC_Ear
and all the svn commands are fired @ the /home_dir/user_name.

Hope you understood :) Can you help me in this Blair?

On 7/30/08, Blair Zajac <blair_at_orcaware.com> wrote:

> N D wrote:
>
>> when i switch to some location of my subversion reposory using svn switch,
>> the following things hold:
>> any new files/dir from the repo location will be added to my working
>> copy, if they are not present in my WC
>>
>
> Yes.
>
> any existing files/dir (that exist both in the repo and WC) will be
>> overwritten in my WC, therby overwriting any changes
>>
>
> No. It does a merge into those files, not a copy, preserving any local
> changes.
>
> any files/dir present in my WC, but not in the repo location, will be
>> deleted from my WC
>>
>
> Unversioned files will not be touched. Versioned files will be deleted if
> they have no local modifications. Versioned files with local modifications
> will be kept.
>
> Regards,
> Blair
>
> --
> Blair Zajac, Ph.D.
> CTO, OrcaWare Technologies
> <blair_at_orcaware.com>
> Subversion training, consulting and support
> http://www.orcaware.com/svn/
>

-- 
Regards,
Niranjan Deshpande
"Shut yourself from the world and create the reality you want"
Received on 2008-07-30 18:48:59 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.