darcs-2.5.2: a distributed, interactive, smart revision control system

Darcs.Patch.Bundle

Synopsis

- hashBundle :: RepoPatch p => [PatchInfo] -> FL (Named p) -> String
- makeBundle :: RepoPatch p => Maybe (Tree IO) -> RL (PatchInfoAnd p) -> FL (Named p) -> IO Doc
- makeBundle2 :: RepoPatch p => Maybe (Tree IO) -> RL (PatchInfoAnd p) -> FL (Named p) -> FL (Named p) -> IO Doc
- makeBundleN :: RepoPatch p => Maybe (Tree IO) -> PatchSet p -> FL (Named p) -> IO Doc
- scanBundle :: RepoPatch p => ByteString -> Either String (SealedPatchSet p)
- contextPatches :: RepoPatch p => PatchSet p -> FlippedSeal (RL (PatchInfoAnd p))
- scanContext :: RepoPatch p => ByteString -> PatchSet p
- patchFilename :: String -> String

# Documentation

hashBundle :: RepoPatch p => [PatchInfo] -> FL (Named p) -> String

makeBundle :: RepoPatch p => Maybe (Tree IO) -> RL (PatchInfoAnd p) -> FL (Named p) -> IO Doc

makeBundle2 :: RepoPatch p => Maybe (Tree IO) -> RL (PatchInfoAnd p) -> FL (Named p) -> FL (Named p) -> IO Doc

In makeBundle2, it is presumed that the two patch sequences are identical, but that they may be lazily generated. If two different patch sequences are passed, a bundle with a mismatched hash will be generated, which is not the end of the world, but isn't very useful either.

makeBundleN :: RepoPatch p => Maybe (Tree IO) -> PatchSet p -> FL (Named p) -> IO Doc

scanBundle :: RepoPatch p => ByteString -> Either String (SealedPatchSet p)

contextPatches :: RepoPatch p => PatchSet p -> FlippedSeal (RL (PatchInfoAnd p))

scanContext :: RepoPatch p => ByteString -> PatchSet p

patchFilename :: String -> String