Fix serialization in Sync.

The serialized structures there aren't part of an Analysis,
so they aren't interned.

TODO: Refactor InternedAnalysisFormats so that this is more
straightforward and less error-prone.  This commit is
a first-pass fix of the broken test.
This commit is contained in:
Benjy 2013-10-28 17:12:12 +00:00 committed by Mark Harrah
parent 1030902207
commit 655e2e5c91
1 changed files with 1 additions and 2 deletions

View File

@ -71,8 +71,7 @@ object Sync
import sbinary._
import Operations.{read, write}
import DefaultProtocol.{FileFormat => _, _}
val formats = new sbt.inc.InternedAnalysisFormats()
import formats._
import sbt.inc.AnalysisFormats.{fileFormat, relationFormat}
def writeInfo[F <: FileInfo](file: File, relation: Relation[File, File], info: Map[File, F])(implicit infoFormat: Format[F]): Unit =
IO.gzipFileOut(file) { out =>