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

Re: Prevent accidental commits

From: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Wed, 11 Jun 2008 17:00:26 -0500

On Jun 11, 2008, at 01:36, Jeenu V wrote:

> I'm wondering whether there's a means by which I can prevent myself
> from an accidental commit, from a particular directory in my
> working copy. Most of the times, I do an "svn ci" from a top-level
> directory, oblivious about a not-ready-to-commit change in some of
> the sub-directories. I realize the mistake mostly when I see the
> "sending ..." messages from the commit command.
>
> I thought I could use the "svn lock" but, IIUC, that only prevents
> others from making commits. I was thinking of some client-side
> hooks to assist me, and AFAIK, that's not supported by SVN.

Right, "svn lock" is not applicable, and there are no client-side hooks.

The correct solution is probably to look at the output of "svn
status" and "svn diff" and make sure that you really want to commit
all shown differences. Only then should you run "svn commit".

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-12 00:00:56 CEST

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

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