Bugfix in HGCommand::resolve.
authorJan Vrany <jan.vrany@fit.cvut.cz>
Wed, 26 Jun 2013 07:50:47 +0100
changeset 300 724f9902f606
parent 299 e954a10b2533
child 301 d2a4d3d918a1
Bugfix in HGCommand::resolve. Bytecode-compiled code behaves differently than stc-compiled. Fix ifTrue: condition so it works under both.
mercurial/HGCommand.st
--- a/mercurial/HGCommand.st	Sat Jun 22 11:35:41 2013 +0100
+++ b/mercurial/HGCommand.st	Wed Jun 26 07:50:47 2013 +0100
@@ -1557,19 +1557,19 @@
         stream nextPut:'--tool'; nextPut: tool
     ].
 
-    mark ifTrue:[
+    mark == true ifTrue:[
         self assert: (unmark isNil or:[unmark not]).
         stream nextPut: '--mark'.
     ].
 
-    unmark ifTrue:[
+    unmark == true ifTrue:[
         self assert: (mark isNil or:[mark not]).
         stream nextPut: '--unmark'.
     ].
 
     files do:[:f|stream nextPut: f].
 
-    "Modified: / 14-01-2013 / 19:29:28 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 26-06-2013 / 07:45:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 parseOutput:stream