distinct builds in delegates

This commit is contained in:
Mark Harrah 2011-05-07 22:02:06 -04:00
parent 6bd500bbe2
commit 6bf9d9655b
1 changed files with 1 additions and 2 deletions

View File

@ -166,11 +166,10 @@ object Scope
def withGlobalAxis[T](base: ScopeAxis[T]): Seq[ScopeAxis[T]] = if(base.isSelect) base :: Global :: Nil else Global :: Nil
def withGlobalScope(base: Scope): Seq[Scope] = if(base == GlobalScope) GlobalScope :: Nil else base :: GlobalScope :: Nil
def withRawBuilds(ps: Seq[ScopeAxis[ProjectRef]]): Seq[ScopeAxis[ResolvedReference]] =
ps ++ (ps flatMap rawBuild) :+ Global
ps ++ (ps flatMap rawBuild).distinct :+ Global
def rawBuild(ps: ScopeAxis[ProjectRef]): Seq[ScopeAxis[BuildRef]] = ps match { case Select(ref) => Select(BuildRef(ref.build)) :: Nil; case _ => Nil }
def delegates(
refs: Seq[(ProjectRef, ResolvedProject)],
projectInherit: ProjectRef => Seq[ProjectRef],