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

[PATCH] suggest --parents in mkdir (serf testers?)

From: David Glasser <glasser_at_mit.edu>
Date: 2007-05-18 17:03:56 CEST

The following patch tries to add a suggestion of --parents to "svn
mkdir" when it fails. (Similar patches should probably be written for
"svn add" and "svn copy".)

It tests against a different error code for wc, ra_local, and ra_dav.
Can somebody test that it works correctly with ra_serf? (Just do "svn
mkdir http://path/to/some/repo/and/then/a/bunch/of/extra/paths -m bla"
and see if it suggests --parents.)

(Also, on IRC Malcolm noted that while the error for "svn mkdir
/foo/a" says that /foo is not a WC (where /foo exists), the error for
"svn mkdir /foo/a/b/c/d/e" just says "file not found" (and now would
suggest --parents). Mike suggested that svn_client_mkdir3 should be
smarter about reporting *which* parent doesn't exist, in the non-
--parents case.)

--dave

-- 
David Glasser | glasser_at_mit.edu | http://www.davidglasser.net/


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

Received on Fri May 18 17:04:34 2007

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