Mercurial > hg-website
comparison text/workflows.txt @ 101:7bcdd8b947fe
workflows: small fixes.
author | Arne Babenhauserheide <bab@draketo.de> |
---|---|
date | Wed, 22 Apr 2009 12:52:54 +0200 |
parents | 6e29cdea7b3a |
children | fa153f85e455 |
comparison
equal
deleted
inserted
replaced
100:6e29cdea7b3a | 101:7bcdd8b947fe |
---|---|
21 * Smoothing workflows with extensions -> i.e. shelve before merging. | 21 * Smoothing workflows with extensions -> i.e. shelve before merging. |
22 | 22 |
23 --> | 23 --> |
24 | 24 |
25 == Sysadmin workflow == | 25 == Sysadmin workflow == |
26 | |
27 === Use Case === | |
26 | 28 |
27 The first workflow is also the easiest one: You're a sysadmin and you want to use Mercurial to be able to look back when you did which changes. | 29 The first workflow is also the easiest one: You're a sysadmin and you want to use Mercurial to be able to look back when you did which changes. |
28 | 30 |
29 This workflow only requires an installed Mercurial and write access to some file storage (you almost definitely have that :) ). It shows the basic technics for more complex workflows. | 31 This workflow only requires an installed Mercurial and write access to some file storage (you almost definitely have that :) ). It shows the basic technics for more complex workflows. |
30 | 32 |
159 $ cd ../project | 161 $ cd ../project |
160 $ hg pull ../feature1 | 162 $ hg pull ../feature1 |
161 | 163 |
162 Now you have the history of feature1 inside your project, but they aren't yet visible. Instead they are only stored inside the .hg directory inside the project. | 164 Now you have the history of feature1 inside your project, but they aren't yet visible. Instead they are only stored inside the .hg directory inside the project. |
163 | 165 |
166 From now on we'll use the name "repository" for a directory which has a .hg directory with Mercurial history. | |
167 | |
164 If you didn't do any changes in the project, while you were working on feature1, you can just update, but it is more likely that you'll have done some changes. In that case, it's time for merging. | 168 If you didn't do any changes in the project, while you were working on feature1, you can just update, but it is more likely that you'll have done some changes. In that case, it's time for merging. |
165 | 169 |
166 Merge feature1 into the project code: | 170 Merge feature1 into the project code: |
167 | 171 |
168 $ hg merge | 172 $ hg merge |
169 | 173 |
170 If there are conflicts use "hg resolve" - that's also what merge tells you to do in case of conflicts. | 174 If there are conflicts use "hg resolve" - that's also what merge tells you to do in case of conflicts. |
171 | 175 |
172 $ hg commit -m "merged feature1" | 176 $ hg commit -m "merged feature1" |
173 | 177 |
174 You can create an arbitrary number of clones and also carry them around on USB sticks, so you an also synchronize your work at home and at work. | 178 You can create an arbitrary number of clones and also carry them around on USB sticks. Also you can use them to synchronize your work at home and at work. |
175 | 179 |
176 == Sharing changes really easily == | 180 == Sharing changes really easily == |
177 | 181 |
178 === Use Case === | 182 === Use Case === |
179 | 183 |