{"thread":{"id":"5921","subject":"RE: git-svn and u-boot broken.","startedAt":"2006-10-14T13:13:26Z","lastAt":"2006-10-15T02:10:00Z","messageCount":5,"participants":["Joakim Tjernlund","Eric Wong"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"28760","messageId":"00f701c6ef92$88b84840$1267a8c0@Jocke","threadId":"5921","inReplyTo":null,"subject":"RE: git-svn and u-boot broken.","fromName":"Joakim Tjernlund","fromEmail":"joakim.tjernlund@transmode.se","sentAt":"2006-10-14T13:13:26Z","receivedAt":"2006-10-14T13:13:26Z","isPatch":false,"sender":{"key":"joakim.tjernlund@transmode.se","avatar":null},"body":"> > Also, which version of git-svn are you running?  Also, which \n> > version of\n> > Subversion (client library, and server (if possible) are \n> you running?\n> \n> git 1.4.2.3\n> subversion 1.3.2-r1\n> \n> I will try upgrading to newer subverison.\n\nsubversion 1.4.0 didn't help\n\nPS.\n\nI can't find the dcommit command in git-cvs, has it been removed?\nif so, then the docs need an update.\n"},{"id":"28774","messageId":"20061014210920.GD29149@localdomain","threadId":"5921","inReplyTo":"00f701c6ef92$88b84840$1267a8c0@Jocke","subject":"Re: git-svn and u-boot broken.","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2006-10-14T21:09:20Z","receivedAt":"2006-10-14T21:09:20Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Joakim Tjernlund <joakim.tjernlund@transmode.se> wrote:\n> > > Also, which version of git-svn are you running?  Also, which \n> > > version of\n> > > Subversion (client library, and server (if possible) are \n> > you running?\n> > \n> > git 1.4.2.3\n> > subversion 1.3.2-r1\n> > \n> > I will try upgrading to newer subverison.\n> \n> subversion 1.4.0 didn't help\n> \n> PS.\n> \n> I can't find the dcommit command in git-cvs, has it been removed?\n> if so, then the docs need an update.\n\nYou mean git-svn, right?  No, 'dcommit' has not been removed and I have\nno plans to remove it.\n\n-- \nEric Wong\n"},{"id":"28783","messageId":"00fa01c6eff2$5d7f8480$1267a8c0@Jocke","threadId":"5921","inReplyTo":"20061014210920.GD29149@localdomain","subject":"RE: git-svn and u-boot broken.","fromName":"Joakim Tjernlund","fromEmail":"joakim.tjernlund@transmode.se","sentAt":"2006-10-15T00:39:25Z","receivedAt":"2006-10-15T00:39:25Z","isPatch":false,"sender":{"key":"joakim.tjernlund@transmode.se","avatar":null},"body":"> \n> Joakim Tjernlund <joakim.tjernlund@transmode.se> wrote:\n> > > > Also, which version of git-svn are you running?  Also, which \n> > > > version of\n> > > > Subversion (client library, and server (if possible) are \n> > > you running?\n> > > \n> > > git 1.4.2.3\n> > > subversion 1.3.2-r1\n> > > \n> > > I will try upgrading to newer subverison.\n> > \n> > subversion 1.4.0 didn't help\n> > \n> > PS.\n> > \n> > I can't find the dcommit command in git-cvs, has it been removed?\n> > if so, then the docs need an update.\n> \n> You mean git-svn, right?  No, 'dcommit' has not been removed \n> and I have\n> no plans to remove it.\n\nhmm, its it not released yet then? I don't have it in git 1.4.2.3\n\nAlso, I have difficulties to follow the docs on http://www.kernel.org/pub/software/scm/git/docs/git-svn.html\n\nAny chance you can update it with more examples?\nEspecially one that show how one can do one big initial\ncommit then merge your own changes on top of that?\n\nSomething like this\nREPO=\"file:///tmp/SVNuboot\"\nREPO_PATH=\"/tmp/SVNuboot\"\nGIT_REPO=\"/tmp/mygituboot\"\nORG_REPO=\"/usr/local/src/u-boot\"\nrm -rf \"$REPO_PATH\"\nrm -rf \"$GIT_REPO\"\nsvnadmin create \"$REPO_PATH\"\nsvn mkdir -m \"initial repo layout\" \"$REPO\"/trunk \"$REPO\"/branches \"$REPO\"/tags\nmkdir -p \"$GIT_REPO\"\ncd \"$GIT_REPO\"\ngit-svn init \"$REPO\"/trunk\necho  [user] >> .git/config\necho  name=\"jocke\" >> .git/config\necho  email=\"Joakim.Tjernlund@transmode.se\" >> .git/config\ngit-svn fetch\ngit checkout -b svn-branch remotes/git-svn\ngit-fetch \"$ORG_REPO\" tmcu2:tmcu\ngit-branch initial-uboot f5e0d03970409feb3c77ab0107d5dece6b7d45c9\ngit pull . initial-uboot\n# --squash makes one large commit.\ngit pull --squash . initial-uboot\ncg-commit -m \"merge up to f5e0d03970409feb3c77ab0107d5dece6b7d45c9\"\ngit-svn commit -q remotes/git-svn..svn-branch\ngit pull . tmcu # This doesn't work, I get merge conflicts\ngit-svn commit -q remotes/git-svn..svn-branch\n\nAnyhow, I am glad to report that after applying your patch all my\nproblems with went away, no more Too many open file desc,  memory\nalloc failed or Inappropriate ioctl for device, Thanks a lot.\n\n Jocke\n"},{"id":"28787","messageId":"20061015014800.GJ27128@hand.yhbt.net","threadId":"5921","inReplyTo":"00fa01c6eff2$5d7f8480$1267a8c0@Jocke","subject":"Re: git-svn and u-boot broken.","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2006-10-15T01:48:00Z","receivedAt":"2006-10-15T01:48:00Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Joakim Tjernlund <joakim.tjernlund@transmode.se> wrote:\n> > \n> > Joakim Tjernlund <joakim.tjernlund@transmode.se> wrote:\n> > > > > Also, which version of git-svn are you running?  Also, which \n> > > > > version of\n> > > > > Subversion (client library, and server (if possible) are \n> > > > you running?\n> > > > \n> > > > git 1.4.2.3\n> > > > subversion 1.3.2-r1\n> > > > \n> > > > I will try upgrading to newer subverison.\n> > > \n> > > subversion 1.4.0 didn't help\n> > > \n> > > PS.\n> > > \n> > > I can't find the dcommit command in git-cvs, has it been removed?\n> > > if so, then the docs need an update.\n> > \n> > You mean git-svn, right?  No, 'dcommit' has not been removed \n> > and I have\n> > no plans to remove it.\n> \n> hmm, its it not released yet then? I don't have it in git 1.4.2.3\n\nHm... guess not.  I track master on git.git.  1.4.3 should be released\npretty soon, and should have dcommit.\n\n> Also, I have difficulties to follow the docs on\n> http://www.kernel.org/pub/software/scm/git/docs/git-svn.html\n\nThe most-up-to-date documentation is available here:\n\nhttp://git-svn.bogomips.org/git-svn.html\n\n> Any chance you can update it with more examples?\n> Especially one that show how one can do one big initial\n> commit then merge your own changes on top of that?\n\nHmm.. large imports from git to svn can get confusing, and generally\naren't very useful on the svn side since history gets flattened.\nSo I generally don't recommend importing complete git histories into\nsvn.\n\n> Something like this\n> REPO=\"file:///tmp/SVNuboot\"\n> REPO_PATH=\"/tmp/SVNuboot\"\n> GIT_REPO=\"/tmp/mygituboot\"\n> ORG_REPO=\"/usr/local/src/u-boot\"\n> rm -rf \"$REPO_PATH\"\n> rm -rf \"$GIT_REPO\"\n> svnadmin create \"$REPO_PATH\"\n> svn mkdir -m \"initial repo layout\" \"$REPO\"/trunk \"$REPO\"/branches \"$REPO\"/tags\n> mkdir -p \"$GIT_REPO\"\n> cd \"$GIT_REPO\"\n> git-svn init \"$REPO\"/trunk\n> echo  [user] >> .git/config\n> echo  name=\"jocke\" >> .git/config\n> echo  email=\"Joakim.Tjernlund@transmode.se\" >> .git/config\n> git-svn fetch\n> git checkout -b svn-branch remotes/git-svn\n> git-fetch \"$ORG_REPO\" tmcu2:tmcu\n> git-branch initial-uboot f5e0d03970409feb3c77ab0107d5dece6b7d45c9\n> git pull . initial-uboot\n> # --squash makes one large commit.\n> git pull --squash . initial-uboot\n> cg-commit -m \"merge up to f5e0d03970409feb3c77ab0107d5dece6b7d45c9\"\n> git-svn commit -q remotes/git-svn..svn-branch\n> git pull . tmcu # This doesn't work, I get merge conflicts\n> git-svn commit -q remotes/git-svn..svn-branch\n> \n> Anyhow, I am glad to report that after applying your patch all my\n> problems with went away, no more Too many open file desc,  memory\n> alloc failed or Inappropriate ioctl for device, Thanks a lot.\n\nCool, good to know.  It seems like the apply_textdelta returning undef\nwas a result of memory allocation failures, then.\n\n-- \nEric Wong\n"},{"id":"28788","messageId":"00fb01c6efff$053bec70$1267a8c0@Jocke","threadId":"5921","inReplyTo":"20061015014800.GJ27128@hand.yhbt.net","subject":"RE: git-svn and u-boot broken.","fromName":"Joakim Tjernlund","fromEmail":"joakim.tjernlund@transmode.se","sentAt":"2006-10-15T02:10:00Z","receivedAt":"2006-10-15T02:10:00Z","isPatch":false,"sender":{"key":"joakim.tjernlund@transmode.se","avatar":null},"body":"> \n> Joakim Tjernlund <joakim.tjernlund@transmode.se> wrote:\n> > > \n> > > Joakim Tjernlund <joakim.tjernlund@transmode.se> wrote:\n> > > > > > Also, which version of git-svn are you running?  \n> Also, which \n> > > > > > version of\n> > > > > > Subversion (client library, and server (if possible) are \n> > > > > you running?\n> > > > > \n> > > > > git 1.4.2.3\n> > > > > subversion 1.3.2-r1\n> > > > > \n> > > > > I will try upgrading to newer subverison.\n> > > > \n> > > > subversion 1.4.0 didn't help\n> > > > \n> > > > PS.\n> > > > \n> > > > I can't find the dcommit command in git-cvs, has it \n> been removed?\n> > > > if so, then the docs need an update.\n> > > \n> > > You mean git-svn, right?  No, 'dcommit' has not been removed \n> > > and I have\n> > > no plans to remove it.\n> > \n> > hmm, its it not released yet then? I don't have it in git 1.4.2.3\n> \n> Hm... guess not.  I track master on git.git.  1.4.3 should be released\n> pretty soon, and should have dcommit.\n\nOK, please add some examples on how to use dcommit.\nAlso, consider adding what options are supported for each command\nin the COMMAND section.\n\n> \n> > Also, I have difficulties to follow the docs on\n> > http://www.kernel.org/pub/software/scm/git/docs/git-svn.html\n> \n> The most-up-to-date documentation is available here:\n> \n> http://git-svn.bogomips.org/git-svn.html\n> \n> > Any chance you can update it with more examples?\n> > Especially one that show how one can do one big initial\n> > commit then merge your own changes on top of that?\n> \n> Hmm.. large imports from git to svn can get confusing, and generally\n> aren't very useful on the svn side since history gets flattened.\n> So I generally don't recommend importing complete git histories into\n> svn.\n\nYes, that's what I am trying to avoid below. Basically I want to commit to SVN the\nwhole u-boot tree as one commit up to the point where I started to do my changes.\nThen I want my changes per commit on top of that. However I don't want to loose the\nability to merge/pull in future updates from denx u-boot tree.\n\nI just don't know how to do it, the script below fails when it tries to \npull the rest of the tree. Any ideas?\n\n> \n> > Something like this\n> > REPO=\"file:///tmp/SVNuboot\"\n> > REPO_PATH=\"/tmp/SVNuboot\"\n> > GIT_REPO=\"/tmp/mygituboot\"\n> > ORG_REPO=\"/usr/local/src/u-boot\"\n> > rm -rf \"$REPO_PATH\"\n> > rm -rf \"$GIT_REPO\"\n> > svnadmin create \"$REPO_PATH\"\n> > svn mkdir -m \"initial repo layout\" \"$REPO\"/trunk \n> \"$REPO\"/branches \"$REPO\"/tags\n> > mkdir -p \"$GIT_REPO\"\n> > cd \"$GIT_REPO\"\n> > git-svn init \"$REPO\"/trunk\n> > echo  [user] >> .git/config\n> > echo  name=\"jocke\" >> .git/config\n> > echo  email=\"Joakim.Tjernlund@transmode.se\" >> .git/config\n> > git-svn fetch\n> > git checkout -b svn-branch remotes/git-svn\n> > git-fetch \"$ORG_REPO\" tmcu2:tmcu\n> > git-branch initial-uboot f5e0d03970409feb3c77ab0107d5dece6b7d45c9\n> > git pull . initial-uboot\n> > # --squash makes one large commit.\n> > git pull --squash . initial-uboot\n> > cg-commit -m \"merge up to f5e0d03970409feb3c77ab0107d5dece6b7d45c9\"\n> > git-svn commit -q remotes/git-svn..svn-branch\n> > git pull . tmcu # This doesn't work, I get merge conflicts\n> > git-svn commit -q remotes/git-svn..svn-branch\n> > \n> > Anyhow, I am glad to report that after applying your patch all my\n> > problems with went away, no more Too many open file desc,  memory\n> > alloc failed or Inappropriate ioctl for device, Thanks a lot.\n> \n> Cool, good to know.  It seems like the apply_textdelta returning undef\n> was a result of memory allocation failures, then.\n\nOr possibly the older subversion I used(1.3.2), now I am on 1.4.0 \n"}]}