changeset 133:5e1cff189630

learning in workflows: Fix: Moved the resolve explanation to the first mention of resolve.
author Arne Babenhauserheide <bab@draketo.de>
date Fri, 01 May 2009 14:01:08 +0200
parents a7fb926c69f6
children 4fc2fc6ddbed
files text/learning_mercurial_in_workflows.txt
diffstat 1 files changed, 16 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/text/learning_mercurial_in_workflows.txt	Fri May 01 13:58:10 2009 +0200
+++ b/text/learning_mercurial_in_workflows.txt	Fri May 01 14:01:08 2009 +0200
@@ -135,10 +135,26 @@
 
 If there are conflicts use "hg resolve" - that's also what merge tells you to do in case of conflicts. 
 
+First list the files with conflicts: 
+
+$ hg resolve --list
+
+Then resolve them one by one. "resolve" attempts the merge again: 
+
+$ hg resolve conflicting_file
+(fix it by hand, if necessary)
+
+Mark the fixed file as resolved: 
+
+$ hg resolve --mark conflicting_file
+
+Commit the merge, as soon as you resolved all conflicts. This step is also necessary if there were no conflicts! 
+
 $ hg commit
 
 At this point, your fix is merged with all your other work, and you can just go on coding. Additionally the history shows clearly where you fixed the bug, so you'll always be able to check where the bug was. 
 
+Note: Most merges will just work. You only need "resolve", when "merge" complains. 
 
 So now you can initialize repositories, save changes, update to previous changes and develop in a nonlinear history by committing in earlier changesets and merging the changes into the current code. 
 
@@ -181,27 +197,10 @@
 
 If there are conflicts use "hg resolve" - that's also what merge tells you to do in case of conflicts. 
 
-First list the files with conflicts: 
-
-$ hg resolve --list
-
-Then resolve them one by one. "resolve" attempts the merge again: 
-
-$ hg resolve conflicting_file
-(fix it by hand, if necessary)
-
-Mark the fixed file as resolved: 
-
-$ hg resolve --mark conflicting_file
-
-Commit the merge, as soon as you resolved all conflicts. This step is also necessary if there were no conflicts! 
-
 $ hg commit -m "merged feature1"
 
 You can create an arbitrary number of clones and also carry them around on USB sticks. Also you can use them to synchronize your files at home and at work, or between your desktop and your laptop. 
 
-Note: Most merges will just work. You only need "resolve", when "merge" complains. 
-
 == Sharing changes ==
 
 === Use Case ===