{"thread":{"id":"19577","subject":"git-svn fetch","startedAt":"2009-05-29T15:09:58Z","lastAt":"2009-05-29T20:31:07Z","messageCount":3,"participants":["Doki Pen","Michael J Gruber","doki_pen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"115018","messageId":"gvots5$uob$1@ger.gmane.org","threadId":"19577","inReplyTo":null,"subject":"git-svn fetch","fromName":"Doki Pen","fromEmail":"doki_pen@doki-pen.org","sentAt":"2009-05-29T15:09:58Z","receivedAt":"2009-05-29T15:09:58Z","isPatch":false,"sender":{"key":"doki_pen@doki-pen.org","avatar":"https://gravatar.com/avatar/9723c8c8c66070b9a61d5ecd8670618fb039acc828b535845942f2499b2500a8?d=mp&s=160"},"body":"I'm sorry if this has been brought up before, I did look through the \narchive and didn't see it.  \n\nI am working with a repo that has about 7000 commits and about 100 \nbranches/tags.  I've been using git-svn for about 4 months now and love \nit.  The problem I'm experiencing is that everytime a new branch is added, \ngit svn fetch seems to download the entire history all the way from r1.  \nIs this the expected behavior?  If so, why is that?  Don't we already have \nthe old revisions from trunk and other branches?  \n"},{"id":"115019","messageId":"4A20090F.3070608@drmicha.warpmail.net","threadId":"19577","inReplyTo":"gvots5$uob$1@ger.gmane.org","subject":"Re: git-svn fetch","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2009-05-29T16:10:55Z","receivedAt":"2009-05-29T16:10:55Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Doki Pen venit, vidit, dixit 29.05.2009 17:09:\n> I'm sorry if this has been brought up before, I did look through the \n> archive and didn't see it.  \n> \n> I am working with a repo that has about 7000 commits and about 100 \n> branches/tags.  I've been using git-svn for about 4 months now and love \n> it.  The problem I'm experiencing is that everytime a new branch is added, \n> git svn fetch seems to download the entire history all the way from r1.  \n> Is this the expected behavior?  If so, why is that?  Don't we already have \n> the old revisions from trunk and other branches?  \n> \n\nAFAIK git-svn has to go back in order to search for possible earlier\nhistory of $newbranch. For git-svn, the following two scenarios are\nbasically equivalent:\n\n- a new branch is added to the svn repo\n- you change your git-svn config so that a new branch becomes\n\"interesting\" (which had been skipped before)\n\ngit-svn treats them the same way (\"a branch we don't know about yet\"),\nbecause it can't really (reliably) distinguish between them.\n\nMichael\n"},{"id":"115046","messageId":"4A20460B.8030709@doki-pen.org","threadId":"19577","inReplyTo":"4A20090F.3070608@drmicha.warpmail.net","subject":"Re: git-svn fetch","fromName":"doki_pen","fromEmail":"doki_pen@doki-pen.org","sentAt":"2009-05-29T20:31:07Z","receivedAt":"2009-05-29T20:31:07Z","isPatch":false,"sender":{"key":"doki_pen@doki-pen.org","avatar":"https://gravatar.com/avatar/9723c8c8c66070b9a61d5ecd8670618fb039acc828b535845942f2499b2500a8?d=mp&s=160"},"body":"Michael J Gruber wrote:\n> Doki Pen venit, vidit, dixit 29.05.2009 17:09:\n>   \n[snip]\n>> The problem I'm experiencing is that everytime a new branch is added, \n>> git svn fetch seems to download the entire history all the way from r1. \n[snip]\n>\n> AFAIK git-svn has to go back in order to search for possible earlier\n> history of $newbranch. For git-svn, the following two scenarios are\n> basically equivalent:\n>\n> - a new branch is added to the svn repo\n> - you change your git-svn config so that a new branch becomes\n> \"interesting\" (which had been skipped before)\n>\n> git-svn treats them the same way (\"a branch we don't know about yet\"),\n> because it can't really (reliably) distinguish between them.\n>   \n\nTurns out that in their infinite wisdom, the repo gods laid out the \nstructure like this:\n\n/trunk\n  /Source\n     [THECODE]\n  /SomethingElse\n  /SomeOtherStuff\n/branches\n  /BRANCH-1\n     [THECODE]\n  /...\n\nThe problem was I had trunk set to /trunk and not /trunk/Source.  This \nwas a bad mistake.  Since I have fixed it git-svn is quite a bit faster!\n\nTY\n"}]}