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

Re: troubles in supersede old development history (git-svn)

From
EWEric Wong <normalperson@yhbt.net>
Date
Jan 8, 2007, 02:44 UTC
Message-ID
<20070108024428.GD10933@localdomain>
In-Reply-To
<7d73e7d80701070129r48dfa3bcq46112dea56962b3e@mail.gmail.com>
Songmao Tian <kingkongmao@gmail.com> wrote:
Show 16 quoted lines
> our trunk's maintainer is lazy in merging branches, I'd like to merge
> the branch kkmao, and now there are so many the conflicts. I want to
> just use my version and overcome all the conflicts.
> 
> i try in this way:
> 
> git-checkout -b trunk remotes/trunk
> git-rebase --merge -s ours remotes/kkmao
> git-svn dcommit -i trunk
> diff-tree 9b75e30191838431810aec4eda98482a8d6935ed~1
> 9b75e30191838431810aec4eda98482a8d6935ed
> Transaction is out of date: Out of date:
> 'trunk/Targets/Bonito/conf/Bonito.lmbox' in transaction '74-3' at
> /home/kkmao/bin/git-svn line 1577
> 
> so what's the solution?
Probably obvious, but is remotes/trunk up-to-date with git-svn fetch?

Next, can you ensure that the tree referenced by 9b75e30191838431810aec4eda98482a8d6935ed~1 (note the ~1) is the same as remotes/trunk? (git diff 9b75e30191838431810aec4eda98482a8d6935ed~1 remotes/trunk)

Unfortunately, I'm not familiar with how the 'ours' strategy works with rebase --merge. I generally use the default recursive. Can you look at the history in gitk to see if the history from refs/remotes/trunk to refs/heads/trunk is linear?

Show 12 quoted lines
> and another question. I use normal merge strategy
> git-svn remotes/kkmao
> got some conflicts..
> 
> and one file is missing, i have to git-ls-files -u to see what's beneath.
> git-ls-files -u
> 100644 f7a66ae00d4034ab580e4ee71b0eaccc3a3e44e7 1
> Targets/Bonito/conf/Bonito
> 100644 e6f5d90b30c3ee694acd2199a03e8f34ef1412ac 3
> Targets/Bonito/conf/Bonito
> 
> I have read some doc, but I think I am still not good at resolve conflict:)

Just look at the file in question; edit it and resolve the conflicts in it and then git commit <conflicted files>

-- 
Eric Wong
Previous: Songmao Tian
Message 2 of 2 in “troubles in supersede old development history (git-svn)”
  1. Songmao TianJan 7, 2007
  2. Eric WongJan 8, 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.