{"thread":{"id":"8660","subject":"git-svn strangeness with tags and Squirrelmail repo","startedAt":"2007-06-20T05:05:29Z","lastAt":"2007-06-20T10:33:17Z","messageCount":4,"participants":["Martin Langhoff","Eric Wong","Peter Baumann"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"45403","messageId":"46a038f90706192205y71a77f5al5ca199b3ac382d71@mail.gmail.com","threadId":"8660","inReplyTo":null,"subject":"git-svn strangeness with tags and Squirrelmail repo","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2007-06-20T05:05:29Z","receivedAt":"2007-06-20T05:05:29Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"First -- kudos to Eric Wong and company: git-svn can deal with the odd\nerrors and invalid chunks of XML or UTF-8 that SVN spits at me every\nonce in a while. And it \"just works\" in 99% of the situation. Great\nstuff.\n\nNow... on to my 1% where it doesn't \"just work\"... I am trying to get\na working svn to git gateway for Squirrelmail, and getting in trouble\nwith the tags setting...\n\n  git --version\n  git version 1.5.2.2.238.g7cbf2f2\n\nFor starters - it \"just works\" if I run\n  git svn init  -T trunk -t tags -b branches \\\n   http://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail\n git svn fetch\n\nHowever, every tree (for tags, branches and trunk) is prefixed with\n\"squirrelmail\" and commits to the toplevel \"plugins\" directory get in\nthe way. Also, I want the branches and tags to appear in more natural\nplaces, so after init, and before fetch, I change .git/config to say:\n\n   [svn-remote \"svn\"]\n        url = http://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail\n        fetch = trunk/squirrelmail:refs/heads/svn/trunk\n        branches = branches/*/squirrelmail:refs/heads/svn/*\n        tags = tags/*/squirrelmail:refs/tags/svn/*\n\nand when I do that -- trunk and branches do what I want, but tags\naren't imported anymore. :-/\n\ncheers,\n\n\nmartin\n"},{"id":"45416","messageId":"20070620072446.GC25010@muzzle","threadId":"8660","inReplyTo":"46a038f90706192205y71a77f5al5ca199b3ac382d71@mail.gmail.com","subject":"Re: git-svn strangeness with tags and Squirrelmail repo","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2007-06-20T07:24:46Z","receivedAt":"2007-06-20T07:24:46Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Martin Langhoff <martin.langhoff@gmail.com> wrote:\n> First -- kudos to Eric Wong and company: git-svn can deal with the odd\n> errors and invalid chunks of XML or UTF-8 that SVN spits at me every\n> once in a while. And it \"just works\" in 99% of the situation. Great\n> stuff.\n\nYou're welcome.  At the same time I'm not reallu sure what you mean by\n\"odd errors and invalid chunks of XML or UTF-8 that SVN spits at me\"\nunless it's some joke about SVN I'm not getting :)\n\n> Now... on to my 1% where it doesn't \"just work\"... I am trying to get\n> a working svn to git gateway for Squirrelmail, and getting in trouble\n> with the tags setting...\n> \n>  git --version\n>  git version 1.5.2.2.238.g7cbf2f2\n> \n> For starters - it \"just works\" if I run\n>  git svn init  -T trunk -t tags -b branches \\\n>   http://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail\n> git svn fetch\n> \n> However, every tree (for tags, branches and trunk) is prefixed with\n> \"squirrelmail\" and commits to the toplevel \"plugins\" directory get in\n> the way. Also, I want the branches and tags to appear in more natural\n> places, so after init, and before fetch, I change .git/config to say:\n> \n>   [svn-remote \"svn\"]\n>        url = http://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail\n>        fetch = trunk/squirrelmail:refs/heads/svn/trunk\n>        branches = branches/*/squirrelmail:refs/heads/svn/*\n>        tags = tags/*/squirrelmail:refs/tags/svn/*\n\ngit-svn expects 'refs/remotes/' in the local ref name.  Otherwise,\nthe left-hand side is correct.\n\n> and when I do that -- trunk and branches do what I want, but tags\n> aren't imported anymore. :-/\n\nNow its odd to me that trunks and branches even works with those ref\nnames.\n\n-- \nEric Wong\n"},{"id":"45424","messageId":"46a038f90706200213p2d1e3ba3nf58107584afe4901@mail.gmail.com","threadId":"8660","inReplyTo":"20070620072446.GC25010@muzzle","subject":"Re: git-svn strangeness with tags and Squirrelmail repo","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2007-06-20T09:13:18Z","receivedAt":"2007-06-20T09:13:18Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"On 6/20/07, Eric Wong <normalperson@yhbt.net> wrote:\n> Martin Langhoff <martin.langhoff@gmail.com> wrote:\n> > First -- kudos to Eric Wong and company: git-svn can deal with the odd\n> > errors and invalid chunks of XML or UTF-8 that SVN spits at me every\n> > once in a while. And it \"just works\" in 99% of the situation. Great\n> > stuff.\n>\n> You're welcome.  At the same time I'm not reallu sure what you mean by\n> \"odd errors and invalid chunks of XML or UTF-8 that SVN spits at me\"\n> unless it's some joke about SVN I'm not getting :)\n\nOh - the Squirrelmail SVN repo is one of those that have commits that\nSVN itself cannot read due to invalid data. So git-svnimport, by\nvirtue of using the Perl SVN bindings, fails to import it.\n\ngit-svn, by some other virtue, imports it perfectly ;-)\n\n> >   [svn-remote \"svn\"]\n> >        url = http://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail\n> >        fetch = trunk/squirrelmail:refs/heads/svn/trunk\n> >        branches = branches/*/squirrelmail:refs/heads/svn/*\n> >        tags = tags/*/squirrelmail:refs/tags/svn/*\n>\n> git-svn expects 'refs/remotes/' in the local ref name.  Otherwise,\n> the left-hand side is correct.\n\nGood to know!\n\n> > and when I do that -- trunk and branches do what I want, but tags\n> > aren't imported anymore. :-/\n>\n> Now its odd to me that trunks and branches even works with those ref\n> names.\n\nI'm lucky then ;-)\n\nMy reason for the \"alternative\" locations is to match a bit better the\nv1.5.0 behaviour re branches, tags and remotes, and to run the import\ndirectly into a bare repo on git.catalyst.net.nz\n\n - Tags, by virtue of landing under refs/remotes are being treated as\nheads rather than tags. That's why I want to have them in\nrefs/tags/<bla>/*\n\n - If branches + trunk end up in refs/remotes then my bare repo /\ngateway doesn't work well - -refs/remotes aren't cloned or fetched\n\n - gitweb refuses to show those heads/tags (maybe it's because it's an\nold version?)\n\ncheers,\n\n\nmartin\n"},{"id":"45428","messageId":"20070620103317.GF12089@xp.machine.xx","threadId":"8660","inReplyTo":"46a038f90706200213p2d1e3ba3nf58107584afe4901@mail.gmail.com","subject":"Re: git-svn strangeness with tags and Squirrelmail repo","fromName":"Peter Baumann","fromEmail":"waste.manager@gmx.de","sentAt":"2007-06-20T10:33:17Z","receivedAt":"2007-06-20T10:33:17Z","isPatch":false,"sender":{"key":"waste.manager@gmx.de","avatar":null},"body":"On Wed, Jun 20, 2007 at 09:13:18PM +1200, Martin Langhoff wrote:\n[...]\n> > >   [svn-remote \"svn\"]\n> > >        url = http://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail\n> > >        fetch = trunk/squirrelmail:refs/heads/svn/trunk\n> > >        branches = branches/*/squirrelmail:refs/heads/svn/*\n> > >        tags = tags/*/squirrelmail:refs/tags/svn/*\n> >\n> > git-svn expects 'refs/remotes/' in the local ref name.  Otherwise,\n> > the left-hand side is correct.\n> \n>  Good to know!\n> \n> > > and when I do that -- trunk and branches do what I want, but tags\n> > > aren't imported anymore. :-/\n> >\n> > Now its odd to me that trunks and branches even works with those ref\n> > names.\n> \n>  I'm lucky then ;-)\n> \n>  My reason for the \"alternative\" locations is to match a bit better the\n>  v1.5.0 behaviour re branches, tags and remotes, and to run the import\n>  directly into a bare repo on git.catalyst.net.nz\n> \n>  - Tags, by virtue of landing under refs/remotes are being treated as\n>  heads rather than tags. That's why I want to have them in\n>  refs/tags/<bla>/*\n> \n\nBut Tags are just heads in SVN. There are many repos where a tag changes\nin time and so tags are often used as they were branches where you\ndevelop on.\n\n>  - If branches + trunk end up in refs/remotes then my bare repo /\n>  gateway doesn't work well - -refs/remotes aren't cloned or fetched\n> \n>  - gitweb refuses to show those heads/tags (maybe it's because it's an\n>  old version?)\n> \n[ Not sure about this, but could it be that gitweb never shows branches\n  under refs/remotes ? ]\n\n-Peter\n"}]}