Revision control |
Revision control is the management of multiple revisions of the same unit of information. It is most commonly used in engineering and software development to manage ongoing evolution of digital documents like application source code, art resources such as blueprints or electronic models and other critical information that may be worked on by a team of people. Changes to these documents are identified by incrementing an associated number or letter code, termed the revision number , revision level , or simply revision and associated historically with the person making the change. A simple form of revision control, for example, has the initial issue of a drawing assigned the revision number 1. When the first change is made, the revision number is incremented to 2 and so on.
List of revision control software are increasingly recognized as being necessary for most software development projects.
=Overview=
Engineering revision control developed from formalized processes based on tracking revisions of early blueprints or whiteprint. Implicit in this control was the option to be able to return to any earlier state of the design, for cases in which an engineering dead-end was reached in iterating any particular engineering design. Likewise, in computer software engineering, revision control is any practice which tracks and provides controls over changes to source code. Software developers sometimes use revision control Software to maintain Documentation and configuration files as well as source code. In theory, revision control can be applied to any type of information record. In practice, however, the more sophisticated techniques and tools for revision control have rarely been used outside software development circles (though they could actually be of benefit in many other areas). However, they are beginning to be used for the electronic tracking of changes to CAD files, supplanting the manual electronic implementation of traditional revision control.
As software is developed and deployed, it is extremely common for multiple Versions of the same software to be deployed in different sites, and for the software s developers to be working privately on updates. Computer bug and other issues with software are often only present in certain versions (because of the fixing of some problems and the introduction of others as the program evolves). Therefore, for the purposes of locating and fixing bugs, it is vitally important for the Debugger to be able to retrieve and run different versions of the software to determine in which version(s) the problem occurs. It may also be necessary to develop two versions of the software concurrently (for instance, where one version has bugs fixed, but no new features, while the other version is where new features are worked on).
At the simplest level, developers can simply retain multiple copies of the different versions of the program, and number them appropriately. This simple approach has been used on many large software projects. Whilst this method can work, it is inefficient (as many near-identical copies of the program will be kept around), requires a lot of self-discipline on the part of developers, and often leads to mistakes. Consequently, systems to automate some or all of the revision control process have been developed.
Traditionally, revision control systems have used a centralized model, where all the revision control functions are performed on a shared server. A few years ago, systems like TeamWare, BitKeeper, and GNU arch began using a distributed model, where each developer works directly with their own local repository, and changes are shared between repositories as a separate step. This mode of operation allows developers to work without a network connection, and it also allows developers full revision control capabilities without requiring permissions to be granted by a central authority. One of the leading proponents of distributed revision control is Linus Torvalds, inventor of the Linux kernel.
In most software development projects, multiple developers work on the Computer program at the same time. If two developers try to change the same Computer file at the same time, without some method of managing access the developers may well end up overwriting each other s work. Most revision control systems solve this in one of two ways. This is only a problem for centralized revision control systems, since distributed systems inherently allow multiple simultaneous editing.
Some systems prevent concurrent access problems, by simply Lock (software engineering) files so that only one developer at a time has write access to the central Repository copies of those files. Others, such as Concurrent Versions System, allow multiple developers to be editing the same file at the same time, and provide facilities to merge (revision control) changes later. In the latter type, the concept of a reserved edit can provide an optional means to explicitly lock a file for exclusive write access, even though a merge (revision control) capability exists.
The merits and drawbacks of file locking are hotly debated. It can provide some protection against difficult merge (revision control) conflicts when a user is making radical changes to many sections of a large file (or group of files). But if the files are left exclusively locked for too long, other developers can be tempted to simply bypass the revision control software and change the files locally anyway. That can lead to more serious problems.
Some systems attempt to manage who is allowed to make changes to different aspects of the program, for instance, allowing changes to a file to be checked by a designated reviewer before being added.
Most revision control software use delta compression, which retains only the differences between successive versions of files. This allows more efficient storage of many different versions of files.
Some of the more advanced revision control tools offer many other facilities, allowing deeper integration with other tools and software engineering processes. Plugins are often available for integrated development environment such as Eclipse (computing) and Visual Studio.
The are identical in concept and practice to the revision control software discussed above.
== Vocabulary ==
; Repository : The repository is where the files are stored, often on a server. Sometimes also called a depot (e.g. with Perforce). ; Commit : A commit (or, more rarely, install, submit, check-in or ci) occurs when you copy the changes you made on the local files to the directory (the version control software takes care of knowing which files changed since the last time the two were synchronized). ; Change : A change represents a specific modification to a document under version control. The granularity of the modification considered a change varies between version control systems. ; Change List : On many version control systems with atomic multi-change commits, a changelist identifies the set of changes made in a single commit. This can also represent a sequential view on the source code, allowing source to be examined as of any particular changelist ID. ; Check-Out : A check-out (or checkout or co) copies a working copy from the repository (it can be seen as the opposite of an import). ; Update : An update (or sync) copies the changes that were made to the repository into your working directory (it can be seen as the opposite of a commit). ; Merge / Integration : A merge or integration brings together (merges) concurrent changes into a unified revision. ; Revision : A revision or version is one version in a chain of changes. ; Import : The term import is used to describe copying the local directory tree in its entirety from your machine to the repository. ; Export : An export is similar to a check-out except that it creates a clean directory tree without version control metadata (often used prior to publishing the contents). ; Conflict : A conflict occurs when two changes are made by different parties to the same document or place within a document. Since the software may not be intelligent enough to decide which change is correct , a user is required to resolve the conflict. ; Resolve : The act of user intervention to address a conflict between different changes to the same document.
=See also=
=External links=
*[http://www.cmcrossroads.com/yp/ The Configuration Management Yellow Pages] *[http://revctrl.org/ Revctrl Wiki]|
|