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

Re: Migrating from subversion via git svn contains log entry, but not the file change in the branch.

From
Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>
Date
May 3, 2010, 12:52 UTC
Message-ID
<p2g86ecb3c71005030552odafaa805ob43f7f0c8a9be0b8@mail.gmail.com>
In-Reply-To
<4BDEC3AE.90409@drmicha.warpmail.net>
On 3 May 2010 13:38, Michael J Gruber <git@drmicha.warpmail.net> wrote:
Show 30 quoted lines
> magnuspalmer venit, vidit, dixit 03.05.2010 14:25:
>>
>> I've been working almost fulltime for two weeks migrating a subversion
>> repository to git.
>> Most repos go fine, but some doesn't and I'm running out of options.
>>
>> Been trying to find posts regarding this and tried what I've found.
>>
>> The subversion repo contains subrepos.
>> Layout is this:
>> tags
>> branches
>> <trunk is in root dir, contains only a maven pom.xml>
>> subrepo-a(with standard layout: trunk, tags, branches)
>> subrepo-n
>>
>> Team is doing ongoing development in currently four branches (develop,
>> release-product-a-1.1, release-product-b-1.0, trunk). I'll deal with that
>> later.
>>
>> What happends is that I get the svn log message, but the file is not the
>> correct one, or the file is completely missing suddenly.
>> git checkout develop
>> HEAD is now at 5269d17... increased version to 1.2.0-SNAPSHOT.
>>
>> The change in the file is not there, the old version number in the pom.xml.
>> I compare this with the one checkout out via svn.
>>
>> git svn init --trunk='' --tags=tags/*/* --branches=branches --prefix=svn/
>

I've actually just edited .git/config and then did git svn init URL. Found this easier for complex layouts, cause then you can control everything that is happening.

[svn-remote "svn"]
        url = http://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64
        fetch = trunk:refs/remotes/trunk
        branches = {experimental,web}:refs/remotes/*
        tags = branches/releases/*:refs/remotes/releases/*
        fetch = :refs/remotes/git-svn
Previous: Michael J GruberNext: magnuspalmer
Message 3 of 7 in “Migrating from subversion via git svn contains log entry, but not the file change in the branch.”
  1. magnuspalmerMay 3, 2010
  2. Michael J GruberMay 3, 2010
  3. Dmitrijs LedkovsMay 3, 2010
  4. magnuspalmerMay 4, 2010
  5. magnuspalmerMay 3, 2010
  6. magnuspalmerMay 4, 2010
  7. magnuspalmerMay 4, 2010

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.