darcs-2.18.3: a distributed, interactive, smart revision control system
Safe HaskellSafe-Inferred
LanguageHaskell2010

Darcs.Patch.Bundle

Synopsis

Documentation

data Bundle p wX wY where Source #

A Bundle is a context together with some patches. The context consists of unavailable patches.

Constructors

Bundle :: (FL (PatchInfoAnd p) :> FL (PatchInfoAnd p)) wX wY -> Bundle p wX wY 

interpretBundle :: Commute p => PatchSet p Origin wT -> Bundle p wA wB -> Either String (PatchSet p Origin wB) Source #

Interpret a Bundle in the context of a PatchSet. This means we match up a possible tag in the context of the Bundle. This fails if the tag couldn't be found.

minContext :: RepoPatch p => PatchSet p wStart wB -> FL (PatchInfoAnd p) wB wC -> Sealed ((PatchSet p :> FL (PatchInfoAnd p)) wStart) Source #

Minimize the context of an FL of patches to be packed into a bundle.