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

Re: help needed: Splitting a git repository after subversion migration

From
Thomas Jarosch <thomas.jarosch@intra2net.com>
Date
Dec 8, 2008, 17:34 UTC
Message-ID
<200812081834.26688.thomas.jarosch@intra2net.com>
In-Reply-To
<20081208142447.GA20186@atjola.homenet>
On Monday, 8. December 2008 15:24:47 you wrote:
> If it's about huge objects, and not just lots of small objects, you can
> use this:

Thanks, those two commands have been really helpful. I've found some objects that shouldn't be there and now I have two more questions:

1. When I run "git rev-list --all --objects", I can see file names that look 
like "SVN-branchname/directory/filename". Is it normal that "git svn"
creates a directory with the name of the branch and puts files below it?

"git rev-list --all --objects |grep 5-0-3-hotfix": 5fe3265b6941c2fa74c12da799ea23e2801efa8a 5-0-3-hotfix/source ...

The branch in question existed for a limited time in branches/xyz on the SVN tree and was deleted later on. Guessing the version number from the filename, it looks like a copy of the files when I started the branch as it's an old version number before I committed changes to it. (f.e. upgraded libpng). When I just grep for "libpng" on the whole index, I see all the various updates I made over the years.

2. Something goes wrong after the filter branch:

Output from the full 11GB tree: git rev-list --all --objects |grep 5-0-3-hotfix |grep xyz -> No match

Output from the filtered tree: git rev-list --all --objects |grep 5-0-3-hotfix |grep xyz

3a13f87bc116aee96e031441eaafc416652ba4bd 5-0-3-hotfix/update_pkg/xyz ebebb84ccff26c949fb1f803c60034074e6603fe 5-0-3-hotfix/update_pkg/xyz 5529ef51de887cc905fe460e4c4f6cd34b93b5a6 5-0-3-hotfix/update_pkg/xyz c264a9d5db30ebb131c96c4f93192bfe9a5c0a7b 5-0-3-hotfix/update_pkg/xyz

I have no idea how those objects suddenly appeared there. It feels like something was stitched together wrongly.

When I converted the SVN tag to a git tag, I tagged the branches with a "branch-" prefix. Might that be a problem, is "branch-" reserved?

Cheers, Thomas

Previous: Björn SteinbrinkNext: Thomas Jarosch
Message 4 of 8 in “help needed: Splitting a git repository after subversion migration”
  1. Thomas JaroschDec 7, 2008
  2. Michael J GruberDec 8, 2008
  3. Björn SteinbrinkDec 8, 2008
  4. Thomas JaroschDec 8, 2008
  5. Thomas JaroschDec 10, 2008
  6. Björn SteinbrinkDec 11, 2008
  7. Thomas JaroschDec 12, 2008
  8. Björn SteinbrinkDec 12, 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.