Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > db7a4a658d190b3e658423135710c498 > files > 713

ghc-darcs-devel-2.8.3-1.fc18.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Darcs.Repository</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Darcs-Repository.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Darcs-Repository.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">darcs-2.8.3: a distributed, interactive, smart revision control system</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">Darcs.Repository</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Recorded and unrecorded and pending.
</a></li><li><a href="#g:2">Index.
</a></li></ul></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span>  <a href="#t:Repository">Repository</a> p recordedstate unrecordedstate tentativestate</li><li class="src short"><span class="keyword">data</span>  <a href="#t:HashedDir">HashedDir</a> <ul class="subs"><li>= <a href="#v:HashedPristineDir">HashedPristineDir</a>  </li><li>| <a href="#v:HashedPatchesDir">HashedPatchesDir</a>  </li><li>| <a href="#v:HashedInventoriesDir">HashedInventoriesDir</a>  </li></ul></li><li class="src short"><span class="keyword">newtype</span>  <a href="#t:Cache">Cache</a>  = <a href="#v:Ca">Ca</a> [<a href="Darcs-Repository.html#t:CacheLoc">CacheLoc</a>]</li><li class="src short"><span class="keyword">data</span>  <a href="#t:CacheLoc">CacheLoc</a>  = <a href="#v:Cache">Cache</a> {<ul class="subs"><li><a href="#v:cacheType">cacheType</a> :: !<a href="Darcs-Repository-Cache.html#t:CacheType">CacheType</a></li><li><a href="#v:cacheWritable">cacheWritable</a> :: !<a href="Darcs-Repository.html#t:WritableOrNot">WritableOrNot</a></li><li><a href="#v:cacheSource">cacheSource</a> :: !<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li></ul>}</li><li class="src short"><span class="keyword">data</span>  <a href="#t:WritableOrNot">WritableOrNot</a> <ul class="subs"><li>= <a href="#v:Writable">Writable</a>  </li><li>| <a href="#v:NotWritable">NotWritable</a>  </li></ul></li><li class="src short"><span class="keyword">data</span>  <a href="#t:RepoJob">RepoJob</a> a<ul class="subs"><li>= <a href="#v:RepoJob">RepoJob</a> (<span class="keyword">forall</span> p r u. (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u r -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a)  </li><li>| <a href="#v:V1Job">V1Job</a> (<span class="keyword">forall</span> r u.  <a href="Darcs-Repository.html#t:Repository">Repository</a> (<a href="Darcs-Patch-V1-Core.html#t:Patch">Patch</a> <a href="Darcs-Patch-Prim-V1-Core.html#t:Prim">Prim</a>) r u r -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a)  </li><li>| <a href="#v:V2Job">V2Job</a> (<span class="keyword">forall</span> r u.  <a href="Darcs-Repository.html#t:Repository">Repository</a> (<a href="Darcs-Patch-V2-Real.html#t:RealPatch">RealPatch</a> <a href="Darcs-Patch-Prim-V1-Core.html#t:Prim">Prim</a>) r u r -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a)  </li><li>| <a href="#v:PrimV1Job">PrimV1Job</a> (<span class="keyword">forall</span> p r u. (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>, <a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p ~ <a href="Darcs-Patch-Prim-V1-Core.html#t:Prim">Prim</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u r -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a)  </li></ul></li><li class="src short"><a href="#v:maybeIdentifyRepository">maybeIdentifyRepository</a> ::  [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository-Internal.html#t:IdentifyRepo">IdentifyRepo</a> p r u t)</li><li class="src short"><a href="#v:identifyRepositoryFor">identifyRepositoryFor</a> :: <span class="keyword">forall</span> p r u t. <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t)</li><li class="src short"><a href="#v:withRepoLock">withRepoLock</a> ::  [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Repository.html#t:RepoJob">RepoJob</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:withRepoReadLock">withRepoReadLock</a> ::  [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Repository.html#t:RepoJob">RepoJob</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:withRepository">withRepository</a> ::  [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Repository.html#t:RepoJob">RepoJob</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:withRepositoryDirectory">withRepositoryDirectory</a> :: <span class="keyword">forall</span> a.  [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="Darcs-Repository.html#t:RepoJob">RepoJob</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:withGutsOf">withGutsOf</a> ::  <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:makePatchLazy">makePatchLazy</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p x y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p x y)</li><li class="src short"><a href="#v:writePatchSet">writePatchSet</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Patch-Set.html#t:Origin">Origin</a> x -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t)</li><li class="src short"><a href="#v:findRepository">findRepository</a> :: [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a>)</li><li class="src short"><a href="#v:amInRepository">amInRepository</a> :: [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a>)</li><li class="src short"><a href="#v:amNotInRepository">amNotInRepository</a> :: [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a>)</li><li class="src short"><a href="#v:amInHashedRepository">amInHashedRepository</a> :: [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a>)</li><li class="src short"><a href="#v:replacePristine">replacePristine</a> ::  <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:withRecorded">withRecorded</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; ((<a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a) -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a) -&gt; (<a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a) -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:readRepo">readRepo</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Patch-Set.html#t:Origin">Origin</a> r)</li><li class="src short"><a href="#v:prefsUrl">prefsUrl</a> ::  <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:readRepoUsingSpecificInventory">readRepoUsingSpecificInventory</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Patch-Set.html#t:Origin">Origin</a> t)</li><li class="src short"><a href="#v:addToPending">addToPending</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) u y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:tentativelyAddPatch">tentativelyAddPatch</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Flags.html#t:Compression">Compression</a> -&gt; <a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p t y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:Repository">Repository</a> p r u y)</li><li class="src short"><a href="#v:tentativelyRemovePatches">tentativelyRemovePatches</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Flags.html#t:Compression">Compression</a> -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:Repository">Repository</a> p r u x)</li><li class="src short"><a href="#v:tentativelyAddToPending">tentativelyAddToPending</a> :: <span class="keyword">forall</span> p r u t x y. <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) x y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:tentativelyReplacePatches">tentativelyReplacePatches</a> :: <span class="keyword">forall</span> p r u t x. (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Flags.html#t:Compression">Compression</a> -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t)</li><li class="src short"><a href="#v:readTentativeRepo">readTentativeRepo</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Patch-Set.html#t:Origin">Origin</a> t)</li><li class="src short"><a href="#v:tentativelyMergePatches">tentativelyMergePatches</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x t -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Witnesses-Sealed.html#t:Sealed">Sealed</a> (<a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) u))</li><li class="src short"><a href="#v:considerMergeToWorking">considerMergeToWorking</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x t -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Witnesses-Sealed.html#t:Sealed">Sealed</a> (<a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) u))</li><li class="src short"><a href="#v:revertRepositoryChanges">revertRepositoryChanges</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:finalizeRepositoryChanges">finalizeRepositoryChanges</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:createRepository">createRepository</a> :: [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:copyRepository">copyRepository</a> :: <span class="keyword">forall</span> p r u t. (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:patchSetToRepository">patchSetToRepository</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r1 u1 r1 -&gt; <a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Patch-Set.html#t:Origin">Origin</a> x -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t)</li><li class="src short"><a href="#v:unrevertUrl">unrevertUrl</a> ::  <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:applyToWorking">applyToWorking</a> :: (<a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>, <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) u y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:Repository">Repository</a> p r y t)</li><li class="src short"><a href="#v:patchSetToPatches">patchSetToPatches</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p x y -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Named.html#t:Named">Named</a> p) x y</li><li class="src short"><a href="#v:createPristineDirectoryTree">createPristineDirectoryTree</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:createPartialsPristineDirectoryTree">createPartialsPristineDirectoryTree</a> :: (<a href="Darcs-RepoPath.html#t:FilePathLike">FilePathLike</a> fp, <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; [fp] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:optimizeInventory">optimizeInventory</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:cleanRepository">cleanRepository</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:PatchSet">PatchSet</a> p start y</li><li class="src short"><span class="keyword">type</span> <a href="#t:SealedPatchSet">SealedPatchSet</a> p start = <a href="Darcs-Witnesses-Sealed.html#t:Sealed">Sealed</a> (<a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p start)</li><li class="src short"><span class="keyword">data</span>  <a href="#t:PatchInfoAnd">PatchInfoAnd</a> p a b</li><li class="src short"><a href="#v:setScriptsExecutable">setScriptsExecutable</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:setScriptsExecutablePatches">setScriptsExecutablePatches</a> :: <a href="Darcs-Patch-Patchy.html#t:Patchy">Patchy</a> p =&gt; p x y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:checkUnrelatedRepos">checkUnrelatedRepos</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p start x -&gt; <a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p start y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:testTentative">testTentative</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-Exit.html#t:ExitCode">ExitCode</a></li><li class="src short"><a href="#v:testRecorded">testRecorded</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-Exit.html#t:ExitCode">ExitCode</a></li><li class="src short"><a href="#v:extractOptions">extractOptions</a> ::  <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>]</li><li class="src short"><a href="#v:modifyCache">modifyCache</a> :: <span class="keyword">forall</span> p r u t. <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; (<a href="Darcs-Repository.html#t:Cache">Cache</a> -&gt; <a href="Darcs-Repository.html#t:Cache">Cache</a>) -&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t</li><li class="src short"><a href="#v:reportBadSources">reportBadSources</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:readRecorded">readRecorded</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a>)</li><li class="src short"><a href="#v:readUnrecorded">readUnrecorded</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Darcs-RepoPath.html#t:SubPath">SubPath</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a>)</li><li class="src short"><a href="#v:unrecordedChanges">unrecordedChanges</a> :: <span class="keyword">forall</span> p r u t. (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; (<a href="Darcs-Flags.html#t:UseIndex">UseIndex</a>, <a href="Darcs-Flags.html#t:ScanKnown">ScanKnown</a>) -&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Darcs-RepoPath.html#t:SubPath">SubPath</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) t u)</li><li class="src short"><a href="#v:readPending">readPending</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a>, <a href="Darcs-Witnesses-Sealed.html#t:Sealed">Sealed</a> (<a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> p t))</li><li class="src short"><a href="#v:readRecordedAndPending">readRecordedAndPending</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a>)</li><li class="src short"><a href="#v:readIndex">readIndex</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Index.html#t:Index">Index</a></li><li class="src short"><a href="#v:invalidateIndex">invalidateIndex</a> ::  t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Repository" class="def">Repository</a> p recordedstate unrecordedstate tentativestate <a href="src/Darcs-Repository-InternalTypes.html#Repository" class="link">Source</a></p><div class="subs instances"><p id="control.i:Repository" class="caption collapser" onclick="toggleSection('i:Repository')">Instances</p><div id="section.i:Repository" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="Darcs-Repository.html#t:Repository">Repository</a> p recordedstate unrecordedstate tentativestate)</td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:HashedDir" class="def">HashedDir</a>  <a href="src/Darcs-Repository-Cache.html#HashedDir" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:HashedPristineDir" class="def">HashedPristineDir</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:HashedPatchesDir" class="def">HashedPatchesDir</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:HashedInventoriesDir" class="def">HashedInventoriesDir</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">newtype</span>  <a name="t:Cache" class="def">Cache</a>  <a href="src/Darcs-Repository-Cache.html#Cache" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Ca" class="def">Ca</a> [<a href="Darcs-Repository.html#t:CacheLoc">CacheLoc</a>]</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Cache" class="caption collapser" onclick="toggleSection('i:Cache')">Instances</p><div id="section.i:Cache" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Darcs-Repository.html#t:Cache">Cache</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:CacheLoc" class="def">CacheLoc</a>  <a href="src/Darcs-Repository-Cache.html#CacheLoc" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Cache" class="def">Cache</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:cacheType" class="def">cacheType</a> :: !<a href="Darcs-Repository-Cache.html#t:CacheType">CacheType</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:cacheWritable" class="def">cacheWritable</a> :: !<a href="Darcs-Repository.html#t:WritableOrNot">WritableOrNot</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:cacheSource" class="def">cacheSource</a> :: !<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:CacheLoc" class="caption collapser" onclick="toggleSection('i:CacheLoc')">Instances</p><div id="section.i:CacheLoc" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Darcs-Repository.html#t:CacheLoc">CacheLoc</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Darcs-Repository.html#t:CacheLoc">CacheLoc</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:WritableOrNot" class="def">WritableOrNot</a>  <a href="src/Darcs-Repository-Cache.html#WritableOrNot" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Writable" class="def">Writable</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:NotWritable" class="def">NotWritable</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:WritableOrNot" class="caption collapser" onclick="toggleSection('i:WritableOrNot')">Instances</p><div id="section.i:WritableOrNot" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Darcs-Repository.html#t:WritableOrNot">WritableOrNot</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:RepoJob" class="def">RepoJob</a> a <a href="src/Darcs-Repository-Internal.html#RepoJob" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:RepoJob" class="def">RepoJob</a> (<span class="keyword">forall</span> p r u. (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u r -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:V1Job" class="def">V1Job</a> (<span class="keyword">forall</span> r u.  <a href="Darcs-Repository.html#t:Repository">Repository</a> (<a href="Darcs-Patch-V1-Core.html#t:Patch">Patch</a> <a href="Darcs-Patch-Prim-V1-Core.html#t:Prim">Prim</a>) r u r -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:V2Job" class="def">V2Job</a> (<span class="keyword">forall</span> r u.  <a href="Darcs-Repository.html#t:Repository">Repository</a> (<a href="Darcs-Patch-V2-Real.html#t:RealPatch">RealPatch</a> <a href="Darcs-Patch-Prim-V1-Core.html#t:Prim">Prim</a>) r u r -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:PrimV1Job" class="def">PrimV1Job</a> (<span class="keyword">forall</span> p r u. (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>, <a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p ~ <a href="Darcs-Patch-Prim-V1-Core.html#t:Prim">Prim</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u r -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a)</td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><a name="v:maybeIdentifyRepository" class="def">maybeIdentifyRepository</a> ::  [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository-Internal.html#t:IdentifyRepo">IdentifyRepo</a> p r u t)<a href="src/Darcs-Repository-Internal.html#maybeIdentifyRepository" class="link">Source</a></p><div class="doc"><p>Tries to identify the repository in a given directory
</p></div></div><div class="top"><p class="src"><a name="v:identifyRepositoryFor" class="def">identifyRepositoryFor</a> :: <span class="keyword">forall</span> p r u t. <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t)<a href="src/Darcs-Repository-Internal.html#identifyRepositoryFor" class="link">Source</a></p><div class="doc"><p><code>identifyRepositoryFor repo url</code> identifies (and returns) the repo at <code>url</code>,
 but fails if it is not compatible for reading from and writing to.
</p></div></div><div class="top"><p class="src"><a name="v:withRepoLock" class="def">withRepoLock</a> ::  [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Repository.html#t:RepoJob">RepoJob</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a<a href="src/Darcs-Repository-Internal.html#withRepoLock" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:withRepoReadLock" class="def">withRepoReadLock</a> ::  [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Repository.html#t:RepoJob">RepoJob</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a<a href="src/Darcs-Repository-Internal.html#withRepoReadLock" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:withRepository" class="def">withRepository</a> ::  [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Repository.html#t:RepoJob">RepoJob</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a<a href="src/Darcs-Repository-Internal.html#withRepository" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:withRepositoryDirectory" class="def">withRepositoryDirectory</a> :: <span class="keyword">forall</span> a.  [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="Darcs-Repository.html#t:RepoJob">RepoJob</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a<a href="src/Darcs-Repository-Internal.html#withRepositoryDirectory" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:withGutsOf" class="def">withGutsOf</a> ::  <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a<a href="src/Darcs-Repository-Internal.html#withGutsOf" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:makePatchLazy" class="def">makePatchLazy</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p x y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p x y)<a href="src/Darcs-Repository-Internal.html#makePatchLazy" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:writePatchSet" class="def">writePatchSet</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Patch-Set.html#t:Origin">Origin</a> x -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t)<a href="src/Darcs-Repository.html#writePatchSet" class="link">Source</a></p><div class="doc"><p>writePatchSet is like patchSetToRepository, except that it doesn't
 touch the working directory or pristine cache.
</p></div></div><div class="top"><p class="src"><a name="v:findRepository" class="def">findRepository</a> :: [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a>)<a href="src/Darcs-Repository-Internal.html#findRepository" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:amInRepository" class="def">amInRepository</a> :: [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a>)<a href="src/Darcs-Repository-Internal.html#amInRepository" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:amNotInRepository" class="def">amNotInRepository</a> :: [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a>)<a href="src/Darcs-Repository-Internal.html#amNotInRepository" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:amInHashedRepository" class="def">amInHashedRepository</a> :: [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a>)<a href="src/Darcs-Repository-Internal.html#amInHashedRepository" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:replacePristine" class="def">replacePristine</a> ::  <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-Repository.html#replacePristine" class="link">Source</a></p><div class="doc"><p>Replace the existing pristine with a new one (loaded up in a Tree object).
</p></div></div><div class="top"><p class="src"><a name="v:withRecorded" class="def">withRecorded</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; ((<a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a) -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a) -&gt; (<a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a) -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> a<a href="src/Darcs-Repository-Internal.html#withRecorded" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:readRepo" class="def">readRepo</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Patch-Set.html#t:Origin">Origin</a> r)<a href="src/Darcs-Repository-Internal.html#readRepo" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:prefsUrl" class="def">prefsUrl</a> ::  <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/Darcs-Repository-Internal.html#prefsUrl" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:readRepoUsingSpecificInventory" class="def">readRepoUsingSpecificInventory</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Patch-Set.html#t:Origin">Origin</a> t)<a href="src/Darcs-Repository-Internal.html#readRepoUsingSpecificInventory" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:addToPending" class="def">addToPending</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) u y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-Repository.html#addToPending" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:tentativelyAddPatch" class="def">tentativelyAddPatch</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Flags.html#t:Compression">Compression</a> -&gt; <a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p t y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:Repository">Repository</a> p r u y)<a href="src/Darcs-Repository-Internal.html#tentativelyAddPatch" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:tentativelyRemovePatches" class="def">tentativelyRemovePatches</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Flags.html#t:Compression">Compression</a> -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:Repository">Repository</a> p r u x)<a href="src/Darcs-Repository-Internal.html#tentativelyRemovePatches" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:tentativelyAddToPending" class="def">tentativelyAddToPending</a> :: <span class="keyword">forall</span> p r u t x y. <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) x y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-Repository-Internal.html#tentativelyAddToPending" class="link">Source</a></p><div class="doc"><p>This fuction is unsafe because it accepts a patch that works on the tentative
 pending and we don't currently track the state of the tentative pending.
</p></div></div><div class="top"><p class="src"><a name="v:tentativelyReplacePatches" class="def">tentativelyReplacePatches</a> :: <span class="keyword">forall</span> p r u t x. (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Flags.html#t:Compression">Compression</a> -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t)<a href="src/Darcs-Repository-Internal.html#tentativelyReplacePatches" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:readTentativeRepo" class="def">readTentativeRepo</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Patch-Set.html#t:Origin">Origin</a> t)<a href="src/Darcs-Repository-Internal.html#readTentativeRepo" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:tentativelyMergePatches" class="def">tentativelyMergePatches</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x t -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Witnesses-Sealed.html#t:Sealed">Sealed</a> (<a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) u))<a href="src/Darcs-Repository-Merge.html#tentativelyMergePatches" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:considerMergeToWorking" class="def">considerMergeToWorking</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x t -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Witnesses-Sealed.html#t:Sealed">Sealed</a> (<a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) u))<a href="src/Darcs-Repository-Merge.html#considerMergeToWorking" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:revertRepositoryChanges" class="def">revertRepositoryChanges</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-Repository-Internal.html#revertRepositoryChanges" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:finalizeRepositoryChanges" class="def">finalizeRepositoryChanges</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-Repository-Internal.html#finalizeRepositoryChanges" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:createRepository" class="def">createRepository</a> :: [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-Repository.html#createRepository" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:copyRepository" class="def">copyRepository</a> :: <span class="keyword">forall</span> p r u t. (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-Repository.html#copyRepository" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:patchSetToRepository" class="def">patchSetToRepository</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r1 u1 r1 -&gt; <a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Patch-Set.html#t:Origin">Origin</a> x -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t)<a href="src/Darcs-Repository.html#patchSetToRepository" class="link">Source</a></p><div class="doc"><p>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 and the new repository is not in hashed format.
   This function does not (yet) work for hashed repositories. If the passed <code>DarcsFlag</code>s tell
   darcs to create a hashed repository, this function will call <code>error</code>.
</p></div></div><div class="top"><p class="src"><a name="v:unrevertUrl" class="def">unrevertUrl</a> ::  <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/Darcs-Repository-Internal.html#unrevertUrl" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:applyToWorking" class="def">applyToWorking</a> :: (<a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>, <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) u y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Repository.html#t:Repository">Repository</a> p r y t)<a href="src/Darcs-Repository-Internal.html#applyToWorking" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:patchSetToPatches" class="def">patchSetToPatches</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p x y -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Named.html#t:Named">Named</a> p) x y<a href="src/Darcs-Repository-Internal.html#patchSetToPatches" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:createPristineDirectoryTree" class="def">createPristineDirectoryTree</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-Repository-Internal.html#createPristineDirectoryTree" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:createPartialsPristineDirectoryTree" class="def">createPartialsPristineDirectoryTree</a> :: (<a href="Darcs-RepoPath.html#t:FilePathLike">FilePathLike</a> fp, <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; [fp] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-Repository-Internal.html#createPartialsPristineDirectoryTree" class="link">Source</a></p><div class="doc"><p>Used by the commands dist and diff
</p></div></div><div class="top"><p class="src"><a name="v:optimizeInventory" class="def">optimizeInventory</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-Repository-Internal.html#optimizeInventory" class="link">Source</a></p><div class="doc"><p>Writes out a fresh copy of the inventory that minimizes the
 amount of inventory that need be downloaded when people pull from
 the repository.
</p><p>Specifically, it breaks up the inventory on the most recent tag.
 This speeds up most commands when run remotely, both because a
 smaller file needs to be transfered (only the most recent
 inventory).  It also gives a guarantee that all the patches prior
 to a given tag are included in that tag, so less commutation and
 history traversal is needed.  This latter issue can become very
 important in large repositories.
</p></div></div><div class="top"><p class="src"><a name="v:cleanRepository" class="def">cleanRepository</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-Repository-Internal.html#cleanRepository" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:PatchSet" class="def">PatchSet</a> p start y <a href="src/Darcs-Patch-Set.html#PatchSet" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:SealedPatchSet" class="def">SealedPatchSet</a> p start = <a href="Darcs-Witnesses-Sealed.html#t:Sealed">Sealed</a> (<a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p start)<a href="src/Darcs-Patch-Set.html#SealedPatchSet" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:PatchInfoAnd" class="def">PatchInfoAnd</a> p a b <a href="src/Darcs-Patch-PatchInfoAnd.html#PatchInfoAnd" class="link">Source</a></p><div class="doc"><p><code><code><a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a></code> p a b</code> represents a hope we have to get a
 patch through its info. We're not sure we have the patch, but we
 know its info.
</p></div><div class="subs instances"><p id="control.i:PatchInfoAnd" class="caption collapser" onclick="toggleSection('i:PatchInfoAnd')">Instances</p><div id="section.i:PatchInfoAnd" class="show"><table><tr><td class="src"><a href="Darcs-Patch-Format.html#t:PatchListFormat">PatchListFormat</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">(<a href="Darcs-Patch-Commute.html#t:Commute">Commute</a> p, <a href="Darcs-Witnesses-Eq.html#t:MyEq">MyEq</a> p) =&gt; <a href="Darcs-Witnesses-Eq.html#t:MyEq">MyEq</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-Patch-Commute.html#t:Commute">Commute</a> p =&gt; <a href="Darcs-Patch-Commute.html#t:Commute">Commute</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">(<a href="Darcs-Patch-Commute.html#t:Commute">Commute</a> p, <a href="Darcs-Patch-Invert.html#t:Invert">Invert</a> p) =&gt; <a href="Darcs-Patch-Invert.html#t:Invert">Invert</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-Patch-Merge.html#t:Merge">Merge</a> p =&gt; <a href="Darcs-Patch-Merge.html#t:Merge">Merge</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-Patch-Inspect.html#t:PatchInspect">PatchInspect</a> p =&gt; <a href="Darcs-Patch-Inspect.html#t:PatchInspect">PatchInspect</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">(<a href="Darcs-Patch-Read.html#t:ReadPatch">ReadPatch</a> p, <a href="Darcs-Patch-Format.html#t:PatchListFormat">PatchListFormat</a> p) =&gt; <a href="Darcs-Patch-Read.html#t:ReadPatch">ReadPatch</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-Patch-Apply.html#t:Apply">Apply</a> p =&gt; <a href="Darcs-Patch-Apply.html#t:Apply">Apply</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-Patch-Repair.html#t:RepairToFL">RepairToFL</a> p =&gt; <a href="Darcs-Patch-Repair.html#t:Repair">Repair</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">(<a href="Darcs-Patch-Apply.html#t:Apply">Apply</a> p, <a href="Darcs-Patch-Conflict.html#t:Conflict">Conflict</a> p, <a href="Darcs-Patch-Conflict.html#t:CommuteNoConflicts">CommuteNoConflicts</a> p, <a href="Darcs-Patch-FileHunk.html#t:IsHunk">IsHunk</a> p, <a href="Darcs-Patch-Format.html#t:PatchListFormat">PatchListFormat</a> p, <a href="Darcs-Patch-Prim-Class.html#t:PrimPatchBase">PrimPatchBase</a> p, <a href="Darcs-Patch-Show.html#t:ShowPatch">ShowPatch</a> p, ~ ((* -&gt; *) -&gt; *) (<a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p) <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Patch-Show.html#t:ShowPatch">ShowPatch</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">(<a href="Darcs-Patch-Format.html#t:PatchListFormat">PatchListFormat</a> p, <a href="Darcs-Patch-Show.html#t:ShowPatchBasic">ShowPatchBasic</a> p) =&gt; <a href="Darcs-Patch-Show.html#t:ShowPatchBasic">ShowPatchBasic</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">(<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, ~ ((* -&gt; *) -&gt; *) (<a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p) <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Patch-Patchy.html#t:Patchy">Patchy</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-Patch-FileHunk.html#t:IsHunk">IsHunk</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-Patch-Prim-Class.html#t:PrimPatchBase">PrimPatchBase</a> p =&gt; <a href="Darcs-Patch-Prim-Class.html#t:PrimPatchBase">PrimPatchBase</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-Patch-Effect.html#t:Effect">Effect</a> p =&gt; <a href="Darcs-Patch-Effect.html#t:Effect">Effect</a> (<a href="Darcs-Repository.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:setScriptsExecutable" class="def">setScriptsExecutable</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-Repository-Internal.html#setScriptsExecutable" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:setScriptsExecutablePatches" class="def">setScriptsExecutablePatches</a> :: <a href="Darcs-Patch-Patchy.html#t:Patchy">Patchy</a> p =&gt; p x y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-Repository-Internal.html#setScriptsExecutablePatches" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:checkUnrelatedRepos" class="def">checkUnrelatedRepos</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p start x -&gt; <a href="Darcs-Repository.html#t:PatchSet">PatchSet</a> p start y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-Repository.html#checkUnrelatedRepos" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:testTentative" class="def">testTentative</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-Exit.html#t:ExitCode">ExitCode</a><a href="src/Darcs-Repository-Internal.html#testTentative" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:testRecorded" class="def">testRecorded</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-Exit.html#t:ExitCode">ExitCode</a><a href="src/Darcs-Repository-Internal.html#testRecorded" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:extractOptions" class="def">extractOptions</a> ::  <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>]<a href="src/Darcs-Repository-InternalTypes.html#extractOptions" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:modifyCache" class="def">modifyCache</a> :: <span class="keyword">forall</span> p r u t. <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; (<a href="Darcs-Repository.html#t:Cache">Cache</a> -&gt; <a href="Darcs-Repository.html#t:Cache">Cache</a>) -&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t<a href="src/Darcs-Repository-InternalTypes.html#modifyCache" class="link">Source</a></p><div class="doc"><p><code><a href="Darcs-Repository.html#v:modifyCache">modifyCache</a></code> <code>repository function</code> modifies the cache of
   <code>repository</code> with <code>function</code>, remove duplicates and sort the results with <code><a href="Darcs-Repository-Cache.html#v:compareByLocality">compareByLocality</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:reportBadSources" class="def">reportBadSources</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-Repository-Cache.html#reportBadSources" class="link">Source</a></p><div class="doc"><p>Prints an error message with a list of bad caches.
</p></div></div><h1 id="g:1">Recorded and unrecorded and pending.
</h1><div class="top"><p class="src"><a name="v:readRecorded" class="def">readRecorded</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a>)<a href="src/Darcs-Repository-State.html#readRecorded" class="link">Source</a></p><div class="doc"><p>Obtains a Tree corresponding to the <a href="recorded.html">recorded</a> state of the repository:
 this is the same as the pristine cache, which is the same as the result of
 applying all the repository's patches to an empty directory.
</p><p>Handles the plain and hashed pristine cases. Currently does not handle the
 no-pristine case, as that requires replaying patches. Cf. <code><a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Darcs.html#v:readDarcsHashed">readDarcsHashed</a></code>
 and <code><a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Plain.html#v:readPlainTree">readPlainTree</a></code> in hashed-storage that are used to do the actual <code><a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a></code>
 construction.
</p></div></div><div class="top"><p class="src"><a name="v:readUnrecorded" class="def">readUnrecorded</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Darcs-RepoPath.html#t:SubPath">SubPath</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a>)<a href="src/Darcs-Repository-State.html#readUnrecorded" class="link">Source</a></p><div class="doc"><p>Obtains a Tree corresponding to the <a href="unrecorded.html">unrecorded</a> state of the repository:
 the working tree plus the <a href="pending.html">pending</a> patch. The optional list of paths allows
 to restrict the query to a subtree.
</p><p>Limiting the query may be more efficient, since hashes on the uninteresting
 parts of the index do not need to go through an up-to-date check (which
 involves a relatively expensive lstat(2) per file.
</p></div></div><div class="top"><p class="src"><a name="v:unrecordedChanges" class="def">unrecordedChanges</a> :: <span class="keyword">forall</span> p r u t. (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; (<a href="Darcs-Flags.html#t:UseIndex">UseIndex</a>, <a href="Darcs-Flags.html#t:ScanKnown">ScanKnown</a>) -&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Darcs-RepoPath.html#t:SubPath">SubPath</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Prim-Class.html#t:PrimOf">PrimOf</a> p) t u)<a href="src/Darcs-Repository-State.html#unrecordedChanges" class="link">Source</a></p><div class="doc"><p>For a repository and an optional list of paths (when Nothing, take
 everything) compute a (forward) list of prims (i.e. a patch) going from the
 recorded state of the repository (pristine) to the unrecorded state of the
 repository (the working copy + pending). When a list of paths is given, at
 least the files that live under any of these paths in either recorded or
 unrecorded will be included in the resulting patch. NB. More patches may be
 included in this list, eg. the full contents of the pending patch. This is
 usually not a problem, since selectChanges will properly filter the results
 anyway.
</p><p>This also depends on the options given: with LookForAdds, we will include
 any non-boring files (i.e. also those that do not exist in the <a href="recorded.html">recorded</a>
 state) in the working in the <a href="unrecorded.html">unrecorded</a> state, and therefore they will
 show up in the patches as addfiles.
</p><p>The IgnoreTimes option disables index usage completely -- for each file, we
 read both the unrecorded and the recorded copy and run a diff on them. This
 is very inefficient, although in extremely rare cases, the index could go
 out of sync (file is modified, index is updated and file is modified again
 within a single second).
</p></div></div><div class="top"><p class="src"><a name="v:readPending" class="def">readPending</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a>, <a href="Darcs-Witnesses-Sealed.html#t:Sealed">Sealed</a> (<a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> p t))<a href="src/Darcs-Repository-State.html#readPending" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:readRecordedAndPending" class="def">readRecordedAndPending</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a>)<a href="src/Darcs-Repository-State.html#readRecordedAndPending" class="link">Source</a></p></div><h1 id="g:2">Index.
</h1><div class="top"><p class="src"><a name="v:readIndex" class="def">readIndex</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>) =&gt; <a href="Darcs-Repository.html#t:Repository">Repository</a> p r u t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Index.html#t:Index">Index</a><a href="src/Darcs-Repository-State.html#readIndex" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:invalidateIndex" class="def">invalidateIndex</a> ::  t -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-Repository-State.html#invalidateIndex" class="link">Source</a></p><div class="doc"><p>Mark the existing index as invalid. This has to be called whenever the
 listing of pristine changes and will cause darcs to update the index next
 time it tries to read it. (NB. This is about files added and removed from
 pristine: changes to file content in either pristine or working are handled
 transparently by the index reading code.)
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>