Sophie

Sophie

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

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.Internal</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-Internal.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Darcs-Repository-Internal.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.Internal</p></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 = <a href="#v:Repo">Repo</a> !<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> ![<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] !<a href="Darcs-Repository-Format.html#t:RepoFormat">RepoFormat</a> !(<a href="Darcs-Repository-Internal.html#t:RepoType">RepoType</a> p)</li><li class="src short"><span class="keyword">data</span>  <a href="#t:RepoType">RepoType</a> p = <a href="#v:DarcsRepository">DarcsRepository</a> !<a href="Darcs-Repository-InternalTypes.html#t:Pristine">Pristine</a> <a href="Darcs-Repository-Cache.html#t:Cache">Cache</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:RIO">RIO</a> p r u t t1 a</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-Internal.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-Internal.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-Internal.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-Internal.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:identifyDarcsRepository">identifyDarcsRepository</a> :: <span class="keyword">forall</span> p r u t.  [<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:Repository">Repository</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-Internal.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-Internal.html#t:Repository">Repository</a> p r u t)</li><li class="src short"><span class="keyword">data</span>  <a href="#t:IdentifyRepo">IdentifyRepo</a> p r u t<ul class="subs"><li>= <a href="#v:BadRepository">BadRepository</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>  </li><li>| <a href="#v:NonRepository">NonRepository</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>  </li><li>| <a href="#v:GoodRepository">GoodRepository</a> (<a href="Darcs-Repository-Internal.html#t:Repository">Repository</a> p r u t)  </li></ul></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:revertRepositoryChanges">revertRepositoryChanges</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository-Internal.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:announceMergeConflicts">announceMergeConflicts</a> :: (<a href="Darcs-Patch-Prim-Class.html#t:PrimPatch">PrimPatch</a> p, <a href="Darcs-Patch-Inspect.html#t:PatchInspect">PatchInspect</a> p) =&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> 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/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:setTentativePending">setTentativePending</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-Internal.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) 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:checkUnrecordedConflicts">checkUnrecordedConflicts</a> :: <span class="keyword">forall</span> p t y. <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-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Named.html#t:Named">Named</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="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</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-Internal.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-Internal.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-Patch-Set.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: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-Internal.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-Patch-Set.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: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-Internal.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-Patch-Set.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:prefsUrl">prefsUrl</a> ::  <a href="Darcs-Repository-Internal.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:makePatchLazy">makePatchLazy</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository-Internal.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Patch-PatchInfoAnd.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-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p x y)</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-Internal.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-Internal.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-Internal.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-Internal.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-Internal.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: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-Internal.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Flags.html#t:Compression">Compression</a> -&gt; <a href="Darcs-Patch-PatchInfoAnd.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-Internal.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-Internal.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-Patch-PatchInfoAnd.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-Internal.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-Internal.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: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-Internal.html#t:UpdatePristine">UpdatePristine</a> -&gt; <a href="Darcs-Repository-Internal.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Flags.html#t:Compression">Compression</a> -&gt; <a href="Darcs-Patch-PatchInfoAnd.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-Internal.html#t:Repository">Repository</a> p r u y)</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-Internal.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-Patch-PatchInfoAnd.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-Internal.html#t:Repository">Repository</a> p r u t)</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-Internal.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:unrevertUrl">unrevertUrl</a> ::  <a href="Darcs-Repository-Internal.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-Internal.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-Internal.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-Patch-Set.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-Internal.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-Internal.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-Internal.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-Internal.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: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:getRepository">getRepository</a> ::  <a href="Darcs-Repository-Internal.html#t:RIO">RIO</a> p r u t t (<a href="Darcs-Repository-Internal.html#t:Repository">Repository</a> p r u t)</li><li class="src short"><a href="#v:rIO">rIO</a> ::  <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-Repository-Internal.html#t:RIO">RIO</a> p r u t t 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-Internal.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-Internal.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"><span class="keyword">data</span>  <a href="#t:UpdatePristine">UpdatePristine</a> <ul class="subs"><li>= <a href="#v:UpdatePristine">UpdatePristine</a>  </li><li>| <a href="#v:DontUpdatePristine">DontUpdatePristine</a>  </li></ul></li><li class="src short"><span class="keyword">data</span>  <a href="#t:MakeChanges">MakeChanges</a> <ul class="subs"><li>= <a href="#v:MakeChanges">MakeChanges</a>  </li><li>| <a href="#v:DontMakeChanges">DontMakeChanges</a>  </li></ul></li><li class="src short"><a href="#v:applyToTentativePristine">applyToTentativePristine</a> :: (<a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> q ~ <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-Effect.html#t:Effect">Effect</a> q, <a href="Darcs-Patch-Patchy.html#t:Patchy">Patchy</a> q, <a href="Darcs-Patch-Prim-Class.html#t:PrimPatchBase">PrimPatchBase</a> q) =&gt; <a href="Darcs-Repository-Internal.html#t:Repository">Repository</a> p r u t -&gt; q 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="/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:makeNewPending">makeNewPending</a> :: <span class="keyword">forall</span> p r u t y. (<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-Internal.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) 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="/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:seekRepo">seekRepo</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/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</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></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 constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Repo" class="def">Repo</a> !<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> ![<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] !<a href="Darcs-Repository-Format.html#t:RepoFormat">RepoFormat</a> !(<a href="Darcs-Repository-Internal.html#t:RepoType">RepoType</a> p)</td><td class="doc empty">&nbsp;</td></tr></table></div><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-Internal.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:RepoType" class="def">RepoType</a> p <a href="src/Darcs-Repository-InternalTypes.html#RepoType" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:DarcsRepository" class="def">DarcsRepository</a> !<a href="Darcs-Repository-InternalTypes.html#t:Pristine">Pristine</a> <a href="Darcs-Repository-Cache.html#t:Cache">Cache</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:RepoType" class="caption collapser" onclick="toggleSection('i:RepoType')">Instances</p><div id="section.i:RepoType" 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-Internal.html#t:RepoType">RepoType</a> p)</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:RIO" class="def">RIO</a> p r u t t1 a <a href="src/Darcs-Repository-Internal.html#RIO" class="link">Source</a></p><div class="doc"><p>Repository IO monad.  This monad-like datatype is responsible for
 sequencing IO actions that modify the tentative recorded state of
 the repository.
</p></div><div class="subs instances"><p id="control.i:RIO" class="caption collapser" onclick="toggleSection('i:RIO')">Instances</p><div id="section.i:RIO" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Monad">Monad</a> (<a href="Darcs-Repository-Internal.html#t:RIO">RIO</a> p r u t t)</td><td class="doc"><p>We have an instance of Monad so that IO actions that do not
 change the tentative recorded state are convenient in the IO monad.
</p></td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Functor">Functor</a> (<a href="Darcs-Repository-Internal.html#t:RIO">RIO</a> p r u t t)</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-Internal.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-Internal.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-Internal.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-Internal.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:identifyDarcsRepository" class="def">identifyDarcsRepository</a> :: <span class="keyword">forall</span> p r u t.  [<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:Repository">Repository</a> p r u t)<a href="src/Darcs-Repository-Internal.html#identifyDarcsRepository" class="link">Source</a></p><div class="doc"><p>identifyDarcsRepository identifies the repo at <code>url</code>. Warning:
 you have to know what kind of patches are found in that repo.
</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-Internal.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-Internal.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"><span class="keyword">data</span>  <a name="t:IdentifyRepo" class="def">IdentifyRepo</a> p r u t <a href="src/Darcs-Repository-Internal.html#IdentifyRepo" class="link">Source</a></p><div class="doc"><p>The status of a given directory: is it a darcs repository?
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:BadRepository" class="def">BadRepository</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>looks like a repository with some error
</p></td></tr><tr><td class="src"><a name="v:NonRepository" class="def">NonRepository</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>safest guess
</p></td></tr><tr><td class="src"><a name="v:GoodRepository" class="def">GoodRepository</a> (<a href="Darcs-Repository-Internal.html#t:Repository">Repository</a> p r u t)</td><td class="doc empty">&nbsp;</td></tr></table></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:revertRepositoryChanges" class="def">revertRepositoryChanges</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository-Internal.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:announceMergeConflicts" class="def">announceMergeConflicts</a> :: (<a href="Darcs-Patch-Prim-Class.html#t:PrimPatch">PrimPatch</a> p, <a href="Darcs-Patch-Inspect.html#t:PatchInspect">PatchInspect</a> p) =&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> 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/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Darcs-Repository-Internal.html#announceMergeConflicts" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:setTentativePending" class="def">setTentativePending</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-Internal.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) 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#setTentativePending" class="link">Source</a></p><div class="doc"><p>setTentativePending is basically unsafe.  It overwrites the pending state with a new one, not related to
 the repository state.
</p></div></div><div class="top"><p class="src"><a name="v:checkUnrecordedConflicts" class="def">checkUnrecordedConflicts</a> :: <span class="keyword">forall</span> p t y. <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-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Named.html#t:Named">Named</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="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Darcs-Repository-Internal.html#checkUnrecordedConflicts" class="link">Source</a></p></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-Internal.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-Internal.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-Patch-Set.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: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-Internal.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-Patch-Set.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: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-Internal.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-Patch-Set.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:prefsUrl" class="def">prefsUrl</a> ::  <a href="Darcs-Repository-Internal.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:makePatchLazy" class="def">makePatchLazy</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Repository-Internal.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Patch-PatchInfoAnd.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-Patch-PatchInfoAnd.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:withRepoLock" class="def">withRepoLock</a> ::  [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Repository-Internal.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-Internal.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-Internal.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-Internal.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-Internal.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: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-Internal.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Flags.html#t:Compression">Compression</a> -&gt; <a href="Darcs-Patch-PatchInfoAnd.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-Internal.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-Internal.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-Patch-PatchInfoAnd.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-Internal.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-Internal.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: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-Internal.html#t:UpdatePristine">UpdatePristine</a> -&gt; <a href="Darcs-Repository-Internal.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Flags.html#t:Compression">Compression</a> -&gt; <a href="Darcs-Patch-PatchInfoAnd.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-Internal.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: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-Internal.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-Patch-PatchInfoAnd.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-Internal.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: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-Internal.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:unrevertUrl" class="def">unrevertUrl</a> ::  <a href="Darcs-Repository-Internal.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-Internal.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-Internal.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-Patch-Set.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-Internal.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-Internal.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-Internal.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-Internal.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"><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:getRepository" class="def">getRepository</a> ::  <a href="Darcs-Repository-Internal.html#t:RIO">RIO</a> p r u t t (<a href="Darcs-Repository-Internal.html#t:Repository">Repository</a> p r u t)<a href="src/Darcs-Repository-Internal.html#getRepository" class="link">Source</a></p><div class="doc"><p>Similar to the <code>ask</code> function of the MonadReader class.
 This allows actions in the RIO monad to get the current
 repository.
 FIXME: Don't export this.  If we don't export this
 it makes it harder for arbitrary IO actions to access
 the repository and hence our code is easier to audit.
</p></div></div><div class="top"><p class="src"><a name="v:rIO" class="def">rIO</a> ::  <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-Repository-Internal.html#t:RIO">RIO</a> p r u t t a<a href="src/Darcs-Repository-Internal.html#rIO" class="link">Source</a></p><div class="doc"><p>This the <code>RIO</code> equivalent of <code>liftIO</code>.
</p></div></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-Internal.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-Internal.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"><span class="keyword">data</span>  <a name="t:UpdatePristine" class="def">UpdatePristine</a>  <a href="src/Darcs-Repository-Internal.html#UpdatePristine" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:UpdatePristine" class="def">UpdatePristine</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:DontUpdatePristine" class="def">DontUpdatePristine</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:UpdatePristine" class="caption collapser" onclick="toggleSection('i:UpdatePristine')">Instances</p><div id="section.i:UpdatePristine" 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-Internal.html#t:UpdatePristine">UpdatePristine</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:MakeChanges" class="def">MakeChanges</a>  <a href="src/Darcs-Repository-Internal.html#MakeChanges" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:MakeChanges" class="def">MakeChanges</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:DontMakeChanges" class="def">DontMakeChanges</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:MakeChanges" class="caption collapser" onclick="toggleSection('i:MakeChanges')">Instances</p><div id="section.i:MakeChanges" 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-Internal.html#t:MakeChanges">MakeChanges</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:applyToTentativePristine" class="def">applyToTentativePristine</a> :: (<a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> q ~ <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-Effect.html#t:Effect">Effect</a> q, <a href="Darcs-Patch-Patchy.html#t:Patchy">Patchy</a> q, <a href="Darcs-Patch-Prim-Class.html#t:PrimPatchBase">PrimPatchBase</a> q) =&gt; <a href="Darcs-Repository-Internal.html#t:Repository">Repository</a> p r u t -&gt; q 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="/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#applyToTentativePristine" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:makeNewPending" class="def">makeNewPending</a> :: <span class="keyword">forall</span> p r u t y. (<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-Internal.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) 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="/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#makeNewPending" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:seekRepo" class="def">seekRepo</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/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</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#seekRepo" class="link">Source</a></p><div class="doc"><p>hunt upwards for the darcs repository
 This keeps changing up one parent directory, testing at each
 step if the current directory is a repository or not.  $
 The result is:
   Nothing, if no repository found
   Just (Left errorMessage), if bad repository found
   Just (Right ()), if good repository found.
 WARNING this changes the current directory for good if matchFn succeeds
</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>