2008/9/8 Simon Peyton-Jones <[EMAIL PROTECTED]>:
The obvious solution to both is to somehow offer 'make superclean', which removes every single
file and directory that is not in the source repo. That is right-by-construction, and stays
right regardless of changes. I don't know how to implement it though -- and of course any sort
of automated 'rm' is anxious-making.
When we switch to git, "git clean -x" will accomplish this. I don't
know if Darcs has an equivalent feature.
I think it is important to understand that proper cleaning in
a system that doesn't track all dependencies isn't trivial.
There are no easy solutions that do not require proper
maintainance to keep working.
'git clean -x' looks similar to 'darcs whatsnew -l --boring |
xargs rm', which will happily remove all files in your sub-repos
(though 'git clean' without '-d' will leave the empty directories;-).
Claus
_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc