From: Eric Wong <normalperson@yhbt.net>
To: Seth Falcon <sethfalcon@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Change in git-svn dcommit semantics?
Date: Tue, 19 Dec 2006 14:09:00 -0800 [thread overview]
Message-ID: <20061219220900.GA3148@localdomain> (raw)
In-Reply-To: <m2mz5jegka.fsf@ziti.local>
Seth Falcon <sethfalcon@gmail.com> wrote:
> 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...
> 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'
--
next prev parent reply other threads:[~2006-12-19 22:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-19 21:12 Change in git-svn dcommit semantics? Seth Falcon
2006-12-19 22:09 ` Eric Wong [this message]
2006-12-20 3:05 ` Seth Falcon
2006-12-19 23:02 ` Brian Gernhardt
2006-12-19 23:57 ` Johannes Schindelin
2006-12-20 0:38 ` Brian Gernhardt
2006-12-20 0:52 ` Jakub Narebski
2006-12-20 1:17 ` Junio C Hamano
2006-12-20 11:38 ` Jakub Narebski
2006-12-20 11:47 ` Brian Gernhardt
2006-12-20 11:57 ` Jeff King
2006-12-22 14:09 ` Brian Gernhardt
2006-12-20 3:07 ` Seth Falcon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061219220900.GA3148@localdomain \
--to=normalperson@yhbt.net \
--cc=git@vger.kernel.org \
--cc=sethfalcon@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.