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

Re: [git-svn] [BUG] merge-tracking inconsistencies; Was: [FEATURE-REQ] track merges from git

From
XLXimin Luo <xl269@cam.ac.uk>
Date
Aug 26, 2009, 21:13 UTC
Message-ID
<4A95A593.4070002@cam.ac.uk>
In-Reply-To
<4A95A032.3000801@cam.ac.uk>
Ximin Luo wrote:
> The only difference between the two runs is that in the unfucked version, we
> run "git svn dcommit" after every git commit.
Hmm, now that I think about it, the "bug" would be quite hard to "fix"...

Basically, it happens if you try to dcommit a commit A which has two parents, B and X, where X is in a different branch, and hasn't already been dcommited. It would seem that there isn't (in general) a way to detect whether X would become (ie. in the future) a dcommitted svn commit - and actually this might not even be the case, if eg. someone "svn commited" before we could get that dcommit in.

However about having git-svn outputting a warning when it detects merge commits, one of whose parents is *not* a dcommitted commit, but does belongs to a branch that is also being tracked by git-svn?

Something like "Warning: commit aaaa has parent bbbb; however, parent bbbb has not been dcommited to the remote svn yet. If you proceed with this dcommit, the merge history will be lost; to preserve the history, dcommit the branch containing bbbb instead and then continue to dcommit this branch"?

X
Previous: Ximin Luo
Message 7 of 7 in “[git-svn] [FEATURE-REQ] track merges from git”
  1. Ximin LuoAug 26, 2009
  2. Bryan DonlanAug 26, 2009
  3. Eric WongSep 5, 2009
  4. Ximin LuoSep 6, 2009
  5. Jakub NarebskiSep 5, 2009
  6. Ximin LuoAug 26, 2009
  7. Ximin LuoAug 26, 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.