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

small user request: confirm before commit

From: Faheem Mitha <faheem_at_email.unc.edu>
Date: 2003-05-27 21:29:51 CEST

Dear People,

I've been using subversion for a few weeks now. I'm really happy with
it, and I'm glad to be finally using a revision control system. I made
several attempts to use cvs, but could never get comfortable with
it. Subversion is *much* nicer. Can't wait for it to become stable.

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.

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.

                                                      Faheem.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue May 27 21:32:49 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.