ArticleslgStudy

computer science

Apache Subversion

Apache Subversion is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Apache Subversion rather than just read about it. In short: Apache Subversion (often abbreviated SVN, after its command name svn) is a version control system. The software is distributed as open source software, under the Apache License.

Apache Subversion — main illustration
Apache Subversion — illustration

Key takeaways

  • Apache Subversion belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Apache Subversion to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Apache Subversion from memory before moving on to harder problems.

Reference excerpt

Apache Subversion (often abbreviated SVN, after its command name svn) is a version control system. The software is distributed as open source software, under the Apache License. Software developers use Subversion to maintain current and historical versions of files such as source code, web pages, and documentation. Subversion is generally used to aid in the software lifecycle process, including code commits, binary releases, fault reporting and retraction, patch releases, and developer updates (including documentation). Subversion is an important tool in software development lifecycle tasks such as software versioning. It provides an easy command line or application-based way to commit, branch, revert, and release all sorts of files (not only source code), though it is most used by the software development community. Unlike Git, which it predates, SVN repositories are more often maintained on privately maintained servers. Subversion's goal is to be a mostly compatible successor to the previously more widely used Concurrent Versions System (CVS). The open source community has used Subversion widely: for example, in projects such as Apache Software Foundation, FreeBSD, SourceForge, and from 2006 to 2019, GCC. CodePlex was previously a common host for Subversion repositories. Subversion was created by CollabNet Inc., and first released in 2000. Subversion was a top-level Apache project being built and used by a global community of developers and contributors.

History

CollabNet founded the Subversion project in 2000 as an effort to write an open-source version-control system which operated much like CVS but which fixed the bugs and supplied some features missing in CVS. By 2001, Subversion had advanced sufficiently to host its own source code, and in February 2004, version 1.0 was released. In November 2009, Subversion was accepted into Apache Incubator: this marked the beginning of the process to become a standard top-level Apache project. It became a top-level Apache project on February 17, 2010.

Release dates are extracted from Apache Subversion's CHANGES file, which records all release history.

Features Commits as true atomic operations (interrupted commit operations in CVS would cause repository inconsistency or corruption). The system maintains versioning for directories and some specific file metadata (see Properties). Users can move or copy files and entire directory-trees very quickly, while retaining full revision history (as being implemented by a reference to the original object). Versioning of symbolic links. Native support for binary files, with space-efficient binary-diff storage. Apache HTTP Server as network server, WebDAV/Delta-V for protocol. There is also an independent server process called svnserve that uses a custom protocol over TCP/IP. Branching is implemented by a copy of a directory, thus it is a cheap operation, independent of file size. Natively client–server, layered library design. Client/server protocol sends diffs in both directions. Parsable output, including XML log output. Open source licensed – Apache License since the 1.7 release; prior versions use a derivative of the Apache Software License 1.1. Internationalized program messages. File locking for unmergeable files ("reserved checkouts"). Path-based authorization. Language bindings for C#, PHP, Python, Perl, Ruby, and Java. Full MIME support – users can view or change the MIME type of each file, with the software knowing which MIME types can have their differences from previous versions shown. Merge tracking – merges between branches will be tracked, this allows automatic merging between branches without telling Subversion what does and does not need to be merged. Changelists to organize commits into commit groups.

Repository types Subversion offers two types of repository storage.

Berkeley DB (deprecated) The original development of Subversion used the Berkeley DB package. Subversion has some limitations with Berkeley DB usage when a program that accesses the database crashes or terminates forcibly. No data loss or corruption occurs, but the repository remains offline while Berkeley DB replays the journal and cleans up any outstanding locks. The safest way to use Subversion with a Berkeley DB repository involves a single server-process running as one user (instead of through a shared filesystem). The Berkeley DB backend was deprecated in version 1.8.

FSFS

In 2004, a new storage subsystem was developed and named FSFS. It works faster than the Berkeley DB backend on directories with a large number of files and takes less disk space, due to less logging. Beginning with Subversion 1.2, FSFS became the default data store for new repositories. The etymology of "FSFS" is based on Subversion's use of the term "filesystem" for its repository storage system. FSFS stores its contents directly within the operating system's filesystem, rather than a structured system like Berkeley DB. Thus, it is a "[Subversion] FileSystem atop the FileSystem".

FSX A new filesystem, called FSX, is under development to remove some limitations of FSFS. It was added in version 1.9 and not considered production-ready. As of version 1.14, it is still marked as experimental.

Repository access Access to Subversion repositories can take place by:

Local filesystem or network filesystem, accessed by client directly. This mode uses the file:///path access scheme. WebDAV/Delta-V (over http or https) using the mod_dav_svn module for Apache 2. This mode uses the http://host/path access scheme or https://host/path for secure connections using ssl. Custom "svn" protocol (default port 3690), using plain text or over TCP/IP. This mode uses either the svn://host/path access scheme for unencrypted transport or svn+ssh://host/path scheme for tunneling over ssh. All three means can access both FSFS and Berkeley DB repositories. Any 1.x version of a client can work with any 1.x server. Newer clients and servers have additional features and performance capabilities, but have fallback support for older clients/servers.

Layers Internally, a Subversion system comprises several libraries arranged as layers. Each performs a specific task and allows developers to create their own tools at the desired level of complexity and specificity.

… excerpt ends here. Continue reading the full article.

Illustrations

Apache Subversion illustration
Apache Subversion illustration
Apache Subversion illustration

Worked examples

Example 1 — a first encounter with Apache Subversion

Start with the simplest possible case. Write down what Apache Subversion claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Apache Subversion before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Apache Subversion ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Apache Subversion

In research
Apache Subversion appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Apache Subversion in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Apache Subversion is common in secondary-school and first-year university syllabi. It links to neighbouring topics Apache Software Foundation projects, Apache Subversion, Collaborative software, so understanding it makes those chapters shorter.
In everyday life
Look for Apache Subversion outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Apache Subversion” →

How to study Apache Subversion in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Apache Subversion means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Apache Subversion out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Apache Subversion in simple terms?

Apache Subversion (often abbreviated SVN, after its command name svn) is a version control system. The software is distributed as open source software, under the Apache License.

Why does Apache Subversion matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Apache Subversion?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Apache Subversion.

Tags

  • Apache Software Foundation projects
  • Apache Subversion
  • Collaborative software
  • Concurrent Versions System
  • Cross-platform free software
  • Free software programmed in C
  • Free version control software
  • Software using the Apache license
  • Unix archivers and compression-related utilities

Keep exploring