New submission from Ben Franksen <[email protected]>: 1 patch for repository https://darcs.net/screened:
patch 125e97cff676a63b672ac666a0ca2740c3375d90 Author: Ben Franksen <[email protected]> Date: Tue Jan 28 13:58:42 CET 2025 * when we fail to commute common patches, print their patch IDs This is needed to debug problems like issue2739. ---------- files: patch-preview.txt, when-we-fail-to-commute-common-patches_-print-their-patch-ids.dpatch messages: 24172 nosy: bfrk status: needs-screening title: when we fail to commute common patches, print their pa... __________________________________ Darcs bug tracker <[email protected]> <https://bugs.darcs.net/patch2454> __________________________________
[when we fail to commute common patches, print their patch IDs Ben Franksen <[email protected]>**20250128125842 Ignore-this: 553c9b157930609b04535595f3b09a2a768313352226faa85926a4973cfa97f61db9eb3a58367011 This is needed to debug problems like issue2739. ] hunk ./src/Darcs/Patch/Ident.hs 30 -import Darcs.Patch.Show ( ShowPatchFor ) +import Darcs.Patch.Show ( ShowPatchFor(..) ) hunk ./src/Darcs/Patch/Ident.hs 48 -import Darcs.Util.Printer ( Doc ) +import Darcs.Util.Printer ( Doc, renderString, text, vcat, ($$) ) hunk ./src/Darcs/Patch/Ident.hs 237 -findCommonFL :: (Commute p, Ident p) +findCommonFL :: (Commute p, Ident p, StorableId (PatchId p)) hunk ./src/Darcs/Patch/Ident.hs 251 - :: (Commute p, Ident p) => FL p wX wY -> FL p wX wZ -> (FL p :> FL p) wX wY + :: (Commute p, Ident p, StorableId (PatchId p)) + => FL p wX wY -> FL p wX wZ -> (FL p :> FL p) wX wY hunk ./src/Darcs/Patch/Ident.hs 256 - _ -> error "failed to commute common patches" + _ :> remaining :> _ -> + error $ renderString + $ text "failed to commute common patches:" + $$ vcat (mapRL (showId ForDisplay . ident) remaining) hunk ./src/Darcs/Patch/Ident.hs 263 -findCommonRL :: (Commute p, Ident p) +findCommonRL :: (Commute p, Ident p, StorableId (PatchId p)) hunk ./src/Darcs/Patch/Ident.hs 277 - :: (Commute p, Ident p) => RL p wX wY -> RL p wX wZ -> (RL p :> RL p) wX wY + :: (Commute p, Ident p, StorableId (PatchId p)) + => RL p wX wY -> RL p wX wZ -> (RL p :> RL p) wX wY hunk ./src/Darcs/Patch/Ident.hs 282 - _ -> error "failed to commute common patches" + _ :> remaining :> _ -> + error $ renderString + $ text "failed to commute common patches:" + $$ vcat (mapFL (showId ForDisplay . ident) remaining) hunk ./src/Darcs/Patch/Info.hs 69 +import Darcs.Patch.Ident ( StorableId(..) ) hunk ./src/Darcs/Patch/Info.hs 149 +instance StorableId PatchInfo where + readId = readPatchInfo + showId f = showPatchInfo f + hunk ./src/Darcs/Patch/V3/Contexted.hs 147 -ctxNoConflict :: (CleanMerge p, Commute p, Ident p) +ctxNoConflict :: (CleanMerge p, Commute p, Ident p, StorableId (PatchId p))
when-we-fail-to-commute-common-patches_-print-their-patch-ids.dpatch
Description: application/darcs-patch
_______________________________________________ darcs-devel mailing list [email protected] https://lists.darcs.net/mailman/listinfo/darcs-devel
