git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: darcs2git.py - convert darcs repository using gfi

From
Han-Wen Nienhuys <hanwen@xs4all.nl>
Date
Feb 13, 2007, 22:42 UTC
Message-ID
<45D23EC6.9000806@xs4all.nl>
In-Reply-To
<20070212011401.GK31488@spearce.org>
Shawn O. Pearce escreveu:
Show 5 quoted lines
>> 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.

Show 6 quoted lines
> 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@xs4all.nl - http://www.xs4all.nl/~hanwen
Previous: Shawn O. PearceNext: Han-Wen Nienhuys
Message 3 of 5 in “darcs2git.py - convert darcs repository using gfi”
  1. Han-Wen NienhuysFeb 11, 2007
  2. Shawn O. PearceFeb 12, 2007
  3. Han-Wen NienhuysFeb 13, 2007
  4. git-fast-export ?Han-Wen Nienhuys, Feb 18, 2007
  5. Shawn O. PearceFeb 19, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.