mirror of https://github.com/sbt/sbt.git
Merge pull request #386 from rtyley/avoid-repeating-version-in-eviction-error
Avoid repeating versions in Eviction error message
This commit is contained in:
commit
54c1ee53c6
|
|
@ -155,7 +155,8 @@ final class EvictionError private[sbt] (
|
|||
evictions.foreach({
|
||||
case (a, scheme) =>
|
||||
val revs = a.evicteds map { _.module.revision }
|
||||
val revsStr = if (revs.size <= 1) revs.mkString else "{" + revs.mkString(", ") + "}"
|
||||
val revsStr =
|
||||
if (revs.size <= 1) revs.mkString else "{" + revs.distinct.mkString(", ") + "}"
|
||||
val seen: mutable.Set[ModuleID] = mutable.Set()
|
||||
val callers: List[String] = (a.evicteds.toList ::: a.winner.toList) flatMap { r =>
|
||||
val rev = r.module.revision
|
||||
|
|
|
|||
Loading…
Reference in New Issue