[darcs-devel] darcs patch: rewrite --lazy to be more flexible. (and
7 more)
David Roundy
droundy at darcs.net
Sun Apr 22 09:03:34 PDT 2007
Hi Eric (and others),
This set of patches makes get work with any permutation of hashed,
old-fashioned and mixed repositories. Wonderfully enough, I'd say that
I've even managed to simplify the code. I'm not sure why it looked like
this passed before, but now it really passes. Most of these latest changes
are small, and a glance at the changes here from the "strict get" on would
be appreciated. Those patches should be comprehensible, I believe. In
particular, I'm pleased with the last one.
I believe this is ready for darcs-unstable, and for wider testing, and even
use. Older versions of darcs should interact fine with the mixed partial
repositories (gotten with darcs get --hashed --old-fashioned foo), so it
should be possible to test this out in a production environment (albeit,
it'd be wiser to do so only on smaller projects with good backups, just in
case).
TODO items include:
* Making mixed repositories hard link their patch files so that you don't
need two copies of each patch. This is very doable by anyone other than
myself (provided you're a capable haskeller).
* Benchmarking. Some operations are almost certainly memory-intensive and
slow (relative to older versions of darcs). Knowing which operations
suffer from this will be helpful. Better would be a benchmarking
framework.
David
Mon Apr 16 08:41:13 PDT 2007 David Roundy <droundy at darcs.net>
* rewrite --lazy to be more flexible.
This change makes it so we can handle a configured set of URLs for patch
origins. See the description in the Prefs.lhs documentation for details.
In addition, I've added a new --ephemeral option, which allows the user to
create repositories without any patch files at all (which seems a bit
scary, but potentially handy).
Wed Apr 18 16:48:21 PDT 2007 David Roundy <droundy at darcs.net>
* add tests for mixed inventories to hashed_inventory.sh.
Sun Apr 22 07:49:10 PDT 2007 David Roundy <droundy at darcs.net>
* remove redundant copyInventory.
Sun Apr 22 08:13:00 PDT 2007 David Roundy <droundy at darcs.net>
* fix strict get to a hashed repo from another.
The trouble was that my clever idea of lazily downloading patches even
during a strict get didn't work, since we didn't have the source while
reading the patches the second time. One option would be to add that
source while applying patches the second time, but that seems like it'd
require a more tricky interface than just copying things strictly the first
time.
Sun Apr 22 08:26:51 PDT 2007 David Roundy <droundy at darcs.net>
* add test to trigger yet another buggy case.
Sun Apr 22 08:29:34 PDT 2007 David Roundy <droundy at darcs.net>
* add support for different kinds of get.
Sun Apr 22 08:53:24 PDT 2007 David Roundy <droundy at darcs.net>
* fix bug in Internal.
Sun Apr 22 08:53:44 PDT 2007 David Roundy <droundy at darcs.net>
* make copyInventory work for all permutations of repo formats.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 91420 bytes
Desc: A darcs patch for your repository!
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20070422/b5b01936/attachment-0001.bin
More information about the darcs-devel
mailing list