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

RE: Checking out files/folders

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Wed, 9 Feb 2011 16:33:20 -0500

> If I want to check out one file only, can I do that without
> checking out the whole folder this file is in?
> I know other users are able to modify files even though I checked
> them out, but some of us are not comfortable with the  fact that
> the whole folder needs to be checked out. Or am I mistaken here?
>
> Thanks!

I'm not sure what you are asking here.. I see two questions:

1. How can I check out a single file?

There isn't really a way to check-out a single file. But, you can check out the folder which contains that folder using a checkout depth of "Only the item" (empty) depth. Then you can right click on that folder and select "repo-browser" right click the file you want to check out and select "update item to revision". There you go, a single file checked out, sort of.

2. Why can others modify files I have checked out?

As far as item two... svn uses "optimistic locking" meaning that multiple users can have files/projects checked out. When you try to commit a change svn verifies that you have the most up to date version of that file as your BASE version. If you don't, it shows a commit error and you have to do an "update" prior to doing the commit. The "update" will merge the changes in the repository that you don't have yet, with your local file. If there are conflicts (you edited the same line that someone else has changed) you will get a merge conflict which you must resolve.

Hth,
BOb

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-02-09 22:33:43 CET

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.