{"thread":{"id":"28174","subject":"git svn --stdlayout 's little quirk.","startedAt":"2011-08-20T17:06:28Z","lastAt":"2011-08-23T06:09:27Z","messageCount":8,"participants":["Hin-Tak Leung","Eric Wong","Michael J Gruber","Andreas Krey"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"173920","messageId":"1313859988.60143.YahooMailClassic@web29518.mail.ird.yahoo.com","threadId":"28174","inReplyTo":null,"subject":"git svn --stdlayout 's little quirk.","fromName":"Hin-Tak Leung","fromEmail":"htl10@users.sourceforge.net","sentAt":"2011-08-20T17:06:28Z","receivedAt":"2011-08-20T17:06:28Z","isPatch":false,"sender":{"key":"htl10@users.sourceforge.net","avatar":null},"body":"first of all, thanks for a great tool - use it daily!\n\nI think I found a small bug in git 1.7.6. Having \"trunk\" at the end of the url in combination of --stdlayout is wrong, but it looks like that git-svn tries to cope, but doesn't go try far enough:\n\nDoing this:\n----------------\ngit svn clone --stdlayout http://quick-settings.googlecode.com/svn/trunk/ android-quick-settings\n----------------\n\nGives this message and stops:\n----------------\nInitialized empty Git repository in /home/Hin-Tak/tmp-git/svn-imports/android-quick-settings/.git/\nUsing higher level of URL: http://quick-settings.googlecode.com/svn/trunk => http://quick-settings.googlecode.com/svn\n----------------\n\nWhen I saw the message I thought it is striping the ending 'trunk' for my convenience, but when I look at .git/config:\n\n--------------------\n$ more .git/config \n[core]\n\trepositoryformatversion = 0\n\tfilemode = true\n\tbare = false\n\tlogallrefupdates = true\n[svn-remote \"svn\"]\n\turl = http://quick-settings.googlecode.com/svn\n\tfetch = trunk/trunk:refs/remotes/trunk\n\tbranches = trunk/branches/*:refs/remotes/*\n\ttags = trunk/tags/*:refs/remotes/tags/*\n------------------\n\nIt is doing 'trunk/trunk', etc, which is why it stopped.\n\nCan it either clone correctly despite the wrong instruction, or fail with a better message than 'Using higher level...' which suggests it tried?\n"},{"id":"173926","messageId":"20110820183504.GA32179@dcvr.yhbt.net","threadId":"28174","inReplyTo":"1313859988.60143.YahooMailClassic@web29518.mail.ird.yahoo.com","subject":"Re: git svn --stdlayout 's little quirk.","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2011-08-20T18:35:04Z","receivedAt":"2011-08-20T18:35:04Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Hin-Tak Leung <htl10@users.sourceforge.net> wrote:\n> first of all, thanks for a great tool - use it daily!\n\nYou're welcome :>\n\n> I think I found a small bug in git 1.7.6. Having \"trunk\" at the end of\n> the url in combination of --stdlayout is wrong, but it looks like that\n> git-svn tries to cope, but doesn't go try far enough:\n> \n> Doing this:\n> ----------------\n> git svn clone --stdlayout http://quick-settings.googlecode.com/svn/trunk/ android-quick-settings\n\n--stdlayout expects the \"root\" path of the code you're interested\nin (not necessarily the SVN repository root, but in this case they\ncould be the same).\n\nTry the following instead:\n\ngit svn clone --stdlayout \\\n  http://quick-settings.googlecode.com/svn android-quick-settings\n\n-- \nEric Wong\n"},{"id":"173955","messageId":"1313919482.36626.YahooMailClassic@web29501.mail.ird.yahoo.com","threadId":"28174","inReplyTo":"20110820183504.GA32179@dcvr.yhbt.net","subject":"Re: git svn --stdlayout 's little quirk.","fromName":"Hin-Tak Leung","fromEmail":"htl10@users.sourceforge.net","sentAt":"2011-08-21T09:38:02Z","receivedAt":"2011-08-21T09:38:02Z","isPatch":false,"sender":{"key":"htl10@users.sourceforge.net","avatar":null},"body":"--- On Sat, 20/8/11, Eric Wong <normalperson@yhbt.net> wrote:\n\n> > I think I found a small bug in git 1.7.6. Having\n> \"trunk\" at the end of\n> > the url in combination of --stdlayout is wrong, but it\n> looks like that\n> > git-svn tries to cope, but doesn't go try far enough:\n> > \n> > Doing this:\n> > ----------------\n> > git svn clone --stdlayout http://quick-settings.googlecode.com/svn/trunk/\n> android-quick-settings\n> \n> --stdlayout expects the \"root\" path of the code you're\n> interested\n> in (not necessarily the SVN repository root, but in this\n> case they\n> could be the same).\n> \n> Try the following instead:\n> \n> git svn clone --stdlayout \\\n>   http://quick-settings.googlecode.com/svn\n> android-quick-settings\n\nI know this is the correct way - what I meant was that, having \"trunk\" at the end is wrong but git-svn appears to try to correct it automatically, but haven't quite succceeded.\n\nHin-Tak \n"},{"id":"174005","messageId":"4E521AD3.4040204@drmicha.warpmail.net","threadId":"28174","inReplyTo":"1313919482.36626.YahooMailClassic@web29501.mail.ird.yahoo.com","subject":"Re: git svn --stdlayout 's little quirk.","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2011-08-22T09:01:07Z","receivedAt":"2011-08-22T09:01:07Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Hin-Tak Leung venit, vidit, dixit 21.08.2011 11:38:\n> --- On Sat, 20/8/11, Eric Wong <normalperson@yhbt.net> wrote:\n> \n>>> I think I found a small bug in git 1.7.6. Having\n>> \"trunk\" at the end of\n>>> the url in combination of --stdlayout is wrong, but it\n>> looks like that\n>>> git-svn tries to cope, but doesn't go try far enough:\n>>>\n>>> Doing this:\n>>> ----------------\n>>> git svn clone --stdlayout http://quick-settings.googlecode.com/svn/trunk/\n>> android-quick-settings\n>>\n>> --stdlayout expects the \"root\" path of the code you're\n>> interested\n>> in (not necessarily the SVN repository root, but in this\n>> case they\n>> could be the same).\n>>\n>> Try the following instead:\n>>\n>> git svn clone --stdlayout \\\n>>   http://quick-settings.googlecode.com/svn\n>> android-quick-settings\n> \n> I know this is the correct way - what I meant was that, having \"trunk\" at the end is wrong but git-svn appears to try to correct it automatically, but haven't quite succceeded.\n\nIt is not trying to do that at all. git-svn is trying to figure out what\nthe \"base path\" is in an svn repo which possibly hosts multiple repos,\nand that is what the message reports.\n\nMichael\n"},{"id":"174019","messageId":"1314025898.45043.YahooMailClassic@web29503.mail.ird.yahoo.com","threadId":"28174","inReplyTo":"4E521AD3.4040204@drmicha.warpmail.net","subject":"Re: git svn --stdlayout 's little quirk.","fromName":"Hin-Tak Leung","fromEmail":"htl10@users.sourceforge.net","sentAt":"2011-08-22T15:11:38Z","receivedAt":"2011-08-22T15:11:38Z","isPatch":false,"sender":{"key":"htl10@users.sourceforge.net","avatar":null},"body":"--- On Mon, 22/8/11, Michael J Gruber <git@drmicha.warpmail.net> wrote:\n\n> Hin-Tak Leung venit, vidit, dixit\n> 21.08.2011 11:38:\n> > --- On Sat, 20/8/11, Eric Wong <normalperson@yhbt.net>\n> wrote:\n> > \n> >>> I think I found a small bug in git 1.7.6.\n> Having\n> >> \"trunk\" at the end of\n> >>> the url in combination of --stdlayout is\n> wrong, but it\n> >> looks like that\n> >>> git-svn tries to cope, but doesn't go try far\n> enough:\n> >>>\n> >>> Doing this:\n> >>> ----------------\n> >>> git svn clone --stdlayout http://quick-settings.googlecode.com/svn/trunk/\n> >> android-quick-settings\n> >>\n> >> --stdlayout expects the \"root\" path of the code\n> you're\n> >> interested\n> >> in (not necessarily the SVN repository root, but\n> in this\n> >> case they\n> >> could be the same).\n> >>\n> >> Try the following instead:\n> >>\n> >> git svn clone --stdlayout \\\n> >>   http://quick-settings.googlecode.com/svn\n> >> android-quick-settings\n> > \n> > I know this is the correct way - what I meant was\n> that, having \"trunk\" at the end is wrong but git-svn appears\n> to try to correct it automatically, but haven't quite\n> succceeded.\n> \n> It is not trying to do that at all. git-svn is trying to\n> figure out what\n> the \"base path\" is in an svn repo which possibly hosts\n> multiple repos,\n> and that is what the message reports.\n\nOkay... thanks for clarifying that. Maybe it could try to be clever? Afterall, --stdlayout isn't compatible with a URL ending in \"trunk\" (or having 'trunk' as part of the URL). Just a suggestion.\n\nHin-Tak\n"},{"id":"174021","messageId":"4E52759E.3020005@drmicha.warpmail.net","threadId":"28174","inReplyTo":"1314025898.45043.YahooMailClassic@web29503.mail.ird.yahoo.com","subject":"Re: git svn --stdlayout 's little quirk.","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2011-08-22T15:28:30Z","receivedAt":"2011-08-22T15:28:30Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Hin-Tak Leung venit, vidit, dixit 22.08.2011 17:11:\n> --- On Mon, 22/8/11, Michael J Gruber <git@drmicha.warpmail.net> wrote:\n> \n>> Hin-Tak Leung venit, vidit, dixit\n>> 21.08.2011 11:38:\n>>> --- On Sat, 20/8/11, Eric Wong <normalperson@yhbt.net>\n>> wrote:\n>>>\n>>>>> I think I found a small bug in git 1.7.6.\n>> Having\n>>>> \"trunk\" at the end of\n>>>>> the url in combination of --stdlayout is\n>> wrong, but it\n>>>> looks like that\n>>>>> git-svn tries to cope, but doesn't go try far\n>> enough:\n>>>>>\n>>>>> Doing this:\n>>>>> ----------------\n>>>>> git svn clone --stdlayout http://quick-settings.googlecode.com/svn/trunk/\n>>>> android-quick-settings\n>>>>\n>>>> --stdlayout expects the \"root\" path of the code\n>> you're\n>>>> interested\n>>>> in (not necessarily the SVN repository root, but\n>> in this\n>>>> case they\n>>>> could be the same).\n>>>>\n>>>> Try the following instead:\n>>>>\n>>>> git svn clone --stdlayout \\\n>>>>    http://quick-settings.googlecode.com/svn\n>>>> android-quick-settings\n>>>\n>>> I know this is the correct way - what I meant was\n>> that, having \"trunk\" at the end is wrong but git-svn appears\n>> to try to correct it automatically, but haven't quite\n>> succceeded.\n>>\n>> It is not trying to do that at all. git-svn is trying to\n>> figure out what\n>> the \"base path\" is in an svn repo which possibly hosts\n>> multiple repos,\n>> and that is what the message reports.\n> \n> Okay... thanks for clarifying that. Maybe it could try to be clever? Afterall, --stdlayout isn't compatible with a URL ending in \"trunk\" (or having 'trunk' as part of the URL). Just a suggestion.\n\nYou *could* have this layout:\n\nfoo/trunk/trunk\nfoo/trunk/tags/v1\nfoo/trunk/tags/v2\n\nThat's a perfectly valid layout. The fact that it is stupidly named\nshould not activate git-svn magic.\n\nMichael\n"},{"id":"174023","messageId":"1314028647.33750.YahooMailClassic@web29502.mail.ird.yahoo.com","threadId":"28174","inReplyTo":"4E52759E.3020005@drmicha.warpmail.net","subject":"Re: git svn --stdlayout 's little quirk.","fromName":"Hin-Tak Leung","fromEmail":"htl10@users.sourceforge.net","sentAt":"2011-08-22T15:57:27Z","receivedAt":"2011-08-22T15:57:27Z","isPatch":false,"sender":{"key":"htl10@users.sourceforge.net","avatar":null},"body":"--- On Mon, 22/8/11, Michael J Gruber <git@drmicha.warpmail.net> wrote:\n\n> >> It is not trying to do that at all. git-svn is\n> trying to\n> >> figure out what\n> >> the \"base path\" is in an svn repo which possibly\n> hosts\n> >> multiple repos,\n> >> and that is what the message reports.\n> > \n> > Okay... thanks for clarifying that. Maybe it could try\n> to be clever? Afterall, --stdlayout isn't compatible with a\n> URL ending in \"trunk\" (or having 'trunk' as part of the\n> URL). Just a suggestion.\n> \n> You *could* have this layout:\n> \n> foo/trunk/trunk\n> foo/trunk/tags/v1\n> foo/trunk/tags/v2\n> \n> That's a perfectly valid layout. The fact that it is\n> stupidly named\n> should not activate git-svn magic.\n\nFair enough. Perhaps --stdlayout in combination with URL having \"trunk\" in the name can emit a warning? e.g. \"are you sure? That looks a bit stupidly named\". I wrote because I think git-svn could either try a bit harder at guessing, or be a bit clearer about the repository not conforming to a standard layout (if the URL is wrong).\n\nHin-Tak\n"},{"id":"174076","messageId":"20110823060927.GA26358@inner.h.iocl.org","threadId":"28174","inReplyTo":"4E52759E.3020005@drmicha.warpmail.net","subject":"Re: git svn --stdlayout 's little quirk.","fromName":"Andreas Krey","fromEmail":"a.krey@gmx.de","sentAt":"2011-08-23T06:09:27Z","receivedAt":"2011-08-23T06:09:27Z","isPatch":false,"sender":{"key":"a.krey@gmx.de","avatar":"https://avatars.githubusercontent.com/u/37810?v=4"},"body":"On Mon, 22 Aug 2011 17:28:30 +0000, Michael J Gruber wrote:\n...\n> You *could* have this layout:\n> \n> foo/trunk/trunk\n> foo/trunk/tags/v1\n> foo/trunk/tags/v2\n\nWe *do*. Ok, it's more like dev/trunk/mod/submod/trunk (and sometimes with\neven more trunks). Stupid historical accident.\n\nAndreas\n\n-- \n\"Totally trivial. Famous last words.\"\nFrom: Linus Torvalds <torvalds@*.org>\nDate: Fri, 22 Jan 2010 07:29:21 -0800\n"}]}