Re: darcs2git.py - convert darcs repository using gfi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Shawn O. Pearce escreveu:
>> The python script attached is a try at providing a sane
>> conversion from Darcs to GIT.  It tries to map darcs conflict
>> resolutions onto git branch merges.
> 
> Impressive.

If anyone's interested I've hacked at it some more, 
and the result is at 

  http://repo.or.cz/w/darcs2git.git

I've further improved the script so it generates nicer 
bifurcations, and does the conversion more incrementally as 
possible, and can be considered fast (as far as any darcs project
can be called fast) 

I've successfully converted a project containing
3000 patches with it.  

> This is harder than it sounds.  fast-import internally is built
> around the assumption of a branch, which has a name, and which lives
> in the branch LRU.  With the "from" command restriction lifted
> you can just import every single commit onto the same hardcoded
> branch name (e.g. DARCS_HEAD) then delete it when you are done
> (e.g. rm .git/DARCS_HEAD).  That's basically the same thing as an

will this be in git v1.5 ?

-- 
 Han-Wen Nienhuys - hanwen@xxxxxxxxx - http://www.xs4all.nl/~hanwen

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]