[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: terminating a commit..

From: Troy Curtis Jr <troycurtisjr_at_gmail.com>
Date: 2007-02-27 03:21:29 CET

On 2/26/07, Geoffrey <lists@serioustechnology.com> wrote:
> We are relatively new to subversion and we find that often times we are
> attempting to commit a piece of code, only to find out that when we are
> thrown into our editor (vi) there are files listed that were modified
> that we did not want to have committed.
>
> I know how to uncommit code if necessary, but want I was wondering is,
> is there a way to terminate the commit once you are in the editor?
>
> Or, is the commit going to be successful, even if you terminate the
> editor and/or quit the editor without modifying the input.
>
> --
> Until later, Geoffrey
>
> Those who would give up essential Liberty, to purchase a little
> temporary Safety, deserve neither Liberty nor Safety.
> - Benjamin Franklin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

This is tooting my own horn a little here, but this situation annoyed
me enough that I wrote a small 'svn ci' wrapper script. Bascially, I
designed it to behave exactly like 'svn ci' (all the same options,
etc), only it allows you to delete out files from inside your editor
that you do not want to commit.

I am using it at work along with about a dozen other developers and it
seems to work well. I do think there are a few tweaks that I haven't
put into the public version yet, but it should be pretty easy to do if
there is interest. You can check it out at:

http://troyjr.hopto.org/projects/svn/svnci/trunk/svnci.pl

Troy

-- 
"Beware of spyware. If you can, use the Firefox browser." - USA Today
Download now at http://getfirefox.com
Registered Linux User #354814 ( http://counter.li.org/)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Feb 27 03:22:00 2007

This is an archived mail posted to the Subversion Users mailing list.