{"thread":{"id":"8841","subject":"git-svnexport","startedAt":"2007-07-03T19:31:47Z","lastAt":"2007-07-05T13:50:27Z","messageCount":2,"participants":["Steve French","Patrick Doyle"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"46398","messageId":"524f69650707031231y2ab7b9a3o7769f64b9876326@mail.gmail.com","threadId":"8841","inReplyTo":null,"subject":"git-svnexport","fromName":"Steve French","fromEmail":"smfrench@gmail.com","sentAt":"2007-07-03T19:31:47Z","receivedAt":"2007-07-03T19:31:47Z","isPatch":false,"sender":{"key":"smfrench@gmail.com","avatar":"https://gravatar.com/avatar/abd38036fa7e26214d332fcd6240ad1cf8cd68b831b674e329b0b9071d5a1fb2?d=mp&s=160"},"body":"I noticed a git-svnexport, but don't see an easy way to do the more\ncommon task ... export a replica (via svn) of a kernel directory whose\nmaster copy is in git (no changes come through svn, all changes come\nthrough git).\n\nThe Samba team (jra and others) use svn and would like me to keep more\nuptodate the svn branch (which I sync manually now by applying the\npatches from the kernel git tree by hand) for the two cifs git trees.\nBasically I need to do something like:\n\ngit log fs/cifs\nsave off each of the commits which hit fs/cifs which are not in the svn tree yet\npatch and \"svn checkin\" each of the commits to the svn tree\n\n\nHas anyone done any scripts to --- export -- to an svn tree from part\nof a git tree?\nI don't want to go to having my svn tree as the master and import into\ngit from svn.\n\n\n\n-- \nThanks,\n\nSteve\n"},{"id":"46548","messageId":"e2a1d0aa0707050650m729018f0x9e355ed23e8156af@mail.gmail.com","threadId":"8841","inReplyTo":"524f69650707031231y2ab7b9a3o7769f64b9876326@mail.gmail.com","subject":"Re: git-svnexport","fromName":"Patrick Doyle","fromEmail":"wpdster@gmail.com","sentAt":"2007-07-05T13:50:27Z","receivedAt":"2007-07-05T13:50:27Z","isPatch":false,"sender":{"key":"wpdster@gmail.com","avatar":null},"body":"On 7/3/07, Steve French <smfrench@gmail.com> wrote:\n> I noticed a git-svnexport, but don't see an easy way to do the more\n> common task ... export a replica (via svn) of a kernel directory whose\n> master copy is in git (no changes come through svn, all changes come\n> through git).\n>\n> The Samba team (jra and others) use svn and would like me to keep more\n> uptodate the svn branch (which I sync manually now by applying the\n> patches from the kernel git tree by hand) for the two cifs git trees.\n> Basically I need to do something like:\n>\n> git log fs/cifs\n> save off each of the commits which hit fs/cifs which are not in the svn tree yet\n> patch and \"svn checkin\" each of the commits to the svn tree\n>\n>\n> Has anyone done any scripts to --- export -- to an svn tree from part\n> of a git tree?\n> I don't want to go to having my svn tree as the master and import into\n> git from svn.\n>\nIf you're interested I (may) have attached a script I was using to\nlearn how to import a git maintained project into a subversion\nmaintained project.  It is obviously a \"play with this and try this\nout\" script, not a production script in any sense of the word, but it\nmight help point you in the direction you want to go.\n\nThe gist of the script is that I used .git/info/grafts to graft the\nchain of git commits from my other project onto the most recent commit\nfrom the svn maintained project (fetched via \"git-svn clone\") and then\nI committed the result back to SVN.  All of the cruft around that is\nsimply, \"blow away what I tried before and start from scratch all over\nagain\" cruft I used when I was testing the concept.\n\nhth\n\n--wpd\n"}]}