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
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
There's probably a better description of the two types of systems here:
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-09-24 10:31:38 CEST