[darcs-users] [patch415] Replace tmp- prefixes with meta- in packs (and 7 more)

Alexey Levan bugs at darcs.net
Sat Oct 9 12:58:00 UTC 2010


New submission from Alexey Levan <exlevan at gmail.com>:

A couple of fixes for getting packes repositories.

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

Fri Aug 20 00:03:55 EEST 2010  Alexey Levan <exlevan at gmail.com>
  * Replace tmp- prefixes with meta- in packs

A change of prefix in meta-files in packs to better reflect their purpose.
Currently, there're 2 such files in packs, meta-filelist-pristine and
meta-filelist-inventories, which contain list of pack contents for optimized
parallel get.


Wed Oct  6 06:36:20 EEST 2010  Alexey Levan <exlevan at gmail.com>
  * Perform cleanup on exceptions in doOptimizeHTTP

Moved cleanup part of 'optimize --http' into finally block.


Wed Oct  6 07:30:35 EEST 2010  Alexey Levan <exlevan at gmail.com>
  * Remove warnings about name shadowing

What the patch name said.  (Mentioned warning is actually introduced by the
following patch).


Wed Oct  6 07:33:45 EEST 2010  Alexey Levan <exlevan at gmail.com>
  * Improve getting of packed repositories

In this patch the big (~ 100 lines) where clause of copyPackedRepository was
splitted into a bunch of top-level definitions.  Some of them were renamed to
be more meaningful without context.

Also, I wrote a general unpackTar function, which accepts meta- files anywhere
in tarball, calling provided meta-handler function.  It accepts a (stopCond ::
FilePath -> Bool) argument, and stops unpacking if stop condition is True.
This is made to make lazy get more efficient, as the inventory files in the
basic tarball actually don't needed for lazy repo.

This patch may resolve issue1910 (I haven't seen error messages for a while
after writing this patch).  This needs additional checking, though.


Sat Oct  9 12:16:40 EEST 2010  Alexey Levan <exlevan at gmail.com>
  * Make gzipped inventories parse correctly in readInventoryPrivate

A small fix to read all inventories during 'optimize --http'.  Without this
change, readInventoryPrivate doesn't uncompress inventory files and stops
reading them after the first one.


Sat Oct  9 12:54:53 EEST 2010  Alexey Levan <exlevan at gmail.com>
  * Moved inventories to patches tarball

To make lazy getting of optimized repositories simpler, 'optimize --http'
creates two tarballs: basic.tar.gz, with inventory and pristine files, and
patches.tar.gz, which contains patches.  The idea was that to get lazy
repository, you only need to download the basic tarball.  It appears that for
lazy repository, inventory files not needed, except of hashed_inventory.  In
this patch, optimize --http was changed to pack inventories into patches
tarball instead, and getting functions were modified accordingly.  Also,
unpackTar was simplified: it no longer accept stop condition, as there's no
need to stop unpacking in the middle anymore.


Sat Oct  9 14:10:21 EEST 2010  Alexey Levan <exlevan at gmail.com>
  * Use custom HTTP request for fetchFileLazyPS

fetchFileLazyPS, now with real laziness. (At cost of some code duplication).


Sat Oct  9 15:02:09 EEST 2010  Alexey Levan <exlevan at gmail.com>
  * Add flag for using repository packs

Two new flags for 'darcs get', --packs and --no-packs [DEFAULT].

----------
files: replace-tmp_-prefixes-with-meta_-in-packs.dpatch, unnamed
messages: 12669
nosy: exlevan
status: needs-screening
title: Replace tmp- prefixes with meta- in packs (and 7 more)

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch415>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: replace-tmp_-prefixes-with-meta_-in-packs.dpatch
Type: text/x-darcs-patch
Size: 72244 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20101009/367b286f/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unnamed
Type: application/octet-stream
Size: 5 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20101009/367b286f/attachment-0001.obj>


More information about the darcs-users mailing list