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

Re: git svn dcommit not checking if up-to-date?

From
EWEric Wong <normalperson@yhbt.net>
Date
Aug 31, 2007, 22:18 UTC
Message-ID
<20070831221814.GB31033@untitled>
In-Reply-To
<Pine.LNX.4.64.0708312200480.28586@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 14 quoted lines
> Hi Eric,
> 
> harningt just asked about known issues of git-svn on IRC, and I remembered 
> that I had an issue: Accidentally, I forgot to "git svn fetch" before "git 
> svn dcommit"ing, and unfortunately, a colleague had just checked in a 
> change, which got undone by my dcommit.
> 
> Is this a known issue, has it been fixed, am I a bad pilot?
> 
> Ciao,
> Dscho
> 
> P.S.: harningt promised to get his hands dirty, but I just realised that 
> the issue could be fixed since long ago...

I believe this was fixed a while back in commit 45bf473a7bc2c40c8aea3d34a0eab7a41e77a8ff (Thu Nov 9 01:19:37 2006 -0800).

I just tested this on a live server, and it seems to be correctly erroring out if the local files are not up-to-date.

The only currently known issues that could break commits is from using merge or pull from another svn branch and trying to dcommit the result (see CAVEATS section in the manpage). I hope to fix this soon (hoping somebody beats me to it, of course)

Otherwise there's still open bugs on svn:// fetch connections dying and permissions issues with some DAV repos, neither of which can cause data corruption on either side.

-- 
Eric Wong
Previous: David WatsonNext: Johannes Schindelin
Message 3 of 11 in “git svn dcommit not checking if up-to-date?”
  1. Johannes SchindelinAug 31, 2007
  2. David WatsonAug 31, 2007
  3. Eric WongAug 31, 2007
  4. Johannes SchindelinAug 31, 2007
  5. David WatsonAug 31, 2007
  6. Test for git-svn dcommit clobbering changesDavid Watson, Sep 1, 2007
  7. git-svn: fix dcommit clobbering upstream when committing multiple changesEric Wong, Sep 1, 2007
  8. Johannes SchindelinSep 1, 2007
  9. Karl HasselströmSep 1, 2007
  10. Eric WongSep 1, 2007
  11. Karl HasselströmSep 1, 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.