git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Hello all, I am using git-svn and have some question
@ 2007-01-06  9:24 Songmao Tian
  2007-01-07  0:23 ` Eric Wong
  0 siblings, 1 reply; 5+ messages in thread
From: Songmao Tian @ 2007-01-06  9:24 UTC (permalink / raw)
  To: git

(git v1.4.4.3)
I used the fantastic git-svn multi-init.
git-svn multi-init http://...

checkout a branch
git-checkout -b kkmao remotes/kkmao
git-checkout -b huahua remotes/huahua

git-pull . kkmao
(fix a conflict)

git-checkout kkmao

kkmao@Loongson:~/pmon/pmon-lm2e/git$ git-pull . huahua
Updating dee0161..3fa715b
Fast forward
 Targets/Bonito/conf/Bonito |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


finnally, "git-svn dcommit -i kkmao"failed, and got the following message

kkmao@Loongson:~/pmon/pmon-lm2e/git$ git-svn dcommit -i kkmao
diff-tree f179060aa2dd0a4ca4f95f2560ea708765a87a09~1
f179060aa2dd0a4ca4f95f2560ea708765a87a09
Merge conflict during commit: Your file or directory 'branches' is
probably out-of-date: The version resource does not correspond to the
resource within the transaction.  Either the requested version
resource is out of date (needs to be updated), or the requested
version resource is newer than the transaction root (restart the
commit). at /home/kkmao/bin/git-svn line 1577

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Hello all, I am using git-svn and have some question
  2007-01-06  9:24 Hello all, I am using git-svn and have some question Songmao Tian
@ 2007-01-07  0:23 ` Eric Wong
  2007-01-07  6:06   ` Songmao Tian
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Wong @ 2007-01-07  0:23 UTC (permalink / raw)
  To: Songmao Tian; +Cc: git

Songmao Tian <kingkongmao@gmail.com> wrote:
> (git v1.4.4.3)
> I used the fantastic git-svn multi-init.
> git-svn multi-init http://...
> 
> checkout a branch
> git-checkout -b kkmao remotes/kkmao
> git-checkout -b huahua remotes/huahua
> 
> git-pull . kkmao
> (fix a conflict)

I no longer recommend using plain git-pull or git-merge with git-svn,
especially when using dcommit (which I highly recommend).

git-rebase or git-rebase --merge is the recommended method of merging
upstream changes.  Using the --squash flag with git-pull or git-merge
should also work here, but I have less experience with them.

> git-checkout kkmao
> 
> kkmao@Loongson:~/pmon/pmon-lm2e/git$ git-pull . huahua
> Updating dee0161..3fa715b
> Fast forward
> Targets/Bonito/conf/Bonito |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)

On the other hand, pulls/merges without --squash resulting in fast
forwards are fine (but git-rebase handles fast forwards just as well).

> finnally, "git-svn dcommit -i kkmao"failed, and got the following message
> 
> kkmao@Loongson:~/pmon/pmon-lm2e/git$ git-svn dcommit -i kkmao
> diff-tree f179060aa2dd0a4ca4f95f2560ea708765a87a09~1
> f179060aa2dd0a4ca4f95f2560ea708765a87a09
> Merge conflict during commit: Your file or directory 'branches' is
> probably out-of-date: The version resource does not correspond to the
> resource within the transaction.  Either the requested version
> resource is out of date (needs to be updated), or the requested
> version resource is newer than the transaction root (restart the
> commit). at /home/kkmao/bin/git-svn line 1577

This seems to be most likely because dcommit skips merge commits
(generated by your pull).

-- 
Eric Wong

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Hello all, I am using git-svn and have some question
  2007-01-07  0:23 ` Eric Wong
@ 2007-01-07  6:06   ` Songmao Tian
  2007-01-07  6:31     ` Eric Wong
  0 siblings, 1 reply; 5+ messages in thread
From: Songmao Tian @ 2007-01-07  6:06 UTC (permalink / raw)
  To: Eric Wong; +Cc: git

I have made a mistake, while use 1.4.4.1, exec git-svn multi-fetch
will find possible parent for each branch, but 1.4.4.3 will not.

with parent found, git-rebase between branches will result in less
conflict. I wonder if I have made another mistake while using
1.4.4.3:), for i like the way 1.4.4.1's multi-fetch did

On 1/7/07, Eric Wong <normalperson@yhbt.net> wrote:
> Songmao Tian <kingkongmao@gmail.com> wrote:
> > (git v1.4.4.3)
> > I used the fantastic git-svn multi-init.
> > git-svn multi-init http://...
> >
> > checkout a branch
> > git-checkout -b kkmao remotes/kkmao
> > git-checkout -b huahua remotes/huahua
> >
> > git-pull . kkmao
> > (fix a conflict)
>
> I no longer recommend using plain git-pull or git-merge with git-svn,
> especially when using dcommit (which I highly recommend).
>
> git-rebase or git-rebase --merge is the recommended method of merging
> upstream changes.  Using the --squash flag with git-pull or git-merge
> should also work here, but I have less experience with them.
>
> > git-checkout kkmao
> >
> > kkmao@Loongson:~/pmon/pmon-lm2e/git$ git-pull . huahua
> > Updating dee0161..3fa715b
> > Fast forward
> > Targets/Bonito/conf/Bonito |    2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
>
> On the other hand, pulls/merges without --squash resulting in fast
> forwards are fine (but git-rebase handles fast forwards just as well).
>
> > finnally, "git-svn dcommit -i kkmao"failed, and got the following message
> >
> > kkmao@Loongson:~/pmon/pmon-lm2e/git$ git-svn dcommit -i kkmao
> > diff-tree f179060aa2dd0a4ca4f95f2560ea708765a87a09~1
> > f179060aa2dd0a4ca4f95f2560ea708765a87a09
> > Merge conflict during commit: Your file or directory 'branches' is
> > probably out-of-date: The version resource does not correspond to the
> > resource within the transaction.  Either the requested version
> > resource is out of date (needs to be updated), or the requested
> > version resource is newer than the transaction root (restart the
> > commit). at /home/kkmao/bin/git-svn line 1577
>
> This seems to be most likely because dcommit skips merge commits
> (generated by your pull).
>
> --
> Eric Wong
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Hello all, I am using git-svn and have some question
  2007-01-07  6:06   ` Songmao Tian
@ 2007-01-07  6:31     ` Eric Wong
  2007-01-07  8:12       ` Songmao Tian
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Wong @ 2007-01-07  6:31 UTC (permalink / raw)
  To: Songmao Tian; +Cc: git

Songmao Tian <kingkongmao@gmail.com> wrote:
> I have made a mistake, while use 1.4.4.1, exec git-svn multi-fetch
> will find possible parent for each branch, but 1.4.4.3 will not.
> 
> with parent found, git-rebase between branches will result in less
> conflict. I wonder if I have made another mistake while using
> 1.4.4.3:), for i like the way 1.4.4.1's multi-fetch did

I don't see anything regarding multi-fetch changed between
v1.4.4.1..v1.4.4.3.  Did you forget the --follow-parent flag?
No worries though, you can use 'git-svn graft-branches' to
connect a branch to its parent; and if that doesn't work automatically;
you can edit the .git/info/grafts file with parent info (it's
documented in Documentation/repository-layout.txt.

-- 
Eric Wong

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Hello all, I am using git-svn and have some question
  2007-01-07  6:31     ` Eric Wong
@ 2007-01-07  8:12       ` Songmao Tian
  0 siblings, 0 replies; 5+ messages in thread
From: Songmao Tian @ 2007-01-07  8:12 UTC (permalink / raw)
  To: Eric Wong; +Cc: git

exactly~, thx again

On 1/7/07, Eric Wong <normalperson@yhbt.net> wrote:
> Songmao Tian <kingkongmao@gmail.com> wrote:
> > I have made a mistake, while use 1.4.4.1, exec git-svn multi-fetch
> > will find possible parent for each branch, but 1.4.4.3 will not.
> >
> > with parent found, git-rebase between branches will result in less
> > conflict. I wonder if I have made another mistake while using
> > 1.4.4.3:), for i like the way 1.4.4.1's multi-fetch did
>
> I don't see anything regarding multi-fetch changed between
> v1.4.4.1..v1.4.4.3.  Did you forget the --follow-parent flag?
> No worries though, you can use 'git-svn graft-branches' to
> connect a branch to its parent; and if that doesn't work automatically;
> you can edit the .git/info/grafts file with parent info (it's
> documented in Documentation/repository-layout.txt.
>
> --
> Eric Wong
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-01-07  8:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-06  9:24 Hello all, I am using git-svn and have some question Songmao Tian
2007-01-07  0:23 ` Eric Wong
2007-01-07  6:06   ` Songmao Tian
2007-01-07  6:31     ` Eric Wong
2007-01-07  8:12       ` Songmao Tian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).