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

git-svn error "Unable to extract revision information from commit ...~1"

From
Victor Bogado da Silva Lins <victor@bogado.net>
Date
Jun 26, 2007, 19:09 UTC
Message-ID
<1182884957.16012.31.camel@omicron.ep.petrobras.com.br>

First of all, before I state the problems I am running into, I must say that I loved git. It is easy to setup, since there is no need to initialize a server or repository, powerful, because one can branch and merge as needed something that was harder in others. And on top of everything it is very easy to follow up the history with gitk. :-)

But not everything are flowers in my git-life. I have to use svn to commit upstream, in fact there are two different upstream svn servers. I tryied to maintain both coordinates using two git-svn repositories. But there are ocasions that the git-svn repository gets into a state that dcommit simply does not work anymore. :-(

The problem seem to be that when I merge the head with another branch git-svn does not know where to follow to meet the "svn trunk". So what happens it that I have a head that was merged from a side track development (usually rooted on the other svn server) and then it goes to the wrong side.

for instance : 
o master (merge commit) 17696dc402da59f8eba0dcd60f15a66859cb0c2a
|\
| o remotes/trunk svn head c0691ffaa3a41c6b5c13aec5b06b64f6321efd35
| |
o | mine local modifications f1494e9bb4c237253587c1ffdc150394c6813100
| | 
...
...

When I try to use dcommit the command fails to find the coorect path to make and send the diffs. I saw that svn-git user uses git-rev-list to make this path, but look at the list this command gives me :

17696dc402da59f8eba0dcd60f15a66859cb0c2a f1494e9bb4c237253587c1ffdc150394c6813100 c0691ffaa3a41c6b5c13aec5b06b64f6321efd35

the problem is that the last element is not a git-svn commit and the tool simply whants him to be son of a git-svn commit, this is the commit that goes "f1494e9bb4c237253587c1ffdc150394c6813100", an it is not on the last position as expected.

Got searchs for metadata in the wrong place and "boom" break... I don't know how to rever into a sane state, nor how can I avoid to get into this situatiom, since I havo not yet found a clear reason on how this came to be.

Next: Steven Grimm
Message 1 of 5 in “git-svn error "Unable to extract revision information from commit ...~1"”
  1. Victor Bogado da Silva LinsJun 26, 2007
  2. Steven GrimmJun 27, 2007
  3. Junio C HamanoJun 27, 2007
  4. Steven GrimmJun 27, 2007
  5. Steven GrimmJun 27, 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.