[darcs-users] currently preferred way to import history from Git
Ben Franksen
ben.franksen at online.de
Fri Jan 23 16:16:00 UTC 2015
Ivan Zakharyaschev wrote:
> 2015-01-22 9:53 UTC+03:00, Ganesh Sittampalam <ganesh at earth.li>:
>
>> 'darcs convert' is currently supported.
>
> So, I believe 'darcs convert --import' doesn't have the notion of Git
> branches, does it? (At least, there are no examples of using 'darcs
> convert --import' on the wiki at all, so I can only guess.)
>
> Then, I believe, I should proceed as follows if I want to import Git
> branches AB, A, B from repo "repo", such that AB has been merged into
> A and into B:
>
> mkdir repo_darcsimport
> cd repo_darcsimport
>
> 1. import AB into a darcs directory ("AB"):
>
> mkdir AB
> cd AB
> (cd ../../repo; git fast-export AB) | darcs convert import
> cd ..
>
> 2. import the complement of AB w.r.t. A into "A"
>
> darcs get AB A
> cd A
> (cd ../../repo; git fast-export AB..A) | darcs convert import
> cd ..
>
>
> 2. import the complement of AB w.r.t. B into "B" (analoguosly)
>
> Correct?
Yes, that should work, assuming that AB indeed refers to the "splitting
point" beyond which A and B differ.
Cheers & good luck with your conversion!
Ben
More information about the darcs-users
mailing list