Английская Википедия:Concurrent Versions System

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

Шаблон:Short description Шаблон:Lead too short Шаблон:Infobox software

Concurrent Versions System (CVS, or Concurrent Versioning System) is a version control system originally developed by Dick Grune in July 1986.[1]

CVS operates as a front end to Revision Control System (RCS), an earlier system which operates on single files. It expands upon RCS by adding support for repository-level change tracking, and a client-server model.[2]

Released under the terms of the GNU General Public License, CVS is free software.

Design

CVS operates as a front end to Revision Control System (RCS), an older version control system that manages individual files but not whole projects. It expands upon RCS by adding support for repository-level change tracking, and a client-server model.[2] Files are tracked using the same history format as in RCS, with a hidden directory containing a corresponding history file for each file in the repository.

CVS uses delta compression for efficient storage of different versions of the same file. This works well with large text files with few changes from one version to the next. This is usually the case for source code files. On the other hand, when CVS is told to store a file as binary, it will keep each individual version on the server. This is typically used for non-text files such as executable images where it is difficult to create compact deltas between versions.

CVS excludes symbolic links because when they are stored in a version control system they can pose a security risk. For instance, a symbolic link to a sensitive file can be stored in the repository, making the sensitive file accessible even when it is not checked in. In place of symbolic links, scripts that require certain privileges and conscious intervention to execute may be checked into CVS.Шаблон:Citation needed

Operation

CVS labels a single project (set of related files) that it manages as a module. A CVS server stores the modules it manages in its repository. Programmers acquire copies of modules by checking out. The checked-out files serve as a working copy, sandbox or workspace. Changes to the working copy are reflected in the repository by committing them. To update is to acquire or merge the changes in the repository with the working copy.

CVS uses a client–server architecture: a server stores the current version(s) of a project and its history, and clients connect to the server in order to "check out" a complete copy of the project, work on this copy and then later "check in" their changes. CVS servers can allow "anonymous read access",[3] wherein clients may check out and compare versions with either a blank or simple published password (e.g., "anoncvs"); only the check-in of changes requires a personal account and password in these scenarios. Several developers may work on the same project concurrently, each one editing files within their own "working copy" of the project, and sending (or checking in) their modifications to the server. To avoid conflicts, the server only accepts changes made to the most recent version of a file. Developers are therefore expected to keep their working copy up-to-date by incorporating other people's changes on a regular basis. This task is mostly handled automatically by the CVS client, requiring manual intervention only when an edit conflict arises between a checked-in modification and the yet-unchecked local version of a file. Clients can also use the "update" command to bring their local copies up-to-date with the newest version on the server. Clients can also compare versions, request a complete history of changes, or check out a historical snapshot of the project (e.g.: based on a given date). If the check-in operation succeeds, then the version numbers of all files involved automatically increment, and the server writes a user-supplied description line, the date and the author's name to its log files. CVS can also run external, user-specified log processing scripts following each commit. These scripts are installed by an entry in CVS's loginfo file, which can trigger email notification or convert the log data into a Web-based format.

CVS can also maintain different "branches" of a project. For instance, a released version of the software project may form one branch, used for bug fixes, while a version under current development, with major changes and new features, can form a separate branch. CVS assumes that the majority of work takes place on the trunk, and that branches should generally be short-lived or historical. When used as designed, branches are easily managed and branch operations are efficient and fast.[4][5]

Portability

The server software normally runs on Unix (although at least the CVSNT server also supports various flavors of Microsoft Windows), while CVS clients may run on any major operating system platform.

History

Grune recalled:[6] Шаблон:Quotation

Grune publicly released the code on June 23, 1986.[7]

The code that eventually evolved into the current version of CVS started with Brian Berliner in April 1989, with later input from Jeff Polk and many other contributors. Brian Berliner wrote a paper introducing his improvements to the CVS program—which describes how the tool was extended and used internally by Prisma, a third-party developer working on the SunOS kernel, and was released for the benefit of the community under the GPL.[8] On November 19, 1990, CVS version 1.0 was submitted to the Free Software Foundation for development and distribution.[9]

The latest version was released on 8 May 2008.[10]

Adoption and successors

Шаблон:Quotation

Over time, developers have created new version control systems based on CVS in order to add features, alter the operational model, and improve developers' productivity. CVS replacement projects include CVSNT and Subversion.[11][12]

See also

Шаблон:Portal

Notes

Шаблон:Reflist

References

Шаблон:Refbegin

Шаблон:Refend

External links

Шаблон:Version control software Шаблон:Authority control

  1. Ошибка цитирования Неверный тег <ref>; для сносок ximbiot не указан текст
  2. 2,0 2,1 Ошибка цитирования Неверный тег <ref>; для сносок Stopak не указан текст
  3. Ошибка цитирования Неверный тег <ref>; для сносок anoncvs не указан текст
  4. Ошибка цитирования Неверный тег <ref>; для сносок Collins-Sussman не указан текст
  5. Ошибка цитирования Неверный тег <ref>; для сносок West не указан текст
  6. Ошибка цитирования Неверный тег <ref>; для сносок Grune не указан текст
  7. Ошибка цитирования Неверный тег <ref>; для сносок mod.sources не указан текст
  8. Ошибка цитирования Неверный тег <ref>; для сносок Berliner не указан текст
  9. Ошибка цитирования Неверный тег <ref>; для сносок 1.0 не указан текст
  10. Ошибка цитирования Неверный тег <ref>; для сносок latestversion не указан текст
  11. Ошибка цитирования Неверный тег <ref>; для сносок faq не указан текст
  12. Ошибка цитирования Неверный тег <ref>; для сносок FUD не указан текст