import Darcs.Repository
( amNotInRepository, applyToWorking, withRepoLock )
import Darcs.RepoPath ( FilePathLike(..) )
-import Darcs.External ( clonePaths )
import Darcs.Patch ( Effect(effect) )
import Workaround ( getCurrentDirectory )
import Darcs.Global ( debugMessage )
( diffToPrims,
initializeBaseState,
withTempRepository,
- stdindefault )
+ stdindefault,
+ clonePathsWithDeletion )
import DiffFile ( filesTouchedByDiff, readDiffFile )
applyHelp :: String
yorn <- promptYorn "Really apply the selected changes?"
when (yorn == 'y') $ do
- clonePaths (toFilePath rdir) maindir files
+ clonePathsWithDeletion (toFilePath rdir) maindir files
{-
debugMessage $ "Printing selected parts"