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

Safe HaskellNone

Darcs.Repository.Clone

Synopsis

Documentation

replacePristine :: Repository rt p wR wU wT -> Tree IO -> IO ()

Replace the existing pristine with a new one (loaded up in a Tree object).

writePatchSet :: (IsRepoType rt, RepoPatch p, ApplyState p ~ Tree) => PatchSet rt p Origin wX -> UseCache -> IO (Repository rt p wR wU wT)

writePatchSet is like patchSetToRepository, except that it doesn't touch the working directory or pristine cache.

patchSetToRepository :: (IsRepoType rt, RepoPatch p, ApplyState p ~ Tree) => Repository rt p wR1 wU1 wR1 -> PatchSet rt p Origin wX -> UseCache -> RemoteDarcs -> IO ()

patchSetToRepository takes a patch set, and writes a new repository in the current directory that contains all the patches in the patch set. This function is used when 'darcs get'ing a repository with the --to-match flag.