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

Re: [RFC 1/5] GSOC: prepare svndump for branch detection

From
Florian Achleitner <florian.achleitner.2.6.31@gmail.com>
Date
Aug 20, 2012, 17:43 UTC
Message-ID
<3221500.GV11OifKyt@flomedio>
In-Reply-To
<20120820164530.GD168@mannheim-rule.local>
On Monday 20 August 2012 09:45:30 Jonathan Nieder wrote:
Show 12 quoted lines
> Florian Achleitner wrote:
> > Currently, the mark number is equal to the svn revision number the commit
> > corresponds to. I didn't want to break that, but not mandatory. We could
> > also split the mark namespace by reserving one or more of the most
> > significant bits as a type specifier.
> > I'll develop a marks-based version ..
> 
> Have we already exhausted possibilities that don't involve changing
> vcs-svn/ code quite so much?  One possibility mentioned before was to
> post-process the stream that svn-fe produces, which seemed appealing
> from a debuggability point of view.
> 

Do you mean like another program in the pipe, that translates the fast-import stream produced by svn-fe into another fast-import stream? svnrdump | svn-fe | svnbranchdetect | git-fast-import ?

My two previous ideas were meant like this:
1. Import everything into git and detect branches on the stuff in git, or
2. detect branches as it imports.

Both require to create commits for their work. So the idea behind these patches is to split the creation of commits from the creation of data. So that the data can be sent immediatly as it is coming in from svnrdump, and therefore save memory by not buffering it.

And create the commits later. Either all linear and splitting it into branches later which requires creating commits but not data, or creating branched commits immediatly. This requires to inspect all node data before starting a commit.

Anyways it's just an idea..
> Curious,
> Jonathan

Hope that helps, Florian

Previous: Jonathan Nieder
Message 12 of 12 in “[RFC 1/5] GSOC: prepare svndump for branch detection”
  1. Florian AchleitnerAug 17, 2012
  2. 1/5 vcs-svn: Add sha1 calculaton to fast_export and line_buffer.Florian Achleitner, Aug 17, 2012
  3. 2/5 svndump: move struct definitions to .h.Florian Achleitner, Aug 17, 2012
  4. 3/5 vcs-svn/svndump: restructure node_ctx, rev_ctx handlingFlorian Achleitner, Aug 17, 2012
  5. 4/5 vcs-svn/svndump: rewrite handle_node(), begin|end_revision()Florian Achleitner, Aug 17, 2012
  6. 5/5 vcs-svn: remove repo_treeFlorian Achleitner, Aug 17, 2012
  7. David Michael BarrAug 18, 2012
  8. Florian AchleitnerAug 20, 2012
  9. Junio C HamanoAug 20, 2012
  10. Florian AchleitnerAug 20, 2012
  11. Jonathan NiederAug 20, 2012
  12. Florian AchleitnerAug 20, 2012

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.