What is the working copy of SVN?

Source: Internet
Author: User

The first question a newcomer Subversion May ask to himself- What is this and how can I use it in my work? Speaking shortly Subversion Can be characterized as a version control system which tracks the history of file and directory changes over time. All versioned files and directories reside as a tree structure (just like a general filesystem) in Subversion Repository. both versioned files and directories can have versioned metadata-properties. changes to such a tree are committed by clients to a repository in a single atomic transaction. each commit operation creates a newer snapshot of the whole tree which provided des all recent changes made in that commit operation as well as all previous unchanged data. such a snapshot is called Revision . Subversion Repository starts its life from Revision 0 where only the root directory exists. then as files and directories are imported into a repository, changes to them are committed-New revisions are created, and each successful commit operation increases the revision number by one:

 

subversion doesn' t actually keep the whole contents in every revision. for every n-th revision it uses smart mechanisms to store only the differences that were made in that n-th Revision itself (I. e. data differences between revisions N-1 and N ). so, revisions allow you to retrieve any version of a file, or directory, or even of the whole tree (since a single revision is created for the whole repository tree) at any time, no changes will be lost. each revision is a permanent snapshot of a tree, I. e. if an item is added to a subversion repository it can not be removed from the repository entirely, because it can be always found in those revisions where it was added and changed. although in this case item history is broken and it no longer exists in the repository starting with the revision where it's deleted.

A common scenario of using a subversion repository is working with a copy of any subtree of a repository tree on a local computer and publishing results of this work into the repository. in other words, a client somehow changes files and directories taken from a repository and then commits his \ her changes into the repository. local versioned data tree is calledWorking copy(WC ).

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.