darcs

Patch 510 remove --old flag for init get and put, ... (and 1 more)

Title remove --old flag for init get and put, ... (and 1 more)
Superseder Nosy List gh
Related Issues
Status accepted Assigned To
Milestone

Created on 2010-12-16.15:59:48 by gh, last changed 2011-05-10.18:35:38 by darcswatch. Tracked on DarcsWatch.

Files
File name Status Uploaded Type Edit Remove
remove-__old-flag-for-init-get-and-put_-modify-help-accordingly.dpatch gh, 2010-12-16.15:59:48 text/x-darcs-patch
remove-__old-flag-for-init-get-and-put_-modify-help-accordingly.dpatch gh, 2011-01-22.18:43:31 text/x-darcs-patch
remove-__old-flag-for-init-get-and-put_-modify-help-accordingly.dpatch gh, 2011-02-02.16:29:35 application/x-darcs-patch
unnamed gh, 2010-12-16.15:59:48
unnamed gh, 2011-01-22.18:43:31
unnamed gh, 2011-02-02.16:29:35 text/x-darcs-patch
unnamed gh, 2011-02-02.16:29:35
See mailing list archives for discussion on individual patches.
Messages
msg13350 (view) Author: gh Date: 2010-12-16.15:59:48
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
msg13562 (view) Author: gh Date: 2011-01-22.12:25:24
Oops, this breaks optimize --upgrade. Working on that.
msg13566 (view) Author: gh Date: 2011-01-22.18:43:31
Two main differences with previous bundle version

* tests are modified so that they are all green now

* I reintroduced the revertTentativChanges function in Darcs.Repository.Old,
  otherwise the command "darcs optimize --upgrade" would be impossible to run
  safely (an alternative would be to make this command unsafe by no longer
  using withRepoLock).

8 patches for repository http://darcs.net/screened:

Fri Jan 21 18:32:29 CET 2011  Guillaume Hoffmann <guillaumh@gmail.com>
  * remove --old flag for init get and put, modify help accordingly

Fri Jan 21 19:06:58 CET 2011  Guillaume Hoffmann <guillaumh@gmail.com>
  * no longer test OF repositories

Sun Aug 29 19:15:18 CEST 2010  Petr Rockai <me@mornfall.net>
  * Modernize the conflict-doppleganger test.

Sun Aug 29 19:57:50 CEST 2010  Petr Rockai <me@mornfall.net>
  * Adapt issue1248 test to current OF-less situation.

Sun Aug 29 19:58:18 CEST 2010  Petr Rockai <me@mornfall.net>
  * Remove parts of the hashed_inventory that require conversion to OF.

Sat Jan 22 18:35:43 CET 2011  Guillaume Hoffmann <guillaumh@gmail.com>
  * remove OF write support
  adapted from work by Petr Rockai

Sat Jan 22 18:46:56 CET 2011  Guillaume Hoffmann <guillaumh@gmail.com>
  * modernize issue1984 test (patch by Petr Rockai)

Sat Jan 22 19:18:16 CET 2011  Guillaume Hoffmann <guillaumh@gmail.com>
  * remove some --hashed and --old flags from tests
Attachments
msg13623 (view) Author: gh Date: 2011-02-02.16:29:35
This new version makes Darcs fail on certain commands and functions
on OF repositories. This is done at two levels:

 * user interface level, see patch "add amInHashedRepository ..."
 * library level, see patch "remove OF write support"


12 patches for repository http://darcs.net/screened:

Fri Jan 21 18:32:29 CET 2011  Guillaume Hoffmann <guillaumh@gmail.com>
  * remove --old flag for init get and put, modify help accordingly

Fri Jan 21 19:06:58 CET 2011  Guillaume Hoffmann <guillaumh@gmail.com>
  * no longer test OF repositories

Sun Aug 29 19:15:18 CEST 2010  Petr Rockai <me@mornfall.net>
  * Modernize the conflict-doppleganger test.

Sun Aug 29 19:57:50 CEST 2010  Petr Rockai <me@mornfall.net>
  * Adapt issue1248 test to current OF-less situation.

Sun Aug 29 19:58:18 CEST 2010  Petr Rockai <me@mornfall.net>
  * Remove parts of the hashed_inventory that require conversion to OF.

Sat Jan 22 18:46:56 CET 2011  Guillaume Hoffmann <guillaumh@gmail.com>
  * modernize issue1984 test (patch by Petr Rockai)

Sat Jan 22 19:18:16 CET 2011  Guillaume Hoffmann <guillaumh@gmail.com>
  * remove some --hashed and --old flags from tests

Wed Feb  2 15:22:04 CET 2011  Guillaume Hoffmann <guillaumh@gmail.com>
  * add amInHashedRepository to disable OF-deprecated commands at the UI level

Wed Feb  2 16:06:38 CET 2011  Guillaume Hoffmann <guillaumh@gmail.com>
  * don't bother with testing issue1232
  fixing the test would imply adding another OF repo archive with prefs

Wed Feb  2 16:24:05 CET 2011  Guillaume Hoffmann <guillaumh@gmail.com>
  * update v1-braced.sh test to hashed format

Wed Feb  2 16:44:03 CET 2011  Guillaume Hoffmann <guillaumh@gmail.com>
  * test that OF disabled commands are disabled

Wed Feb  2 17:03:36 CET 2011  Guillaume Hoffmann <guillaumh@gmail.com>
  * remove OF write support
  Make low level pristine handling functions fail on OF repository
  by printing an error message.
  Adapted from work by Petr Rockai
Attachments
msg13624 (view) Author: gh Date: 2011-02-02.16:35:16
I wanted to say "fail gracefully", that is, by displaying an error
message that points to the page http://wiki.darcs.net/OF
msg13651 (view) Author: gh Date: 2011-02-08.10:06:00
Pushed to screen.
msg13767 (view) Author: gh Date: 2011-03-03.09:13:09
Self-pushed.
History
Date User Action Args
2010-12-16 15:59:48ghcreate
2010-12-16 16:08:11ghsetstatus: needs-review -> needs-screening
2011-01-22 12:25:24ghsetstatus: needs-screening -> followup-in-progress
messages: + msg13562
2011-01-22 18:43:32ghsetfiles: + remove-__old-flag-for-init-get-and-put_-modify-help-accordingly.dpatch, unnamed
messages: + msg13566
2011-01-22 18:46:32darcswatchsetdarcswatchurl: http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-c7e6612ede8a4fac242d00f4b819a3054cc3420e
2011-02-02 16:29:36ghsetfiles: + unnamed, remove-__old-flag-for-init-get-and-put_-modify-help-accordingly.dpatch, unnamed
messages: + msg13623
2011-02-02 16:35:16ghsetmessages: + msg13624
2011-02-08 10:06:00ghsetstatus: followup-in-progress -> needs-review
messages: + msg13651
2011-03-03 09:13:09ghsetstatus: needs-review -> accepted
messages: + msg13767
2011-05-10 18:35:38darcswatchsetdarcswatchurl: http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-c7e6612ede8a4fac242d00f4b819a3054cc3420e -> http://darcswatch.nomeata.de/repo_http:__darcs.net_reviewed.html#bundle-c7e6612ede8a4fac242d00f4b819a3054cc3420e