[darcs-users] [ANNOUNCE] darcs-fast-export

Miklos Vajna vmiklos at frugalware.org
Sun Nov 23 03:29:45 UTC 2008


On Tue, Nov 11, 2008 at 02:30:15PM +1100, "Trent W. Buck" <trentbuck at gmail.com> wrote:
> Miklos Vajna <vmiklos at frugalware.org> writes:
> > I'm happy to announce a small project I recently stated to work
> > on. It's a darcs backend for fast importers.
> >
> > This means that it allows you to export patches/commits from a darcs
> > repo and import to any version control system where a fast importer is
> > implemented.
> 
> Is there such a "fast importer" implementation for Darcs?

OK, there is now, in the last few days I worked on this a lot. :-)

The next version (not yet released, but available in source control)
version comes with a darcs-fast-import script as well.

> If so, when you compose the export and import procedures, are the input
> and output repositories congruent?

When you export a repo to this "fast-import stream" format, then import
it to darcs again the repo is almost the same. Known differences are:

- the fast-import stream requires you to have the author in a "foo
  <bar>" format, so in case the original darcs repo had author formats
  like a single mail address there will a "user at domain.org" vs "user
  <user at domain.org>" difference and such.

- conflicts are dropped, just like during the darcs1 -> darcs2
  conversion (but of course result is the same)

To make life easier I also created a wrapper script called x2d, which
can convert git, hg and bzr repos to darcs using darcs-fast-import. It
support incremental import as well.

I have some (23 at the moment) unit tests for this, but feedback is
always welcome - probably not all cases are covered by my test scripts.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20081123/4a4bc745/attachment.pgp 


More information about the darcs-users mailing list