Concurrent Versions System: Difference between revisions
Newslinger (talk | contribs) m Use Free and open-source software portal name (via WP:JWB) |
→External links: Pruned external links to meet WP:EL. |
||
(76 intermediate revisions by 34 users not shown) | |||
Line 1: | Line 1: | ||
{{Short description|Historical centralized version control system}} |
|||
{{lead too short|date=September 2018}} |
|||
{{Infobox software |
{{Infobox software |
||
| logo = |
|||
| name = Concurrent Versions System |
|||
| screenshot = |
|||
| logo = |
|||
| caption = |
|||
| screenshot = |
|||
| developer = [http://savannah.nongnu.org/project/memberlist.php?detailed=1&group=cvs The CVS Team] |
|||
| caption = |
|||
| released = {{Start date and age|1990|11|19}} |
|||
| developer = [http://savannah.nongnu.org/project/memberlist.php?detailed=1&group=cvs The CVS Team] |
|||
| latest release version = 1.11.23<ref>[https://savannah.nongnu.org/news/?id=5273 Stable CVS Version 1.11.23 Released!]</ref> |
|||
| released = {{Start date and age|1990|11|19}} |
|||
| latest release |
| latest release date = {{Start date and age|2008|05|08}} |
||
| latest preview version = 1.12.13<ref>[https://savannah.nongnu.org/news/?id=4010 CVS Feature Version 1.12.13 Released! * Security Update *]</ref> |
|||
| latest release date = {{Start date and age|2008|05|08}} |
|||
| latest preview |
| latest preview date = {{Start date and age|2005|09|28}} |
||
| operating system = [[Unix-like]], [[Microsoft Windows|Windows]] |
|||
| latest preview date = {{Start date and age|2006|07|26}} |
|||
| platform = |
|||
| operating system = [[Unix-like]], [[Microsoft Windows|Windows]] |
|||
| programming language = [[C (programming language)|C]] |
|||
| platform = |
|||
| genre = [[Revision control]] |
|||
| programming language = [[C (programming language)|C]] |
|||
| license = [[GNU General Public License|GPL-1.0-or-later]]<ref>{{cite web|url=https://cvs.savannah.nongnu.org/viewvc/cvs/ccvs/README?view=markup|title=Contents of /ccvs/README}}</ref> |
|||
| genre = [[Revision control]] |
|||
| website = {{URL|http://cvs.nongnu.org}} |
|||
| license = [[GNU General Public License]] |
|||
| website = {{URL|http://savannah.nongnu.org/projects/cvs}} |
|||
}} |
}} |
||
{{lead rewrite|date=September 2018}} |
|||
The '''Concurrent Versions System''' ('''CVS'''), also known as the '''Concurrent Versioning System''', is a [[free software|free]] [[client-server]] [[revision control]] system in the field of [[software development]]. A version control system keeps track of all work and all changes in a set of files, and allows several developers (potentially widely separated in space and time) to [[collaboration|collaborate]]. [[Dick Grune]] developed CVS as a series of [[shell scripts]] in July 1986.<ref>{{cite web|url=http://ximbiot.com/cvs/manual/cvs-1.12.12/cvs_1.html|title=CVS--Concurrent Versions System v1.12.12.1: Overview|publisher=ximbiot.com - Per Cederqvist|accessdate=9 December 2011|archive-url=https://web.archive.org/web/20120415051926/http://ximbiot.com/cvs/manual/cvs-1.12.12/cvs_1.html|archive-date=15 April 2012|dead-url=yes|df=dmy-all}}</ref> |
|||
'''Concurrent Versions System''' ('''CVS''', or '''Concurrent Versioning System''') is a [[version control system]] originally developed by [[Dick Grune]] in July 1986.<ref name="ximbiot" /> |
|||
In addition to proprietary software developers, CVS became popular with the [[open-source software]] world and was released under the [[GNU General Public License]]. While there was regular development to add features and fix bugs in the past,<ref>{{cite web|url=http://lists.nongnu.org/archive/html/cvs-cvs/|title=CVS Change Log|accessdate=February 22, 2011}}</ref> including regular builds and test results,<ref>{{cite web|url=http://lists.nongnu.org/archive/html/cvs-test-results/|title=CVS Test Results|accessdate=February 22, 2011}}</ref> there have been no new releases since 2008.<ref name="latestversion" /> |
|||
== |
== Design == |
||
CVS operates as a [[front end and back end|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.<ref name="Stopak" /> 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 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. Typically, the client and server connect over a [[local area network|LAN]] or over the [[Internet]], but client and server may both run on the same machine if CVS has the task of keeping track of the version history of a project with only local developers. The server software normally runs on [[Unix]] (although at least the [[CVSNT]] server also supports various flavours of [[Microsoft Windows]]), while CVS clients may run on any major [[operating system|operating-system]] platform. |
|||
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. |
|||
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. |
|||
CVS excludes [[symbolic link]]s 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|reason=cleanup of text|date=July 2017}} |
|||
If the check in operation succeeds, then the version numbers of all files involved automatically increment, and the CVS-server writes a user-supplied description line, the date and the author's name to its [[data logging|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 <tt>loginfo</tt> file, which can trigger email notification or convert the log data into a Web-based format. |
|||
== Operation == |
|||
Clients can also compare versions, request a complete history of changes, or check out a historical snapshot of the project as of a given date or as of a revision number. |
|||
CVS labels a single project (set of related files) that it manages as a ''[[module (programming)|module]]''. A CVS server stores the modules it manages in its ''[[information repository|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 ''[[commit (data management)|committing]]'' them. To ''update'' is to acquire or ''[[merge (revision control)|merge]]'' the changes in the repository with the working copy. |
|||
CVS servers can allow "anonymous read access",<ref name=anoncvs>{{cite web|author1=Charles D. Cranor|author2=Theo de Raadt|title=Opening The Source Repository With Anonymous CVS, USENIX 1999|url=http://www.openbsd.org/papers/anoncvs-paper.pdf|date=1999}}</ref> 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. |
|||
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",<ref name="anoncvs" /> 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 [[data logging|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 <code>loginfo</code> file, which can trigger email notification or convert the log data into a Web-based format. |
|||
Clients can also use the "update" command to bring their local copies up-to-date with the newest version on the server. This eliminates the need for repeated downloading of the whole project. |
|||
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 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.<ref name="Collins-Sussman" /><ref name="West" /> |
||
== Portability == |
|||
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. Storing files as binary is important in order to avoid corruption of binary files. |
|||
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. |
|||
{{Quotation|In the world of open source software, the Concurrent Version System (CVS) has long been the tool of choice for version control. And rightly so. CVS itself is free software, and its non-restrictive ''modus operandi'' and support for networked operation – which allow dozens of geographically dispersed programmers to share their work – fits the collaborative nature of the open-source world very well. CVS and its semi-chaotic development model have become cornerstones of open-source.|Collins-Sussman|Version Control with Subversion For Subversion 1.1, 2005}} |
|||
== |
== History == |
||
Grune recalled:<ref name="Grune" /> |
|||
CVS labels a single project (set of related files) that it manages as a ''[[module (programming)|module]]''. A CVS server stores the modules it manages in its ''[[information repository|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 ''[[Commit (data management)|committing]]'' them. To ''update'' is to acquire or ''[[Merge (revision control)|merge]]'' the changes in the repository with the working copy. |
|||
{{ quotation |
|||
| I created CVS to be able to cooperate with my students, Erik Baalbergen and Maarten Waage, on the ACK ([[Amsterdam Compiler Kit]]) C compiler. The three of us had vastly different schedules (one student was a steady 9-5 worker, the other was irregular, and I could work on the project only in the evenings). Their project ran from July 1984 to August 1985. CVS was initially called cmt, for the obvious reason that it allowed us to commit versions independently. |
|||
}} |
|||
Grune publicly released the code on June 23, 1986.<ref name="mod.sources" /> |
|||
== Design == |
|||
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.<ref name="Berliner" /> On November 19, 1990, CVS version 1.0 was submitted to the [[Free Software Foundation]] for development and distribution.<ref name="1.0" /> |
|||
CVS was designed: |
|||
The latest version was released on 8 May 2008.<ref name="latestversion" /> |
|||
* To exclude [[symbolic link]]s 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|reason=cleanup of text|date=July 2017}} |
|||
* Use the native ASCII character set in filenames, precluding the use of multi-lingual filenames. Now many Unix systems run in [[UTF-8]],<ref>{{Cite web |
|||
| last = Kuhn |
|||
| first = Markus |
|||
| title = UTF-8 and Unicode FAQ |
|||
| accessdate = 2010-07-07 |
|||
| date = 2009-05-11 |
|||
| url = http://www.cl.cam.ac.uk/~mgk25/unicode.html |
|||
}}</ref> and CVS on such systems handles UTF-8 multi-lingual filenames natively. |
|||
* Create revisions per file, not an identifier for all revisions created during a commit ( this is sometimes referred to as ''atomic'' but not in the [[Atomicity (database systems)|transactional database sense]], where a commit automatically rolls back if it fails for any reason, but in the sense that each commit can be uniquely identified). This design choice was made even when servers could easily have had insufficient resilience to complete a commit without crashing. The lack of atomicity is mitigated by the fact that in many code management processes, development work is performed on branches and then merged into the trunk after code review. That final merge is ''atomic,'' and performed in the data center by QA{{Citation needed|reason=cleanup of text|date=July 2017}}. Tracking each commit can be accomplished by modifying the correct trigger. |
|||
* To assume 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.<ref>{{Cite web |
|||
| last = Collins-Sussman |
|||
| first = Ben |
|||
|author2=Greg Ward |
|||
| title = Subversion Users: Re: Performance (Subversion vs. CVS) |
|||
| work = subversion-users |
|||
| accessdate = 2010-07-07 |
|||
| date = September 2004 |
|||
| url = http://svn.haxx.se/users/archive-2004-09/0681.shtml |
|||
}}</ref><ref>{{Cite web |
|||
|last = West |
|||
|first = Adrian |
|||
|title = cvs branchtag performance fix |
|||
|accessdate = 2010-07-07 |
|||
|date = July 2004 |
|||
|url = http://www.adrianwest.org/cvs_perf_fix/cvs_perf_fix.htm |
|||
|archive-url = https://web.archive.org/web/20090803183951/http://www.adrianwest.org/cvs_perf_fix/cvs_perf_fix.htm |
|||
|archive-date = 2009-08-03 |
|||
|dead-url = yes |
|||
|df = |
|||
}}</ref> |
|||
* That text files are expected to be the primary file type stored in the CVS repository{{Citation needed|reason=cleanup of text|date=July 2017}}. However, binary files are also supported, and files with a particular file extension can automatically be recognized as being binary. |
|||
* That changes would be frequently committed to the centrally checked-in copies of files in order to aid merging and foster rapid distribution of changes to all users{{Citation needed|reason=cleanup of text|date=July 2017}}, so there is no support for [[distributed revision control]] or unpublished changes. |
|||
== |
== Adoption and successors == |
||
{{ quotation |
|||
Dick Grune developed CVS as a [[Front and back ends|front end]] for the [[Revision Control System]] (RCS), an older version control system that manages individual files but not whole projects. |
|||
| In the world of open source software, the Concurrent Version System (CVS) has long been the tool of choice for version control. And rightly so. CVS itself is free software, and its non-restrictive ''modus operandi'' and support for networked operation—which allow dozens of geographically dispersed programmers to share their work—fits the collaborative nature of the open-source world very well. CVS and its semi-chaotic development model have become cornerstones of open-source.<ref name="svnbook" /> |
|||
}} |
|||
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 (software)|Subversion]].<ref name="faq" /><ref name="FUD" /> |
|||
{{Quotation|I created CVS to be able to cooperate with my students, Erik Baalbergen and Maarten Waage, on the ACK ([[Amsterdam Compiler Kit]]) C compiler. The three of us had vastly different schedules (one student was a steady 9-5 worker, the other was irregular, and I could work on the project only in the evenings). Their project ran from July 1984 to August 1985. CVS was initially called cmt, for the obvious reason that it allowed us to commit versions independently.|source=http://dickgrune.com/Programs/CVS.orig/#History}} |
|||
Grune publicly released the code on June 23, 1986.<ref>{{cite newsgroup |title=CVS, an RCS front-end (cvs) |author=Dick Grune |date=July 3, 1986 |newsgroup=mod.sources |message-id=122@mirror.UUCP |url=https://groups.google.com/group/mod.sources/msg/2ebab72ac0744fb8?dmode=source |access-date=September 14, 2016}}</ref> |
|||
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 [http://citeseer.ist.psu.edu/berliner90cvs.html 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. On November 19, 1990, CVS version 1.0 was submitted to the [[Free Software Foundation]] for development and distribution.<ref>[http://cvs.savannah.gnu.org/viewvc/ccvs/NEWS?revision=1.1&root=cvs&view=markup initial release of version 1.0; CVS NEWS file]</ref> |
|||
CVS supports distributed, multi-site and offline operations due to the unreliability of the few computer networks that existed at the time CVS evolved. |
|||
=== Development status === |
|||
{{original research|section|date=April 2016}} |
|||
There have been no official recent announcements indicating the project status. |
|||
* The latest version was released {{date|2008-05-08}} ({{Age in years, months and days|2008|05|08}} ago).<ref name="latestversion">{{cite web | url=http://savannah.nongnu.org/news/?group=cvs | title=Concurrent Versions System - News |
|||
| accessdate=April 19, 2016|date={{date|2008-05-08|mdy}}|publisher=[[Free Software Foundation, Inc.]]}}</ref> |
|||
* Since 2008 there have been some maintenance bugfixes in the CVS project's own CVS repository.<ref>{{cite web|url=http://cvs.savannah.gnu.org/viewvc/cvs/ccvs/ChangeLog|title=CVS ChangeLog|accessdate=May 25, 2009}}</ref> |
|||
* There are no bugs or enhancements reported<ref>{{cite web|url=http://savannah.nongnu.org/bugs/?group=cvs|title=Open requests for fixes/features|accessdate=January 17, 2013}}</ref> since the last code change that are complete (fulfill the requirement for a fix). There are a total of 9 reports, most of which are questions. Questions are typically answered quickly if asked on the mailing list. |
|||
* The info-cvs mailing list actively answer questions.<ref>{{cite web|url=http://lists.nongnu.org/archive/html/info-cvs/|title=CVS Mailing List|accessdate=January 17, 2013}}</ref> |
|||
* Links on the official CVS page that point to the external web site ximbiot.com, such as 'Current Events,' are dead,<ref name="cvs_current">{{cite web | url=http://ximbiot.com/cvs/wiki/Current%20events | title=Current Events | accessdate=January 15, 2013}}</ref> as is the CVS wiki.<ref>{{cite web | url=http://ximbiot.com/cvs/wiki/ | title=CVS Wiki | accessdate=January 15, 2013 | quote=Companies offering commercial support for CVS are listed in the CVS Wiki. | archive-url=https://web.archive.org/web/20101130125020/http://ximbiot.com/cvs/wiki/ | archive-date=November 30, 2010 | dead-url=yes | df=mdy-all }}</ref> Archived information is available using [https://web.archive.org/web/20121113100506/http://ximbiot.com/cvs/cvshome/docs/ new links] |
|||
* The last message in the Cvs-Announce mailing list was posted on {{date|2008-05-08}} ({{Age in years, months and days|2008|05|08}} ago).<ref>{{cite web | url=https://lists.nongnu.org/archive/html/cvs-announce/2008-05/msg00000.html | title=Stable CVS Version 1.11.23 Released! | publisher=GNU | work=Cvs-Announce mailing list | accessdate=January 15, 2013 | quote=Stable CVS 1.11.23 has been released. Stable releases contain only bug fixes from previous versions of CVS.}}</ref> |
|||
* The last code checkin to the CVS code repository occurred on {{date|2011-03-30}} ({{Age in years, months and days|2011|03|30}} ago).<ref>{{cite web | url=http://cvs.savannah.gnu.org/viewvc/cvs/ccvs/src/?sortby=date#dirlist | title=Savannah CVS Surfing - Index of /cvs/ccvs/src | accessdate=January 15, 2013 | quote=gpg.c (parse_signature_subpacket): Correct spout->raw memory allocation. (Reported by David Taylor <dtaylor@emc.com>.)}}</ref> |
|||
Development of the [[Microsoft Windows]], [[Linux]], [[Solaris (operating system)|Solaris]], [[HPUX]], [[I5os]] and [[Mac OS X]] port of CVS has split off into a separate project named [[CVSNT]], which is under current, active development.<ref>{{cite web | url=http://www.evscm.org/about/ | title=About the CVSNT Project | publisher=March Hare Software | work=History | accessdate=January 15, 2013 | quote=CVS Suite 2009R2 was released in July 2011 with improved support for versioning PL/SQL triggers/procedures etc, and CVS Suite 2010 is currently being prepared for release. A major upgrade: CVS Suite 2012 is in final planning stages and is expected to be released in early 2012.}}</ref> |
|||
=== Relationship with GNU === |
|||
The relationship between CVS and the [[GNU project]] has long been somewhat ambiguous: the GNU web site distributed the program, labelling it "GNU package" on one page and "other GPL-licensed project" on another. In 2008, when development of CVS was transferred from the old website (cvshome.org) to the [[GNU Savannah]] hosting platform, it was placed in the "non-GNU" section.<ref>Note: all pages in the non-gnu section automatically contain the notice "This project is not part of the GNU Project", so this is just an automatic consequence of being in the non-gnu section, not a comment specifically made by GNU about CVS. {{cite web | url=https://savannah.nongnu.org/projects/cvs/ | title=Concurrent Versions System - Summary | accessdate=January 15, 2013 | quote=This project is not part of the GNU Project.}}</ref> Further, on GNU's FTP download server, CVS is distributed in the "non-gnu" directory. |
|||
=== Successors === |
|||
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]] (first released 1998), [[Subversion (software)|Subversion]]<ref>{{cite web|url=http://subversion.apache.org/faq.html#why|title=Subversion FAQ: Why does this project exist?|publisher=[[Subversion (software)|Subversion]]|accessdate=September 21, 2009}}</ref><ref>{{cite web|url=http://www.red-bean.com/sussman/svn-anti-fud.html |title=Dispelling Subversion FUD |publisher=Ben Collins-Sussman |accessdate=June 30, 2010 |deadurl=yes |archiveurl=https://web.archive.org/web/20110718233416/http://www.red-bean.com/sussman/svn-anti-fud.html |archivedate=July 18, 2011 |df= }}</ref> (initially released in 2004<ref>Subversion released 26th February 2004: and the CHANGELOG proof can be found [http://svn.apache.org/viewvc/subversion/trunk/CHANGES?revision=848923&view=markup here]</ref>) and [http://www.evscm.org/ EVS] (first released 2008). |
|||
== See also == |
== See also == |
||
{{Portal|Free and open-source software}} |
{{Portal|Free and open-source software}} |
||
* [[Comparison of version-control software]] |
|||
* [[StatCVS]], a program that generates graphical reports about CVS repositories. |
|||
* [[Cervisia]] |
|||
* [[TortoiseCVS]], a ''shell-integrated'' [[CVSNT]] client for [[Microsoft]] [[Windows]] (commonly used with CVS servers)<ref>{{Cite web |
|||
* [[OpenGrok]] |
|||
| last = Barrett |
|||
* [[StatCVS]] |
|||
| first = Arthur |
|||
* [[TortoiseCVS]] |
|||
| title = Anonymous or Developer checkout with TortoiseCVS |
|||
* [[ViewVC]] |
|||
| accessdate = 2010-07-10 |
|||
| date = 2010-06-25 |
|||
| url = http://drupal.org/node/22293 |
|||
}}</ref><ref>{{Cite web |
|||
| last = Barrett |
|||
| first = Arthur |
|||
| title = TortoiseCVS instructions – sourceforge |
|||
| accessdate = 2010-07-10 |
|||
| url = http://sourceforge.net/apps/trac/sourceforge/wiki/TortoiseCVS%20instructions |
|||
}}</ref> |
|||
* [[Bonsai CVS code management system]], a tool to report on files, directories, and branches under CVS management. |
|||
* [[Cervisia]], a KDE GUI frontend for CVS |
|||
* [[ViewVC]], a browser interface for CVS repositories |
|||
* [[OpenGrok]], a browser interface for CVS repositories |
|||
* [[CVSup]], a utility and protocol to check out and mirror CVS repositories efficiently |
|||
=== IDEs with support for CVS === |
|||
{{col-begin}} |
|||
{{col-3}} |
|||
* [[Android Studio]] |
|||
* [[Anjuta]] |
|||
* [[Code Composer Studio]] |
|||
* [[Dev-C++]] |
|||
* [[Eclipse (software)|Eclipse]] |
|||
** [[Aptana]] |
|||
** [[Zend Studio]] |
|||
* [[Emacs]] |
|||
* [[IntelliJ IDEA]] |
|||
{{col-3}} |
|||
* [[PL/SQL Developer]] |
|||
* [[JDeveloper]] |
|||
* [[KDevelop]] |
|||
* [[Komodo IDE]] |
|||
* [[NetBeans]] |
|||
* [[Oracle SQL Developer]] |
|||
* [[PHPEdit]] |
|||
* [[PhpStorm]]/[[WebStorm]] |
|||
* [[PyCharm]] |
|||
{{col-3}} |
|||
* [[Qt Creator]] |
|||
* [[SlickEdit]] |
|||
* [[Vim (text editor)|Vim]] (plugin: [http://www.vim.org/scripts/script.php?script_id=58 Menu for CVS-Versioncontrol]) |
|||
* [[Visual Studio]] |
|||
* [[Wing IDE|Wing IDE Professional]] |
|||
* [[wxDev-C++]] |
|||
* [[Xcode]] |
|||
{{col-end}} |
|||
== Notes == |
== Notes == |
||
{{Reflist}} |
|||
{{Reflist|refs= |
|||
== References == |
|||
<ref name="ximbiot">{{ cite web|url=http://ximbiot.com/cvs/manual/cvs-1.12.12/cvs_1.html|title=CVS--Concurrent Versions System v1.12.12.1: Overview|access-date=9 December 2011|archive-url=https://web.archive.org/web/20120415051926/http://ximbiot.com/cvs/manual/cvs-1.12.12/cvs_1.html|archive-date=15 April 2012|url-status=dead|df=dmy-all}}</ref> |
|||
{{Refbegin}} |
|||
<ref name="anoncvs">{{ cite web|author1=Charles D. Cranor|author2=Theo de Raadt|title=Opening The Source Repository With Anonymous CVS, USENIX 1999|url=http://www.openbsd.org/papers/anoncvs-paper.pdf |archive-url=https://ghostarchive.org/archive/20221009/http://www.openbsd.org/papers/anoncvs-paper.pdf |archive-date=2022-10-09 |url-status=live|date=1999}}</ref> |
|||
* {{Cite book |
|||
<ref name="Stopak">{{ cite web | title = The Evolution of Version Control System (VCS) Internals | first = Jacob | last = Stopak | date = November 30, 2019 | access-date = 22 September 2020 | url = https://initialcommit.com/blog/Technical-Guide-VCS-Internals }}</ref> |
|||
| author = David Thomas |
|||
<ref name="Collins-Sussman">{{ cite web | last = Collins-Sussman | first = Ben | author2=Greg Ward | title = Subversion Users: Re: Performance (Subversion vs. CVS) | work = subversion-users | access-date = 2010-07-07 | date = September 2004 | url = http://svn.haxx.se/users/archive-2004-09/0681.shtml }}</ref> |
|||
|author2=Andrew Hunt |authorlink2=Andy Hunt (author) |
|||
<ref name="West">{{ cite web | last = West | first = Adrian | title = cvs branchtag performance fix | access-date = 2010-07-07 | date = July 2004 | url = http://www.adrianwest.org/cvs_perf_fix/cvs_perf_fix.htm | archive-url = https://web.archive.org/web/20090803183951/http://www.adrianwest.org/cvs_perf_fix/cvs_perf_fix.htm | archive-date = 2009-08-03 | url-status = dead }}</ref> |
|||
| title = Pragmatic Version Control Using CVS |
|||
<ref name="mod.sources">{{ cite newsgroup |title=CVS, an RCS front-end (cvs) |author=Dick Grune |date=July 3, 1986 |newsgroup=mod.sources |message-id=122@mirror.UUCP |url=https://groups.google.com/group/mod.sources/msg/2ebab72ac0744fb8?dmode=source |access-date=September 14, 2016}}</ref> |
|||
| publisher = The Pragmatic Programmers |
|||
<ref name="1.0">{{Cite web|url=http://cvs.savannah.gnu.org/viewvc/cvs/ccvs/NEWS?view=markup&revision=1.1|title=[cvs] Contents of /ccvs/NEWS|website=cvs.savannah.gnu.org}}</ref> |
|||
| year = 2003 |
|||
<ref name="Berliner">{{Cite web|archive-url=https://web.archive.org/web/20040909083546/http://citeseer.ist.psu.edu/berliner90cvs.html|title=CVS II: Parallelizing Software Development - Berliner (ResearchIndex)|archive-date=September 9, 2004|url=http://citeseer.ist.psu.edu/berliner90cvs.html}}</ref> |
|||
| isbn = 0-9745140-0-4 |
|||
<ref name="latestversion">{{Cite web|url=http://savannah.nongnu.org/forum/forum.php?forum_id=5309|title=Concurrent Versions System - News: Stable CVS Version 1.11.23 Released! [Savannah]|website=savannah.nongnu.org}}</ref> |
|||
| url = http://www.pragprog.com/titles/vcc/pragmatic-version-control-using-cvs |
|||
<ref name="faq">{{ cite web|url=http://subversion.apache.org/faq.html#why|title=Subversion FAQ: Why does this project exist?|publisher=[[Subversion (software)|Subversion]]|access-date=September 21, 2009}}</ref> |
|||
| authorlink = Dave Thomas (programmer) |
|||
<ref name="Grune">{{Cite web|url=https://dickgrune.com/Programs/CVS.orig/|title=Concurrent Versions System CVS|website=dickgrune.com}}</ref> |
|||
<ref name="FUD">{{ cite web|url=http://www.red-bean.com/sussman/svn-anti-fud.html |title=Dispelling Subversion FUD |publisher=Ben Collins-Sussman |access-date=June 30, 2010 |url-status=dead |archive-url=https://web.archive.org/web/20110718233416/http://www.red-bean.com/sussman/svn-anti-fud.html |archive-date=July 18, 2011 }}</ref> |
|||
<ref name="svnbook">Ben Collins-Sussman, Version Control with Subversion For Subversion 1.1, 2005</ref> |
|||
}} |
}} |
||
* {{Cite book |
|||
== References == |
|||
| author = Jennifer Vesperman |
|||
| title = Essential CVS |
|||
{{refbegin}} |
|||
| edition = 2e |
|||
* {{ cite book | author = David Thomas | author2 = Andrew Hunt | author-link2 = Andy Hunt (author) | title = Pragmatic Version Control Using CVS | publisher = The Pragmatic Programmers | year = 2003 | isbn = 0-9745140-0-4 | url = https://archive.org/details/pragmaticversion00thom | author-link = Dave Thomas (programmer) | url-access = registration }} |
|||
| publisher = O'Reilly |
|||
* {{ cite book | author = Jennifer Vesperman | title = Essential CVS | edition = 2e | publisher = O'Reilly | year = 2006 | isbn = 0-596-52703-9 }} |
|||
| year = 2006 |
|||
* {{ cite book | author = Per Cederqvist | title = Version Management with CVS | year = 2002 | publisher = Network Theory | isbn = 0-9541617-1-8 | url = http://www.network-theory.co.uk/docs/cvsmanual/ | display-authors = etal | access-date = 2009-11-25 | archive-url = https://web.archive.org/web/20140805142426/http://www.network-theory.co.uk/docs/cvsmanual/ | archive-date = 2014-08-05 | url-status = dead }} |
|||
| isbn = 0-596-52703-9 |
|||
* {{ cite book | author = Karl Franz Fogel | author2 = Moshe Bar | author-link2 = Moshe Bar (investor) | title = Open Source Development with CVS | year = 2003 | publisher = Paraglyph Press | isbn = 1-932111-81-6 | url = http://cvsbook.red-bean.com/ | access-date = 2002-02-05 | archive-url = https://web.archive.org/web/20140716125342/http://cvsbook.red-bean.com/ | archive-date = 2014-07-16 | url-status = dead }} |
|||
}} |
|||
{{refend}} |
|||
* {{Cite book |
|||
| author = Per Cederqvist |
|||
| title = Version Management with CVS |
|||
| isbn = 0-9541617-1-8 |
|||
| url = http://www.network-theory.co.uk/docs/cvsmanual/ |
|||
|display-authors=etal}} |
|||
* {{Cite book |
|||
| author = Karl Franz Fogel |
|||
|author2=Moshe Bar |authorlink2=Moshe Bar (investor) |
|||
| title = Open Source Development with CVS |
|||
| isbn = 1-932111-81-6 |
|||
| url = http://cvsbook.red-bean.com/ |
|||
}} |
|||
{{Refend}} |
|||
== External links == |
== External links == |
||
* {{Official website|http://savannah.nongnu.org/projects/cvs}} |
|||
* {{official|http://savannah.nongnu.org/projects/cvs}} |
|||
* [http://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cederqvist-1.12.13.pdf Version Management with CVS] – manual for CVS 1.12.13, by Per Cederqvist et al. |
|||
{{Version control software}} |
{{Version control software}} |
||
{{Authority control}} |
|||
[[Category:1990 software]] |
|||
[[Category:Concurrent Versions System| ]] |
[[Category:Concurrent Versions System| ]] |
||
[[Category:1990 software]] |
|||
[[Category:Free software programmed in C]] |
[[Category:Free software programmed in C]] |
||
[[Category:Free version control software]] |
[[Category:Free version control software]] |
Latest revision as of 06:33, 5 September 2024
This article's lead section may be too short to adequately summarize the key points. (September 2018) |
Developer(s) | The CVS Team |
---|---|
Initial release | November 19, 1990 |
Stable release | 1.11.23[1]
/ May 8, 2008 |
Preview release | 1.12.13[2]
/ September 28, 2005 |
Repository | |
Written in | C |
Operating system | Unix-like, Windows |
Type | Revision control |
License | GPL-1.0-or-later[3] |
Website | cvs |
Concurrent Versions System (CVS, or Concurrent Versioning System) is a version control system originally developed by Dick Grune in July 1986.[4]
Design
[edit]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.[5] 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
[edit]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",[6] 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.[7][8]
Portability
[edit]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
[edit]Grune recalled:[9]
I created CVS to be able to cooperate with my students, Erik Baalbergen and Maarten Waage, on the ACK (Amsterdam Compiler Kit) C compiler. The three of us had vastly different schedules (one student was a steady 9-5 worker, the other was irregular, and I could work on the project only in the evenings). Their project ran from July 1984 to August 1985. CVS was initially called cmt, for the obvious reason that it allowed us to commit versions independently.
Grune publicly released the code on June 23, 1986.[10]
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.[11] On November 19, 1990, CVS version 1.0 was submitted to the Free Software Foundation for development and distribution.[12]
The latest version was released on 8 May 2008.[13]
Adoption and successors
[edit]In the world of open source software, the Concurrent Version System (CVS) has long been the tool of choice for version control. And rightly so. CVS itself is free software, and its non-restrictive modus operandi and support for networked operation—which allow dozens of geographically dispersed programmers to share their work—fits the collaborative nature of the open-source world very well. CVS and its semi-chaotic development model have become cornerstones of open-source.[14]
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.[15][16]
See also
[edit]Notes
[edit]- ^ Stable CVS Version 1.11.23 Released!
- ^ CVS Feature Version 1.12.13 Released! * Security Update *
- ^ "Contents of /ccvs/README".
- ^ "CVS--Concurrent Versions System v1.12.12.1: Overview". Archived from the original on 15 April 2012. Retrieved 9 December 2011.
- ^ Stopak, Jacob (November 30, 2019). "The Evolution of Version Control System (VCS) Internals". Retrieved 22 September 2020.
- ^ Charles D. Cranor; Theo de Raadt (1999). "Opening The Source Repository With Anonymous CVS, USENIX 1999" (PDF). Archived (PDF) from the original on 2022-10-09.
- ^ Collins-Sussman, Ben; Greg Ward (September 2004). "Subversion Users: Re: Performance (Subversion vs. CVS)". subversion-users. Retrieved 2010-07-07.
- ^ West, Adrian (July 2004). "cvs branchtag performance fix". Archived from the original on 2009-08-03. Retrieved 2010-07-07.
- ^ "Concurrent Versions System CVS". dickgrune.com.
- ^ Dick Grune (July 3, 1986). "CVS, an RCS front-end (cvs)". Newsgroup: mod.sources. Usenet: 122@mirror.UUCP. Retrieved September 14, 2016.
- ^ "CVS II: Parallelizing Software Development - Berliner (ResearchIndex)". Archived from the original on September 9, 2004.
- ^ "[cvs] Contents of /ccvs/NEWS". cvs.savannah.gnu.org.
- ^ "Concurrent Versions System - News: Stable CVS Version 1.11.23 Released! [Savannah]". savannah.nongnu.org.
- ^ Ben Collins-Sussman, Version Control with Subversion For Subversion 1.1, 2005
- ^ "Subversion FAQ: Why does this project exist?". Subversion. Retrieved September 21, 2009.
- ^ "Dispelling Subversion FUD". Ben Collins-Sussman. Archived from the original on July 18, 2011. Retrieved June 30, 2010.
References
[edit]- David Thomas; Andrew Hunt (2003). Pragmatic Version Control Using CVS. The Pragmatic Programmers. ISBN 0-9745140-0-4.
- Jennifer Vesperman (2006). Essential CVS (2e ed.). O'Reilly. ISBN 0-596-52703-9.
- Per Cederqvist; et al. (2002). Version Management with CVS. Network Theory. ISBN 0-9541617-1-8. Archived from the original on 2014-08-05. Retrieved 2009-11-25.
- Karl Franz Fogel; Moshe Bar (2003). Open Source Development with CVS. Paraglyph Press. ISBN 1-932111-81-6. Archived from the original on 2014-07-16. Retrieved 2002-02-05.