mercurial/HGCommitDialog.st
changeset 109 08c6eca6df25
parent 67 985488894699
child 115 b1ed2d29054b
--- a/mercurial/HGCommitDialog.st	Tue Nov 27 22:17:24 2012 +0000
+++ b/mercurial/HGCommitDialog.st	Wed Nov 28 09:12:38 2012 +0000
@@ -154,6 +154,27 @@
     "Modified: / 16-11-2012 / 11:27:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
+!HGCommitDialog methodsFor:'private'!
+
+doUpdateWorkingCopy
+    | heads changeset |
+
+    super doUpdateWorkingCopy.
+    heads := self task package workingCopy heads.
+    changeset := self task package workingCopy changeset.
+    (heads includes: changeset) ifFalse:[
+        self infoPanel 
+            reset;
+            beInformation;
+            message: (self resources string:'Comitting a new head.');
+            addButtonWithLabel: (self resources string:'Proceed') action: [self infoPanel hide];
+            addButtonWithLabel: (self resources string:'Cancel') action:[self doCancel];
+            show.
+    ]
+
+    "Created: / 27-11-2012 / 23:36:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+! !
+
 !HGCommitDialog class methodsFor:'documentation'!
 
 version_HG