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

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

From: Ulrich Eckhardt <ulrich.eckhardt_at_dominolaser.com>
Date: Mon, 24 Oct 2011 09:27:02 +0200

Am 21.10.2011 15:41, schrieb Kentucky Matt:
> 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.
[...]
> I have a branch in this project,
> B001, that contains the following files: File1.txt, File2.txt,
> File3.txt, File4.txt, File5.txt.
[...]
> 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 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.

Try checking out the branch or looking at the branch using the
repository browser. If File5.txt isn't there either, you probably copied
it to your working copy for the branch but didn't tell Subversion to
version that file ("svn add File5.txt").

Concerning the change in revision numbers, that seems normal to me. The
point is that 12169 was the last time the trunk was changed. It seems
however also to be the last time the branch was changed, which is rather
unusual but still possible though. Looking at the history ("svn log
...") could reveal some more info there.

> 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

Note that this revision means that all revisions including that one were
updated into your working copy. This includes revisions where the WC
didn't change, so it can differ from the "Last Changed Rev" of the WC info.

> 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.

Note: This again suggests that SVN doesn't know anything about that
file, i.e. that the file isn't versioned!

> 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?

No, it absolutely should not work as it does now, switching to a branch
should add/remove according files.

Good luck!

Uli

**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-10-24 09:27:21 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.