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

Re: git-svn and migration

From
Steven Walter <stevenrwalter@gmail.com>
Date
Dec 19, 2007, 17:54 UTC
Message-ID
<20071219175447.GB15898@dervierte>
In-Reply-To
<320075ff0712190850r35263bcfv1d8f84e699208e15@mail.gmail.com>
On Wed, Dec 19, 2007 at 04:50:30PM +0000, Nigel Magnay wrote:
Show 6 quoted lines
> Has anyone got any tips as I'm sure it's a path trodden before? I've
> seen examples of keeping a read-only svn, but that's not really what
> I'm after. I'm considering whether to have a central git repo
> regularly pull from svn so that it's up to date, and having us
> possibly push to svn (or git if it's not merged to trunk) as an
> interim step..

Using a central git repo that is kept uptodate with svn is the approach I've used. git-svn isn't especially keen on this mode of operation, however. After every fetch, you have to reset refs/remotes/trunk to origin/master, which it turn puts .git/svn out of date (you can blow it away and run "git svn fetch" to regenerate it).

I wrote a script that automates most of this stuff (including doing incremental additions to git-svn's revdb/revmap). If there's interest, I can see about cleaning it up for general consumption.

-- 
-Steven Walter <stevenrwalter@gmail.com>
Freedom is the freedom to say that 2 + 2 = 4
B2F1 0ECC E605 7321 E818  7A65 FC81 9777 DC28 9E8F 
Previous: Nigel MagnayNext: Miklos Vajna
Message 2 of 5 in “git-svn and migration”
  1. Nigel MagnayDec 19, 2007
  2. Steven WalterDec 19, 2007
  3. Miklos VajnaDec 19, 2007
  4. Nigel MagnayDec 19, 2007
  5. Seth FalconDec 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.