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

[PATCH] issue 576 (specifying -F without any files to commit)

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2001-12-06 02:15:36 CET

This patch handles bite sized task #576.

We should probably replace the princess bride quote in
SVN_ERR_CL_POTENTIAL_USER_ERROR, but I couldn't think of anything
really descriptive that was also short.

* subversion/client/cmdline/commit-cmd.c

  If the user specified a log message via -F, but didn't specify any
  files to commit, error out, because it probably isn't what they wanted
  to do. (It commits the file with it's contents as the log, which
  doesn't make much sense in most cases.) Allow this behaviour if
  --force is specified.

* subversion/include/svn_error_codes.h

  Add a new error code, SVN_ERR_CL_POTENTIAL_USER_ERROR, for cases
  when the effect of the command given is almost certainly not what the
  user wants to do.

-- 
garrett rooney                     Unix was not designed to stop you from 
rooneg@electricjellyfish.net       doing stupid things, because that would  
http://electricjellyfish.net/      stop you from doing clever things.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Sat Oct 21 14:36:51 2006

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.