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

RE: Re: Switching Question - TortoiseSVN 1.7.0, Build 22068 - 64 Bit

From: Kentucky Matt <mathias_r2_at_yahoo.com>
Date: Fri, 21 Oct 2011 06:41:44 -0700 (PDT)

Hello,

        Thank you for your reply. I apologize that my description was a bit cloudy, so I'll try again in hopes of clarifying.

        I create a new folder and checkout a new working copy from https://myserver/svn/trunk into it using the "SVN Checkout" option from the context menu with the option of HEAD revision.

        My working copy now contains the following files that are in the trunk: File1.txt, File2.txt, File3.txt, File4.txt.

        When I run "svn info C:\MyWorkingCopy" on the working copy it reports:
        
                Working Copy Root Path: C:\MyWorkingCopy
                URL: https://myserver/svn/trunk
                Repository Root: https://myserver/svn
                Repository UUID: 0ce29038-4a70-45ae-8a1e-7d2f2ce429ee
                Revision: 12217
                Node Kind: directory
                Schedule: normal
                Last Changed Author: unknown
                Last Changed Rev: 12169
                Last Changed Date: 2011-10-19 10:49:53 -0500 (Wed, 19 Oct 2011)
                
        I have a branch in this project, B001, that contains the following files: File1.txt, File2.txt, File3.txt, File4.txt, File5.txt. This branch was created from the current trunk and the only modification was the addition of the new file.

        I decide that I want to switch my working copy to the branch, so I choose "Switch" from the context menu and set the path to "/branches/B001" with the option of "HEAD Revision" and a switch depth of "Fully Recursive".

        When I run "svn info C:\MyWorkingCopy" on the working copy it reports:
                
                Working Copy Root Path: C:\MyWorkingCopy
                URL: https://myserver/svn/branches/B001
                Repository Root: https://myserver/svn
                Repository UUID: 0ce29038-4a70-45ae-8a1e-7d2f2ce429ee
                Revision: 12217
                Node Kind: directory
                Schedule: normal
                Last Changed Author: unknown
                Last Changed Rev: 12169
                Last Changed Date: 2011-10-19 10:49:53 -0500 (Wed, 19 Oct 2011)

        When I look in the working copy to see what files are there, the following files are present: File1.txt, File2.txt, File3.txt, File4.txt. I had expected that File5.txt would be there since I switched my working copy from the trunk to the branch B001, which contains all of these files as well as File5.txt.

        In an effort to get File5.txt into my working copy, I ran the "SVN Update" command from the context menu and the dialog outputs the following:

                Command Update
                Updating C:\MyWorkingCopy
                Completed At revision: 12218

        Since I can see that the revision number here is different, I check for the existence of File5.txt in my working copy, but it is still not present - only files 1-4 are there.

        I see the same behaviors if I perform the operations starting on the branch and switching to the trunk except in that case File5.txt remains present in my working copy when I switch from the branch B001 to the trunk.

        Is this not how it works? Do I have to create a new working copy for every branch that I want to work from if I want to have all of the files in that branch?

        As far as the revision number discrepancy, I apologize - in my haste to describe what was going on I realized that I looked at two different fields from the command line: "Last Changed Revision", and "Revision", so that is why I thought my revision information looked quirky. In light of this, please disregard my previous comments regarding revision number discrepancies between the trunk and branch when switching.

        Hopefully that will be a bit more clear - sorry for my cryptic attempt at an explanation in my original post.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-10-21 15:41:48 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.