#FEATURE by cg
authorClaus Gittinger <cg@exept.de>
Fri, 03 Jun 2016 11:51:28 +0200
changeset 4050 7df288be76d3
parent 4049 7cc69ea18451
child 4051 040ec6b50195
#FEATURE by cg class: MercurialSourceCodeManager added: #hgCommandSemaphore changed: #initialize
MercurialSourceCodeManager.st
--- a/MercurialSourceCodeManager.st	Fri Jun 03 11:50:34 2016 +0200
+++ b/MercurialSourceCodeManager.st	Fri Jun 03 11:51:28 2016 +0200
@@ -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.