Here are patches that remove write support to OF repositories.
The first one is the least invaside, it removes the --old flag from
the commands get, init and put, which is not a very invasive change.
The second one is made from Petr Rockai's patch from the adventure branch.
The most important thing is that Darcs.Repository.DarcsRepo is renamed to
Darcs.Repository.Old, and this module now only exports the functions
readOldRepo and copyOldRepoPatches. Darcs.Repository.Pristine is removed.
I have verified that the commands get, pull and send worked with a remote
OF repository ( I took http://community.haskell.org/~ndm/darcs/cmdargs as
a test repo. )
However nothing is done so that darcs fails gracefully when a user tries
to work in an OF repo. This is probably something to be done only after
the darcs-cmdline / libdarcs separation takes place.
Also the test suite remains unmodified, so expect a lot of failures if
you run it with these patches.
2 patches for repository http://darcs.net/screened:
Sun Dec 12 00:21:47 CET 2010 Guillaume Hoffmann <guillaumh@gmail.com>
* remove --old flag for init get and put, modify help accordingly
Thu Dec 16 16:40:11 CET 2010 Guillaume Hoffmann <guillaumh@gmail.com>
* remove OF write support
adapted from work by Petr Rockai
Attachments
|