darcs-beta-2.4.99.1: a distributed, interactive, smart revision control system

Darcs.Patch.Commute

Synopsis

Documentation

modernizePatch :: Patch -> PatchSource

modernizePatch is used during conversion to Darcs 2 format. It does the following:

  • removes mergers by linearising them, thus removing the ability to commute them
  • drops mv a b ; add b which was introduced by an error in earlier versions of darcs (TODO: check this; identify the versions)

merge :: Commute p => (p :\/: p) -> p :/\: pSource

data Perhaps a Source

Constructors

Unknown 
Failed 
Succeeded a