{"thread":{"id":"6242","subject":"Hello all, I am using git-svn and have some question","startedAt":"2007-01-06T09:24:22Z","lastAt":"2007-01-07T08:12:13Z","messageCount":5,"participants":["Songmao Tian","Eric Wong"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"30958","messageId":"7d73e7d80701060124t16850e8ob8fbd202d230dd90@mail.gmail.com","threadId":"6242","inReplyTo":null,"subject":"Hello all, I am using git-svn and have some question","fromName":"Songmao Tian","fromEmail":"kingkongmao@gmail.com","sentAt":"2007-01-06T09:24:22Z","receivedAt":"2007-01-06T09:24:22Z","isPatch":false,"sender":{"key":"kingkongmao@gmail.com","avatar":null},"body":"(git v1.4.4.3)\nI used the fantastic git-svn multi-init.\ngit-svn multi-init http://...\n\ncheckout a branch\ngit-checkout -b kkmao remotes/kkmao\ngit-checkout -b huahua remotes/huahua\n\ngit-pull . kkmao\n(fix a conflict)\n\ngit-checkout kkmao\n\nkkmao@Loongson:~/pmon/pmon-lm2e/git$ git-pull . huahua\nUpdating dee0161..3fa715b\nFast forward\n Targets/Bonito/conf/Bonito |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\n\nfinnally, \"git-svn dcommit -i kkmao\"failed, and got the following message\n\nkkmao@Loongson:~/pmon/pmon-lm2e/git$ git-svn dcommit -i kkmao\ndiff-tree f179060aa2dd0a4ca4f95f2560ea708765a87a09~1\nf179060aa2dd0a4ca4f95f2560ea708765a87a09\nMerge conflict during commit: Your file or directory 'branches' is\nprobably out-of-date: The version resource does not correspond to the\nresource within the transaction.  Either the requested version\nresource is out of date (needs to be updated), or the requested\nversion resource is newer than the transaction root (restart the\ncommit). at /home/kkmao/bin/git-svn line 1577\n"},{"id":"30990","messageId":"20070107002317.GC10933@localdomain","threadId":"6242","inReplyTo":"7d73e7d80701060124t16850e8ob8fbd202d230dd90@mail.gmail.com","subject":"Re: Hello all, I am using git-svn and have some question","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2007-01-07T00:23:17Z","receivedAt":"2007-01-07T00:23:17Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Songmao Tian <kingkongmao@gmail.com> wrote:\n> (git v1.4.4.3)\n> I used the fantastic git-svn multi-init.\n> git-svn multi-init http://...\n> \n> checkout a branch\n> git-checkout -b kkmao remotes/kkmao\n> git-checkout -b huahua remotes/huahua\n> \n> git-pull . kkmao\n> (fix a conflict)\n\nI no longer recommend using plain git-pull or git-merge with git-svn,\nespecially when using dcommit (which I highly recommend).\n\ngit-rebase or git-rebase --merge is the recommended method of merging\nupstream changes.  Using the --squash flag with git-pull or git-merge\nshould also work here, but I have less experience with them.\n\n> git-checkout kkmao\n> \n> kkmao@Loongson:~/pmon/pmon-lm2e/git$ git-pull . huahua\n> Updating dee0161..3fa715b\n> Fast forward\n> Targets/Bonito/conf/Bonito |    2 +-\n> 1 files changed, 1 insertions(+), 1 deletions(-)\n\nOn the other hand, pulls/merges without --squash resulting in fast\nforwards are fine (but git-rebase handles fast forwards just as well).\n\n> finnally, \"git-svn dcommit -i kkmao\"failed, and got the following message\n> \n> kkmao@Loongson:~/pmon/pmon-lm2e/git$ git-svn dcommit -i kkmao\n> diff-tree f179060aa2dd0a4ca4f95f2560ea708765a87a09~1\n> f179060aa2dd0a4ca4f95f2560ea708765a87a09\n> Merge conflict during commit: Your file or directory 'branches' is\n> probably out-of-date: The version resource does not correspond to the\n> resource within the transaction.  Either the requested version\n> resource is out of date (needs to be updated), or the requested\n> version resource is newer than the transaction root (restart the\n> commit). at /home/kkmao/bin/git-svn line 1577\n\nThis seems to be most likely because dcommit skips merge commits\n(generated by your pull).\n\n-- \nEric Wong\n"},{"id":"31011","messageId":"7d73e7d80701062206y34db9d06k3c871c7e83a8aa4@mail.gmail.com","threadId":"6242","inReplyTo":"20070107002317.GC10933@localdomain","subject":"Re: Hello all, I am using git-svn and have some question","fromName":"Songmao Tian","fromEmail":"kingkongmao@gmail.com","sentAt":"2007-01-07T06:06:44Z","receivedAt":"2007-01-07T06:06:44Z","isPatch":false,"sender":{"key":"kingkongmao@gmail.com","avatar":null},"body":"I have made a mistake, while use 1.4.4.1, exec git-svn multi-fetch\nwill find possible parent for each branch, but 1.4.4.3 will not.\n\nwith parent found, git-rebase between branches will result in less\nconflict. I wonder if I have made another mistake while using\n1.4.4.3:), for i like the way 1.4.4.1's multi-fetch did\n\nOn 1/7/07, Eric Wong <normalperson@yhbt.net> wrote:\n> Songmao Tian <kingkongmao@gmail.com> wrote:\n> > (git v1.4.4.3)\n> > I used the fantastic git-svn multi-init.\n> > git-svn multi-init http://...\n> >\n> > checkout a branch\n> > git-checkout -b kkmao remotes/kkmao\n> > git-checkout -b huahua remotes/huahua\n> >\n> > git-pull . kkmao\n> > (fix a conflict)\n>\n> I no longer recommend using plain git-pull or git-merge with git-svn,\n> especially when using dcommit (which I highly recommend).\n>\n> git-rebase or git-rebase --merge is the recommended method of merging\n> upstream changes.  Using the --squash flag with git-pull or git-merge\n> should also work here, but I have less experience with them.\n>\n> > git-checkout kkmao\n> >\n> > kkmao@Loongson:~/pmon/pmon-lm2e/git$ git-pull . huahua\n> > Updating dee0161..3fa715b\n> > Fast forward\n> > Targets/Bonito/conf/Bonito |    2 +-\n> > 1 files changed, 1 insertions(+), 1 deletions(-)\n>\n> On the other hand, pulls/merges without --squash resulting in fast\n> forwards are fine (but git-rebase handles fast forwards just as well).\n>\n> > finnally, \"git-svn dcommit -i kkmao\"failed, and got the following message\n> >\n> > kkmao@Loongson:~/pmon/pmon-lm2e/git$ git-svn dcommit -i kkmao\n> > diff-tree f179060aa2dd0a4ca4f95f2560ea708765a87a09~1\n> > f179060aa2dd0a4ca4f95f2560ea708765a87a09\n> > Merge conflict during commit: Your file or directory 'branches' is\n> > probably out-of-date: The version resource does not correspond to the\n> > resource within the transaction.  Either the requested version\n> > resource is out of date (needs to be updated), or the requested\n> > version resource is newer than the transaction root (restart the\n> > commit). at /home/kkmao/bin/git-svn line 1577\n>\n> This seems to be most likely because dcommit skips merge commits\n> (generated by your pull).\n>\n> --\n> Eric Wong\n>\n"},{"id":"31014","messageId":"20070107063101.GA23429@mayonaise.dyndns.org","threadId":"6242","inReplyTo":"7d73e7d80701062206y34db9d06k3c871c7e83a8aa4@mail.gmail.com","subject":"Re: Hello all, I am using git-svn and have some question","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2007-01-07T06:31:01Z","receivedAt":"2007-01-07T06:31:01Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Songmao Tian <kingkongmao@gmail.com> wrote:\n> I have made a mistake, while use 1.4.4.1, exec git-svn multi-fetch\n> will find possible parent for each branch, but 1.4.4.3 will not.\n> \n> with parent found, git-rebase between branches will result in less\n> conflict. I wonder if I have made another mistake while using\n> 1.4.4.3:), for i like the way 1.4.4.1's multi-fetch did\n\nI don't see anything regarding multi-fetch changed between\nv1.4.4.1..v1.4.4.3.  Did you forget the --follow-parent flag?\nNo worries though, you can use 'git-svn graft-branches' to\nconnect a branch to its parent; and if that doesn't work automatically;\nyou can edit the .git/info/grafts file with parent info (it's\ndocumented in Documentation/repository-layout.txt.\n\n-- \nEric Wong\n"},{"id":"31017","messageId":"7d73e7d80701070012y5f15cde4gf2d9a36fab1815ae@mail.gmail.com","threadId":"6242","inReplyTo":"20070107063101.GA23429@mayonaise.dyndns.org","subject":"Re: Hello all, I am using git-svn and have some question","fromName":"Songmao Tian","fromEmail":"kingkongmao@gmail.com","sentAt":"2007-01-07T08:12:13Z","receivedAt":"2007-01-07T08:12:13Z","isPatch":false,"sender":{"key":"kingkongmao@gmail.com","avatar":null},"body":"exactly~, thx again\n\nOn 1/7/07, Eric Wong <normalperson@yhbt.net> wrote:\n> Songmao Tian <kingkongmao@gmail.com> wrote:\n> > I have made a mistake, while use 1.4.4.1, exec git-svn multi-fetch\n> > will find possible parent for each branch, but 1.4.4.3 will not.\n> >\n> > with parent found, git-rebase between branches will result in less\n> > conflict. I wonder if I have made another mistake while using\n> > 1.4.4.3:), for i like the way 1.4.4.1's multi-fetch did\n>\n> I don't see anything regarding multi-fetch changed between\n> v1.4.4.1..v1.4.4.3.  Did you forget the --follow-parent flag?\n> No worries though, you can use 'git-svn graft-branches' to\n> connect a branch to its parent; and if that doesn't work automatically;\n> you can edit the .git/info/grafts file with parent info (it's\n> documented in Documentation/repository-layout.txt.\n>\n> --\n> Eric Wong\n>\n"}]}