[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: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2003-05-27 22:38:19 CEST

Faheem Mitha wrote:

>On Tue, 27 May 2003 14:41:07 -0500, Florin Iucha <florin@iucha.net> wrote:
>
>
>>--TnYVF1hk1c8rpHiF
>>Content-Type: text/plain; charset=us-ascii
>>Content-Disposition: inline
>>Content-Transfer-Encoding: quoted-printable
>>
>>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.
>>
>>
>
>Oh, I see. I didn't know that. I tend to always save changes
>reflexively, so it didn't enter my mind as a possibility. I assume you
>mean that *any* unsaved changes will prompt an abort message?
>

Actually, that's not quite the way it works. It just stats the file
before opening the editor, and again after the editor is closed, and if
there's no change in the size or the mtime, it assumes you haven't
changed it. If you edit it, then make more changes, then exit without
saving, the version you saved will be used. There's really no way to
tell that you had saved then made more changes and not saved them (not
that would work with all editors anyway).

-garrett

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