MercurialSourceCodeManager.st
branchjv
changeset 4054 e1d270d3c382
parent 4053 7817fc8db06e
parent 4050 7df288be76d3
child 4162 e96794cd9edd
--- a/MercurialSourceCodeManager.st	Thu Jun 02 09:19:54 2016 +0100
+++ b/MercurialSourceCodeManager.st	Mon Jun 06 12:32:59 2016 +0100
@@ -65,10 +65,17 @@
     DisabledModules := nil.
 !
 
+hgCommandSemaphore
+    HGCommandSemaphore isNil ifTrue:[
+        HGCommandSemaphore := (Semaphore new:10) name:'Concurrent Mercurial Commands'.    "/ at most 10 hg activities concurrently
+    ].
+    ^ HGCommandSemaphore
+!
+
 initialize
     | s |
 
-    HGCommandSemaphore := (Semaphore new:10) name:'Concurrent Mercurial Commands'.    "/ at most 10 hg activities concurrently
+    "/ HGCommandSemaphore := (Semaphore new:10) name:'Concurrent Mercurial Commands'.    "/ at most 10 hg activities concurrently
     HGCommitOptions := ''.
     HGUpdateOptions := ''.
     DisabledModules := nil.