{"thread":{"id":"8263","subject":"git-svn or git problem...","startedAt":"2007-05-21T07:54:24Z","lastAt":"2007-05-22T09:36:02Z","messageCount":3,"participants":["David Kastrup","Eric Wong"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"42864","messageId":"86abvylihb.fsf@lola.quinscape.zz","threadId":"8263","inReplyTo":null,"subject":"git-svn or git problem...","fromName":"David Kastrup","fromEmail":"dak@gnu.org","sentAt":"2007-05-21T07:54:24Z","receivedAt":"2007-05-21T07:54:24Z","isPatch":false,"sender":{"key":"dak@gnu.org","avatar":"https://avatars.githubusercontent.com/u/52141349?v=4"},"body":"\nHi,\n\nI have used git-svn for checking out the trunk of a large Subversion\narchive.  The .git subdirectory now sits in the /rep/texlive/trunk\ndirectory.\n\nBut I actually would now want to have the branches (which are pretty\nsmall in comparison) available in git as well, without checking the\nwhole trunk out again.\n\nIs there a way to move the .git tracking one directory level upwards\nand get the branches into it as well, without checking out the trunk\nagain (the trunk is several Gigabytes of size)?\n\n-- \nDavid Kastrup\n"},{"id":"42962","messageId":"20070522091619.GA17099@muzzle","threadId":"8263","inReplyTo":"86abvylihb.fsf@lola.quinscape.zz","subject":"Re: git-svn or git problem...","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2007-05-22T09:16:19Z","receivedAt":"2007-05-22T09:16:19Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"David Kastrup <dak@gnu.org> wrote:\n> \n> Hi,\n> \n> I have used git-svn for checking out the trunk of a large Subversion\n> archive.  The .git subdirectory now sits in the /rep/texlive/trunk\n> directory.\n> \n> But I actually would now want to have the branches (which are pretty\n> small in comparison) available in git as well, without checking the\n> whole trunk out again.\n \n> Is there a way to move the .git tracking one directory level upwards\n> and get the branches into it as well, without checking out the trunk\n> again (the trunk is several Gigabytes of size)?\n\nIf you're using a 1.5.1 or later version of git-svn, you can do so\npretty easily by editing your .git/config:\n\nIf you already have something like:\n\n[svn-remote \"svn\"]\n\t# url here is the repository root, and 'mpc/trunk' in fetch\n\t# is the relative path within the repository\n        url = https://svn.musicpd.org\n        fetch = mpc/trunk:refs/remotes/git-svn\n\nYou can just add the following lines to the config in the above section:\n\n        branches = mpc/branches/*:refs/remotes/*\n        tags = mpc/tags/*:refs/remotes/tags/*\n\n\nIf you have something like:\n\n[svn-remote \"svn\"]\n\t# url here is the full path of what you're tracking,\n        url = https://svn.musicpd.org/mpc/trunk\n        fetch = :refs/remotes/git-svn\n\nChange it to something like in the first example (assuming you\nhave read permissions to the repository root).\n\n\nIf recompiling SVN is feasible for you and the branches (as a fresh\ncheckout) are as big as trunk, I highly recommend the do_switch patch\nfor SVN which lets you transfer only a delta between the branch/tag\npoint of trunk:\n\nhttp://svn.haxx.se/dev/archive-2007-01/0936.shtml\n\n-- \nEric Wong\n"},{"id":"42964","messageId":"20070522093602.GB17099@muzzle","threadId":"8263","inReplyTo":"20070522091619.GA17099@muzzle","subject":"do_switch()-enabled SVN binaries for git-svn","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2007-05-22T09:36:02Z","receivedAt":"2007-05-22T09:36:02Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Eric Wong <normalperson@yhbt.net> wrote:\n> If recompiling SVN is feasible for you and the branches (as a fresh\n> checkout) are as big as trunk, I highly recommend the do_switch patch\n> for SVN which lets you transfer only a delta between the branch/tag\n> point of trunk:\n> \n> http://svn.haxx.se/dev/archive-2007-01/0936.shtml\n\nIn case you're using Debian x86-32, I've uploaded .deb packages\n(with full, Debian sources) here:\n\nhttp://git-svn.bogomips.org/svn/\n\nThe patch by itself is available here:\n\nhttp://git-svn.bogomips.org/svn/switch-editor-perl.diff\n\n-- \nEric Wong\n"}]}