[darcs-devel] [patch1111] implement log --fast-export to output git-fast-import ...

Guillaume Hoffmann bugs at darcs.net
Tue Jan 21 16:57:56 UTC 2014


Guillaume Hoffmann <guillaumh at gmail.com> added the comment:

Thanks for the report, Gwern.  The permissions issue seems to come from the fact that all files are exported with permission 0644. Darcs does not track permissions, what we could do is to provide a --set-scripts-executable flag.  The unicode filename issue is probably easy to fix.  I have been working on porting back the --import code up to now.

I'm sending a whole new version of the patch. Let me explain why with a little of history.

In the discussion of patch332 (from August 2010), Petr Rockai proposed convert --import/--export as part of the convert command. After a couple of comments by Eric and Ganesh, Petr wrote a separate darcs-fastconvert program (http://hackage.haskell.org/package/darcs-fastconvert), based on libdarcs.

I want to point out now that 1) in the discussion of patch332, there is no strong opposition against having fast-import/export features inside of darcs; yes, there are a few objections, but nothing definitive. 2) The discussion occurred in 2010, when somehow we still had the human resources to handle maintenance of a separate fastconvert program, but as can be seen from hackage, darcs-fastconvert's last version is from Feb. 2011, and we know what happens each time a new GHC version is released.

Worst, we do have some code duplication between darcs-fastconvert (unmaintained) and Owen's darcs-bridge (newer and almost maintained).

So my stance on this issue is that we should have fast-import/export built-in darcs as subcommands of convert, and that we should remove darcs-fastconvert from HackageDB once it is done.

The patch I've sent is a port of Petr's darcs-fastconvert code, inspired by its original (patch332) bundle, and with a couple of changes transplanted from Owen's darcs-bridge.

Comments are welcome, I'm not screening this yet.

1 patch for repository http://darcs.net:

Tue Jan 21 13:54:59 ART 2014  Guillaume Hoffmann <guillaumh at gmail.com>
  * Implement convert --export and --import for git conversion
  Port of code by Petr Rockai and Owen Stephens.

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch1111>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-preview.txt
Type: text/x-darcs-patch
Size: 34982 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20140121/33f2422f/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implement-convert-__export-and-__import-for-git-conversion.dpatch
Type: application/x-darcs-patch
Size: 38256 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20140121/33f2422f/attachment-0003.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-devel/attachments/20140121/33f2422f/attachment-0001.obj>


More information about the darcs-devel mailing list