git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Hello all, I am using git-svn and have some question

From
EWEric Wong <normalperson@yhbt.net>
Date
Jan 7, 2007, 00:23 UTC
Message-ID
<20070107002317.GC10933@localdomain>
In-Reply-To
<7d73e7d80701060124t16850e8ob8fbd202d230dd90@mail.gmail.com>
Songmao Tian <kingkongmao@gmail.com> wrote:
Show 10 quoted lines
> (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.

Show 7 quoted lines
> 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).

Show 11 quoted lines
> 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
Previous: Songmao TianNext: Songmao Tian
Message 2 of 5 in “Hello all, I am using git-svn and have some question”
  1. Songmao TianJan 6, 2007
  2. Eric WongJan 7, 2007
  3. Songmao TianJan 7, 2007
  4. Eric WongJan 7, 2007
  5. Songmao TianJan 7, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.