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

Re: How to close a checked out directory

From: Leo Davidson <leonudeldavidson_at_gmail.com>
Date: Fri, 24 Sep 2010 09:31:28 +0100

On 23 September 2010 23:33, Robert C <spawnedengineering_at_yahoo.com> wrote:

> What I would like to do is open a directory, complete the work and commit it
> then close it. Is that possible? Can a directory/file be checked in if its unmodified?

Apologies if I'm wrong but it sounds like you're used to the
SourceSafe model where Checkout takes exclusive ownership of a file,
you then edit it (or not) and then Checkin to commit your changes (if
any) and release your ownership of it.

Subversion doesn't work that way. Doing a checkout in SVN just means
that you have a local copy of the files that you can access and edit.
Doing a checkout in SVN does not mean you own those files, and there
is no need to "checkin" files so that other people can edit them.
Other people can edit them regardless.

If you edit some files you can then do a Commit in SVN which will save
your changes to the repository. If someone else has also edited those
files, you'll have to Update to pull down their changes before you are
able to Commit. When you do that Update, SVN will attempt to merge
your changes and theirs into your local copy. (If it fails to do a
good job, you'll need to manually edit the file.) You can then Commit
your changes.

Subversion does have Lock/Unlock commands which allow people to gain
exclusive access to files -- usually used with filetypes that
typically cannot be merged, such as MS Office documents or bitmaps --
but that locking is rarely used (for typical text files, anyway) and
it's something you have to do explicitly in addition to the usual
Checkout/Update/Commit cycle.

There's probably a better description of the two types of systems here:

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-basics-versioning.html

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-09-24 10:31:38 CEST

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