How do I start using darcs for a web application (or some other code base) that is already in production?
It is trivial to start using darcs for an existing web application that has two environments; in my case the environments are testing and production. To get started, I did the following: • Backup everything; it never hurts to have some backups • Do the following in the production environment: • darcs initialize • [optional] add stuff to ignore to the boring file • I had to add a directory var/ to my boring file because I wanted that to be different in all of my repos. Adding the directory to the boring file makes darcs ignore the var/ dir. • darcs add –r ./ • I did this so I could add everything in my production environment to the darcs repository, you might want something different, if so, read the darcs add help. • darcs record –all –look-for-adds • I named my patch ‚”initial revision from production,” • Now the magic: without creating a darcs repository, copy the _darcs directory, in its entirety, from the production environment to the development environment. • Issue the followi