mirror of https://github.com/sbt/sbt.git
concurrent restrictions: Untagged should be set based on the task's tags, not the tags of all tasks.
This commit is contained in:
parent
b8d111dcae
commit
ef86480c8f
|
|
@ -91,8 +91,9 @@ object ConcurrentRestrictions
|
|||
|
||||
private[this] def merge[A](m: TagMap, a: A, get: A => TagMap)(f: (Int,Int) => Int): TagMap =
|
||||
{
|
||||
val base = merge(m, get(a))(f)
|
||||
val un = if(base.isEmpty) update(base, Untagged, 1)(f) else base
|
||||
val aTags = get(a)
|
||||
val base = merge(m, aTags)(f)
|
||||
val un = if(aTags.isEmpty) update(base, Untagged, 1)(f) else base
|
||||
update(un, All, 1)(f)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue