{"thread":{"id":"27252","subject":"Can I specify a “chunk size” for git svn fetch?","startedAt":"2011-05-04T19:06:30Z","lastAt":"2011-05-09T17:29:43Z","messageCount":2,"participants":["Zak Whaley","Thomas Ferris Nicolaisen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"167037","messageId":"BANLkTinXvjQth3wBmZUu8A0QszCXm8dc6g@mail.gmail.com","threadId":"27252","inReplyTo":null,"subject":"Can I specify a “chunk size” for git svn fetch?","fromName":"Zak Whaley","fromEmail":"zak.whaley@gmail.com","sentAt":"2011-05-04T19:06:30Z","receivedAt":"2011-05-04T19:06:30Z","isPatch":false,"sender":{"key":"zak.whaley@gmail.com","avatar":null},"body":"I asked this over on StackOverflow\n(http://stackoverflow.com/q/5886993/665372) and someone suggested\nasking this mailing list.\n\nI'm cloning an SVN repo with git and everything seems to be working\nfine. The very last revision I need to download contains a ~220MB zip\nfile.\n\nI know this isn't an issue for git, however the school's server I'm\ndownloading it from hangs up half way through the file which\ninvalidates the entire index requiring that it re-download the\nrevision again.\n\nIs there a way to tell git-svn fetch to get an index in multiple\nchunks of a particular chunk-size or to retain the partial index if\nthe server hangs up?\n\nSpec info:\nWin7 with Cygwin 1.7.9-1\ngit & git-svn 1.7.4-1\n\n\nRegards,\n\nZak Whaley\n"},{"id":"167513","messageId":"BANLkTinpK1DtgSBq=znBb=ung5FcttLn_g@mail.gmail.com","threadId":"27252","inReplyTo":"BANLkTinXvjQth3wBmZUu8A0QszCXm8dc6g@mail.gmail.com","subject":"Re: Can I specify a “chunk size” for git svn fetch?","fromName":"Thomas Ferris Nicolaisen","fromEmail":"tfnico@gmail.com","sentAt":"2011-05-09T17:29:43Z","receivedAt":"2011-05-09T17:29:43Z","isPatch":false,"sender":{"key":"tfnico@gmail.com","avatar":"https://gravatar.com/avatar/628cf28a25ca4c596c7284562100f70f0ef908bcbfadd4da1eb3d48c23658d01?d=mp&s=160"},"body":"> Is there a way to tell git-svn fetch to get an index in multiple\n> chunks of a particular chunk-size or to retain the partial index if\n> the server hangs up?\n>\n> Spec info:\n> Win7 with Cygwin 1.7.9-1\n> git & git-svn 1.7.4-1\n>\n\nIf you are willing to leave out the big zip file from your repository,\nyou could try the following:\n\nMake two clones, one before the over-sized commit, and one for\nafterwards.  Say the big commit was committed in revision 36, it would\nbe something like:\n\ngit svn clone -r1:35 url first-clone\ngit svn clone -r36:HEAD url second-clone\n\nNow fetch the second repo into the first repo, and tie the history\ntogether using _grafts_. I've made a screencast with an example of\ngrafting like this here:\n\nhttp://blog.tfnico.com/2010/10/gitsvn-6-grafting-together-svn-history.html\n\n(I'll cross-post this answer to StackOverflow as well).\n"}]}