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