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

Re: Change in git-svn dcommit semantics?

From
EWEric Wong <normalperson@yhbt.net>
Date
Dec 19, 2006, 22:09 UTC
Message-ID
<20061219220900.GA3148@localdomain>
In-Reply-To
<m2mz5jegka.fsf@ziti.local>
Seth Falcon <sethfalcon@gmail.com> wrote:
Show 24 quoted lines
> Hi Eric,
> 
> I just updated to the latest git/git-svn (on branch 'master') and the
> workflow I've been using no longer seems to work:
> 
>    # review the commits I'm going to send to svn
>    ziti:~/proj/bioc-2.0-git seth$ git log remotes/git-svn..HEAD
>    
>    # now send them
>    ziti:~/proj/bioc-2.0-git seth$ git svn dcommit remotes/git-svn..HEAD
> 
>    fatal: ambiguous argument
>    'refs/remotes/git-svn..remotes/git-svn..HEAD': unknown revision or
>    path not in the working tree.  Use '--' to separate paths from
>    revisions 32768 at /Users/seth/scm/bin/git-svn line 2190
>            main::safe_qx('git-rev-list', '--no-merges', 'refs/remotes/git-svn..remotes/git-svn..HEAD') called at /Users/seth/scm/bin/git-svn line 610
>            main::dcommit('remotes/git-svn..HEAD') called at /Users/seth/scm/bin/git-svn line 197
> 
> 
> At this point, my last commit seems to have been reset (although the
> changes are thankfully still in my working tree).  If this happens to
> you, you can recover the last commit like:
> 
>   git commit -a -v -c ORIG_HEAD

Huh? safe_qx should've croaked or died, causing git-svn to exit before it could do any damage (via git-reset or git-rebase). dcommit is not called inside any eval blocks, either...

Show 10 quoted lines
> And it seems that the new interface requires no extra args:
> 
>  git svn dcommit
> 
> The new interface seems ok until things like 
> 
>   git svn dcommit remotes/git-svn..HEAD~2
> 
> are allowed (if ever).  But it would be nice for the failure mode to
> not undo commits :-)
 
Before, the 'remotes/git-svn..HEAD' argument meant absolutely nothing to
dcommit (it silently ignored it).  Nowadays, you only need 'HEAD~2', the
'remotes/git-svn..' is already implied.
	git-svn dcommit HEAD~2
Not specifying any argument implies that it is called with 'HEAD'
Previous: Seth FalconNext: Seth Falcon
Message 2 of 13 in “Change in git-svn dcommit semantics?”
  1. Seth FalconDec 19, 2006
  2. Eric WongDec 19, 2006
  3. Seth FalconDec 20, 2006
  4. Brian GernhardtDec 19, 2006
  5. Johannes SchindelinDec 19, 2006
  6. Brian GernhardtDec 20, 2006
  7. Jakub NarebskiDec 20, 2006
  8. Junio C HamanoDec 20, 2006
  9. Jakub NarebskiDec 20, 2006
  10. Brian GernhardtDec 20, 2006
  11. Jeff KingDec 20, 2006
  12. Brian GernhardtDec 22, 2006
  13. Seth FalconDec 20, 2006

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.