{"thread":{"id":"15383","subject":"git-svn and complex branch/tag layout","startedAt":"2008-09-05T13:53:47Z","lastAt":"2008-09-07T16:45:47Z","messageCount":3,"participants":["Andriy Gapon","Eric Wong","Marcus Griep"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"89847","messageId":"48C139EB.1000104@icyb.net.ua","threadId":"15383","inReplyTo":null,"subject":"git-svn and complex branch/tag layout","fromName":"Andriy Gapon","fromEmail":"avg@icyb.net.ua","sentAt":"2008-09-05T13:53:47Z","receivedAt":"2008-09-05T13:53:47Z","isPatch":false,"sender":{"key":"avg@icyb.net.ua","avatar":null},"body":"\nI am trying to use 'git svn' with FreeBSD base repository (which is now\nin svn).\nAs can be seen here in \"RELENG_* branches and general layout\" section:\nhttp://wiki.freebsd.org/SubversionPrimer\n\nThere are several subdirectories for branches and tags depending on the\nstatus of a branch/tag in question. As I understand those subdirectories\ndo not introduce separate namespaces, i.e. a particular tag/branch name\nis supposed to be unique across all subdirectories.\n\nDoes git-svn support repository layouts with multiple branch/tag\nsubdirectories? Or does it only support \"standard layout\" variations\nthat still have only one subdirectory for each?\n\nThank you in advance for any help/advice!\n\n-- \nAndriy Gapon\n"},{"id":"89937","messageId":"20080907025626.GB12392@untitled","threadId":"15383","inReplyTo":"48C139EB.1000104@icyb.net.ua","subject":"Re: git-svn and complex branch/tag layout","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2008-09-07T02:56:26Z","receivedAt":"2008-09-07T02:56:26Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Andriy Gapon <avg@icyb.net.ua> wrote:\n> \n> I am trying to use 'git svn' with FreeBSD base repository (which is now\n> in svn).\n> As can be seen here in \"RELENG_* branches and general layout\" section:\n> http://wiki.freebsd.org/SubversionPrimer\n> \n> There are several subdirectories for branches and tags depending on the\n> status of a branch/tag in question. As I understand those subdirectories\n> do not introduce separate namespaces, i.e. a particular tag/branch name\n> is supposed to be unique across all subdirectories.\n> \n> Does git-svn support repository layouts with multiple branch/tag\n> subdirectories? Or does it only support \"standard layout\" variations\n> that still have only one subdirectory for each?\n> \n> Thank you in advance for any help/advice!\n\nHi Andriy,\n\nFor tracking /etc, this seems to work:\n\n  git svn clone -b 'releng/*/etc' -t 'release/*/etc' svn://svn.freebsd.org/base\n  (it started, I don't have the time/space/bandwidth to let it finish).\n\nUnfortunately only releng and release, you can get other namespaces like\nstable.\n\n\nDouble-globbing should work, (I thought Marcus got it to work a few\nmonths ago), but doesn't seem to at the moment:\n\n  git svn clone -b '*/*/etc'\n\nMarcus?\n\n\nThe long way:\n\nIf you explicitly specify every branch you want, it'll definitely, too.\nIt's just a huge pain to setup since you'll lose all the advantages of\nglobbing, so it could end up being a very big .git/config file:\n\n[svn-remote \"svn\"]\n        url = svn://svn.freebsd.org/base\n\tfetch = releng/4.3/etc:refs/remotes/releng/4.3/etc\n\tfetch = release/4.3.0/etc:refs/remotes/release/4.3.0/etc\n\tfetch = stable/4/etc:refs/remotes/stable/4/etc\n\t; ...\n\n-- \nEric Wong\n"},{"id":"89978","messageId":"48C4053B.60704@griep.us","threadId":"15383","inReplyTo":"20080907025626.GB12392@untitled","subject":"Re: git-svn and complex branch/tag layout","fromName":"Marcus Griep","fromEmail":"marcus@griep.us","sentAt":"2008-09-07T16:45:47Z","receivedAt":"2008-09-07T16:45:47Z","isPatch":false,"sender":{"key":"marcus@griep.us","avatar":"https://gravatar.com/avatar/0a841f2aad3f9a38c9bcf87a567c2a1751cb08924bae1bc46ee171395bcf9794?d=mp&s=160"},"body":"Eric Wong wrote:\n> Double-globbing should work, (I thought Marcus got it to work a few\n> months ago), but doesn't seem to at the moment:\n> \n>   git svn clone -b '*/*/etc'\n> \n> Marcus?\n\nI'm not sure about starting with multi-globs, but I've been using the 'branches/*/*' form\nfor a while now at work.  I can try to look into the '*/*' and '*/*/blah' forms this week.\n\n-- \nMarcus Griep\nGPG Key ID: 0x5E968152\n——\nhttp://www.boohaunt.net\nאת.ψο´\n\n"}]}