comparison help/a-04.html @ 494:41a156d439d0

Start adding Help
author Chris Cannam
date Thu, 18 Aug 2011 16:37:27 +0100
parents
children 21aa41b62c3a
comparison
equal deleted inserted replaced
493:75ebcacd3f75 494:41a156d439d0
1 <link rel="stylesheet" type="text/css" href="help.css"/>
2 <p><a href="topics.html">Back to Topics</a></p><hr>
3
4
5 <h2>What is a repository?</h2>
6
7 <p>When you use a version control system to keep track of your changes to
8 a set of files, there are two different concepts you're dealing with:
9 a <i>working copy</i> and a <i>repository</i>.</p>
10
11 <p>A <i>working copy</i> is just a folder with your project's files in it. It
12 contains the versions of the files that you are working with now.
13 <ul><li>EasyMercurial's &ldquo;My Work&rdquo; tab shows you which files you have been working on in your current working copy.</li></ul></p>
14
15 <p>A <i>repository</i> is a record of the entire history of your project. When
16 change something in the working copy, you can then commit it to the
17 repository and your change gets added to the history.
18 <ul><li>EasyMercurial's &ldquo;History&rdquo; tab shows you the changes that have been committed to your project's history in its repository.</li></ul></p>
19
20 <p>You can also go back and grab an older version from the repository if
21 you find you need it. (If you do this, then the working copy will be
22 updated so as to contain that older version rather than the most
23 recent one.)</p>
24
25 <p>Older centralised version control systems use a separate database for
26 the repository. But with a distributed version control system such as
27 Mercurial, the repository &ndash; the entire history of your project files
28 &ndash; is stowed into a special folder inside the working copy on your
29 hard drive. Every change you commit gets added to the history in that
30 hidden folder. (The history is compressed, so it doesn't take as much
31 space as you might imagine.)</p>
32
33 <p>The term <i>remote repository</i> simply refers to a repository related to
34 your local one, but stored on another computer somewhere else. Often
35 this may be a &ldquo;master copy&rdquo; of your project stored on a server
36 elsewhere, which you and your collaborators can use to keep up with
37 each other's work, or which you can use to make your work public, or
38 simply use as a private backup.</p>
39
40 <hr><p><a href="topics.html">Back to Topics</a></p>