Talk:Understanding Darcs/Undoing mistakes

notes to merge
darcs, from my perspective:

I had a directory called minhaskell. Minhaskell contained lots of source files. Every time I would be satisfied with the state of minhaskell, I would copy the whole directory. This became unwieldy since I had 15 or so directories named "minhaskellbackupmonthday"

darcs to the rescue

I change directoried into minhaskell and I said "let there be a repository":

darcs init

and I saw the repository, that it was good. In english: "darcs init" means "minhaskell and all its subdirectories are now a repository"

and I said "let us populate this repository with files":

darcs record -am "Initial import."

and I called patch "Initial import." In english: 'darcs record -am "Initial import."' means 'record every change that's been done so far, namely "darcs add -r". The -m Initial import." tells darcs to name the patch "Initial import.". Furthermore the -a tells darcs that I do not wish to be prompted.

--Jacques