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

Re: Different svn-id URLs in history

From
KEKnut Eldhuset <knut@3d-radar.com>
Date
Oct 8, 2008, 06:34 UTC
Message-ID
<48EC546F.7060106@3d-radar.com>
In-Reply-To
<48EB79D8.6090908@drmicha.warpmail.net>
Michael J Gruber wrote:
Show 15 quoted lines
> Knut Eldhuset venit, vidit, dixit 07.10.2008 12:58:
>> Hi,
>>
>> After cloning my svn repository, I notice that the svn-id URL is 
>> different when going back in history:
>>
>> git-svn-id: https://server/trunk@300
>>
>> vs
>>
>> git-svn-id: https://server/trunk/some_folder/project/src@250
>>
> 
> I take this is as an invitation for guesswork (given the amount of
> details)...
Sorry about that... I'm confused.
Show 9 quoted lines
> 
> You probably have commits which don't follow your usual svn repo layout
> (trunk/some_folder/project/src) but commit to trunk/ directly. The output of
> 
> svn log -v -r300 https://server/trunk@300
> svn log -v -r250 https://server/trunk/some_folder/project/src@250
> 
> should give some clues.
> 

Svn log shows that the same path has been modified in both cases. I see something strange in git, though. Our svn repository has about 6500 commits, but git shows over 10.000. Further investigation shows that a lot of svn commits have two entries in git. Some branches off of trunk do not start at r1, but off of a duplicate rNNNN. Could this be due to our unhealthy practice of creating branches off of subtrees in svn? By this I mean create a branch off of https://server/trunk/some_folder/project/src instead of https://server/trunk. If so, what can be done to fix this?

As a sidenote, during git svn clone, I noticed that each time a new branch or tag was discovered, the "scanning" started back at r1. Is this normal? I would think the history before the branch was already imported. Of course, this could maybe be due to the bad branching practice described above.

Regards, Knut

Previous: Michael J GruberNext: Michael J Gruber
Message 3 of 9 in “Different svn-id URLs in history”
  1. Knut EldhusetOct 7, 2008
  2. Michael J GruberOct 7, 2008
  3. Knut EldhusetOct 8, 2008
  4. Michael J GruberOct 8, 2008
  5. Knut EldhusetOct 8, 2008
  6. Knut EldhusetOct 8, 2008
  7. Michael J GruberOct 9, 2008
  8. Knut EldhusetOct 10, 2008
  9. Knut EldhusetOct 9, 2008

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.