Mercurial > hg-website
comparison hgscm/templates/workflow_guide.html @ 152:1a01a60eeaf5
learning in workflows: Added mv and cp to the repeated basics in the Lone Dev workflow.
author | Arne Babenhauserheide <bab@draketo.de> |
---|---|
date | Tue, 12 May 2009 08:28:27 +0200 |
parents | 60be1cc49ae7 |
children | 53e4007ac24f |
comparison
equal
deleted
inserted
replaced
151:60be1cc49ae7 | 152:1a01a60eeaf5 |
---|---|
84 $ hg commit | 84 $ hg commit |
85 (enter the commit message)</pre> | 85 (enter the commit message)</pre> |
86 | 86 |
87 Now you have two files, "copy" and "target", and Mercurial knows how they are related. | 87 Now you have two files, "copy" and "target", and Mercurial knows how they are related. |
88 | 88 |
89 Note: Should you forget to do the explicit move, you can still tell Mercurial to detect the changes via <hg>hg addremove --similarity 100</hg>. Just use <hg>hg help addremove</hg> for details. | 89 Note: Should you forget to do the explicit copy or move, you can still tell Mercurial to detect the changes via <hg>hg addremove --similarity 100</hg>. Just use <hg>hg help addremove</hg> for details. |
90 | 90 |
91 <h5>Check your history</h5> | 91 <h5>Check your history</h5> |
92 | 92 |
93 <pre>$ hg log</pre> | 93 <pre>$ hg log</pre> |
94 | 94 |
121 $ (add files) | 121 $ (add files) |
122 $ hg add # tell Mercurial to track all files | 122 $ hg add # tell Mercurial to track all files |
123 $ (do some changes) | 123 $ (do some changes) |
124 $ hg diff # see changes | 124 $ hg diff # see changes |
125 $ hg commit # save changes | 125 $ hg commit # save changes |
126 $ hg cp # copy files or folders | |
127 $ hg mv # move files or folders | |
126 $ hg log # see history</pre> | 128 $ hg log # see history</pre> |
127 | 129 |
128 <h5>Seeing an earlier revision</h5> | 130 <h5>Seeing an earlier revision</h5> |
129 | 131 |
130 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 sysadmin workflow, you'll want to go back in history at times and undo some changes, for example because it introduced a bug. |