[darcs-users] [patch332] Add --import and --export to available f... (and 1 more)

Petr Ročkai bugs at darcs.net
Mon Aug 9 18:24:34 UTC 2010


Petr Ročkai <me at mornfall.net> added the comment:

Hi again,

this time I have recorded and pushed the hashed-storage changes. To test this
bundle, you will need to fetch hashed-storage HEAD as well (note that it also
happens to contain some experimental changes, so be wary).

The instructions in my original bundle still hold and code-wise, nothing much
has changed. I would be interested in hearing about some test conversions...

There's a couple of TODO items:

- the code does not work at all with plain (darcs-1) repos... don't even try;
  we probably just need to catch this at the UI level; I am not interested in
  writing darcs-1-format support code for this
- handling of branch resets in the fast-import stream is a bit wobbly...
- there seems to be a minor space leak (or, well, accumulation of data) in
  hashed-storage, although this may be fairly hard to fix (without regressing
  speed)... as long as your project has only couple 10000 patches, it shouldn't
  be an issue
- there are some UI bugs, since I don't know how to use
  amInRepository/amNotInRepository properly with --import/--export; it might be
  best to just make convert a supercommad instead? can we have a supercommand
  take action even if it gets no subcommand?
- I'd like to add some checkpointing, since currently the conversion is all or
  nothing; if anything fails after 2 hours, you get no result (well, you can
  manually tweak the result to get a working darcs repo, but it's a bit icky);
  also, optimizing inventory in one go will fail with stack overflow on big
  repos (happened after about 50k patches) -- another reason to checkpoint
- the tag names are still icky; need to fix that (drop refs/tag/)

Please do not push, but do test if possible. Thanks!

Yours,
   Petr.

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

Sat Aug  7 15:08:44 CEST 2010  Petr Rockai <me at mornfall.net>
  * Add --import and --export to available flags.

Sat Aug  7 15:25:32 CEST 2010  Petr Rockai <me at mornfall.net>
  * Implement convert --export to generate a git fast-import stream.

Sat Aug  7 17:15:14 CEST 2010  Petr Rockai <me at mornfall.net>
  * Also export commit dates in convert --export.

Mon Aug  9 01:25:46 CEST 2010  Petr Rockai <me at mornfall.net>
  * First version of a fast-importer (convert --import).

Mon Aug  9 04:13:08 CEST 2010  Petr Rockai <me at mornfall.net>
  * Recognize tags in convert --import (but ignore them for now).

Mon Aug  9 05:19:19 CEST 2010  Petr Rockai <me at mornfall.net>
  * Optimize convert --import.

Mon Aug  9 04:51:28 CEST 2010  Petr Rockai <me at mornfall.net>
  * Add a forgotten import.

Sun Aug  8 20:35:50 CEST 2010  Petr Rockai <me at mornfall.net>
  * Also export (clean) tags in convert --export.

Mon Aug  9 05:18:28 CEST 2010  Petr Rockai <me at mornfall.net>
  * Import author names, mail addresses and commit dates, in convert --import.

Mon Aug  9 12:14:42 CEST 2010  Petr Rockai <me at mornfall.net>
  * More robust convert --import, support (in-order) tags.

Mon Aug  9 13:24:28 CEST 2010  Petr Rockai <me at mornfall.net>
  * (Approximately) import multi-branch dumps in convert --import. Support tagging.

Mon Aug  9 13:25:58 CEST 2010  Petr Rockai <me at mornfall.net>
  * Produce slightly cleaner dumps in convert --export.

Mon Aug  9 19:55:11 CEST 2010  Petr Rockai <me at mornfall.net>
  * Bump hashed-storage dependency to 0.5.3.

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch332>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-__import-and-__export-to-available-flags_.dpatch
Type: text/x-darcs-patch
Size: 87618 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20100809/16806eac/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/20100809/16806eac/attachment-0001.obj>


More information about the darcs-users mailing list