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

Re: [PATCH 2/2] git-svn: handle SVN merges from revisions past the tip of the branch

From
Sam Vilain <sam@vilain.net>
Date
Nov 13, 2009, 00:47 UTC
Message-ID
<4AFCAC9C.9020305@vilain.net>
In-Reply-To
<871vk35o86.fsf@navakl084.mitacad.com>
Toby Allsopp wrote:
Show 6 quoted lines
> When recording the revisions that it has merged, SVN sets the top
> revision to be the latest revision in the repository, which is not
> necessarily a revision on the branch that is being merged from.  When
> it is not on the branch, git-svn fails to add the extra parent to
> represent the merge because it relies on finding the commit on the
> branch that corresponds to the top of the SVN merge range.
I thought, "that sounds like he's repeating himself, wait a sec..."
> -test_expect_failure 'represent svn merges with intervening commits' "
> +test_expect_success 'represent svn merges with intervening commits' "
>  	[ `git cat-file commit HEAD | grep parent | wc -l` -eq 2 ]
>  	"

So you made a failing test and then added the implementation for it? Interesting strategy :). I'd probably not repeat the same sentence twice though.

Thanks for contributing this. There might be other bugs too, especially when upstream has a more complicated merge hierarchy ... apparently svn tends to get it wrong, so checking for all commits might not work in that case.

It would be nice if "dcommit" could make these commits, too...
Sam
Previous: Toby AllsoppNext: Toby Allsopp
Message 2 of 3 in “git-svn: handle SVN merges from revisions past the tip of the branch”
  1. 2/2 git-svn: handle SVN merges from revisions past the tip of the branchToby Allsopp, Nov 12, 2009
  2. Sam VilainNov 13, 2009
  3. Toby AllsoppNov 13, 2009

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.