From: Eric Wong <normalperson@yhbt.net>
To: Songmao Tian <kingkongmao@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Hello all, I am using git-svn and have some question
Date: Sat, 6 Jan 2007 16:23:17 -0800 [thread overview]
Message-ID: <20070107002317.GC10933@localdomain> (raw)
In-Reply-To: <7d73e7d80701060124t16850e8ob8fbd202d230dd90@mail.gmail.com>
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
next prev parent reply other threads:[~2007-01-07 0:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2007-01-07 6:06 ` Songmao Tian
2007-01-07 6:31 ` Eric Wong
2007-01-07 8:12 ` Songmao Tian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070107002317.GC10933@localdomain \
--to=normalperson@yhbt.net \
--cc=git@vger.kernel.org \
--cc=kingkongmao@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox