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

Re: small user request: confirm before commit

From: Florin Iucha <florin_at_iucha.net>
Date: 2003-05-27 21:41:07 CEST

On Tue, May 27, 2003 at 07:29:51PM +0000, Faheem Mitha wrote:
> I have a small user request. Once I type `svn commit', there appears
> to be no clean way for me to back out if I decide I don't want to
> commit after all. Bear in mind that committing is an irreversible
> process. As far as I know there is no way currently of removing
> changesets from the respository once you have committed them.

Exit the editor without making changes asks you if you want to abort.

> On the occasions when I have decided I didn't want to go through with
> the commit (which has happened more than once), I've killed the job in
> question and then run `svn cleanup', which is not exactly optimal.
>
> So I would suggest something like
>
> svn commit -m...
> [Enter]
> Commit changes? [Y/n] (yes as default, just hit enter)
>
> svn commit
> [Exit editor]
> Commit changes? [Y/n] (yes as default, just hit enter)
>
> This could perhaps be a configurable option to avoid annoying the
> experts. Many other programs allow such options even to actions that
> are reversible. Examples that come to mind off the top of my head are
> emacs, slrn, and Debian's apt.
>
> My impression is that currently some people do a dry run by writing
> the log message etc. before actually running svn commit. This would be
> less necessary if there was some graceful way of backing out of a
> commit.
>
> Oh, and please don't reply telling me to "make sure you want to
> commit" or some such. There is always the possibility of human error.

The same human nature will learn to always Enter twice before
commit... It won't help you for the 1 in 1000 cases where you didn't
want to commit.

Cheers,
florin

-- 
"NT is to UNIX what a doughnut is to a particle accelerator."

  • application/pgp-signature attachment: stored
Received on Tue May 27 21:41:59 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.