comparison hgscm/templates/workflow_guide.html @ 153:53e4007ac24f

Fix: the first workflow was called sysadmin instead of the (now) correct 'log keeping'.
author Arne Babenhauserheide <bab@draketo.de>
date Tue, 12 May 2009 08:30:24 +0200
parents 1a01a60eeaf5
children 08f4b19d865e
comparison
equal deleted inserted replaced
152:1a01a60eeaf5 153:53e4007ac24f
102 102
103 <h4>Use case</h4> 103 <h4>Use case</h4>
104 104
105 The second workflow is still very easy: You're a lone developer and you want to use Mercurial to keep track of your own changes. 105 The second workflow is still very easy: You're a lone developer and you want to use Mercurial to keep track of your own changes.
106 106
107 It works just like the sysadmin workflow, with the difference that you go back to earlied changes at times. 107 It works just like the log keeping workflow, with the difference that you go back to earlied changes at times.
108 108
109 To start a new project, you initialize a repository, add your files and commit whenever you finished a part of your work. 109 To start a new project, you initialize a repository, add your files and commit whenever you finished a part of your work.
110 110
111 Also you check your history from time to time, so see how you progressed. 111 Also you check your history from time to time, so see how you progressed.
112 112
127 $ hg mv # move files or folders 127 $ hg mv # move files or folders
128 $ hg log # see history</pre> 128 $ hg log # see history</pre>
129 129
130 <h5>Seeing an earlier revision</h5> 130 <h5>Seeing an earlier revision</h5>
131 131
132 Different from the sysadmin workflow, you'll want to go back in history at times and undo some changes, for example because it introduced a bug. 132 Different from the log keeping workflow, you'll want to go back in history at times and undo some changes, for example because it introduced a bug.
133 133
134 To look at a previous version of your code, you can use update. Let's assume that you want to see revision 3. 134 To look at a previous version of your code, you can use update. Let's assume that you want to see revision 3.
135 135
136 <pre>$ hg update 3</pre> 136 <pre>$ hg update 3</pre>
137 137