Author: julianfoad
Date: Thu Dec  3 17:14:21 2009
New Revision: 886853

URL: http://svn.apache.org/viewvc?rev=886853&view=rev
Log:
Provide a better error message when a command like "svn diff ^/foo ^/bar" is
run outside of a WC. Previously the error was: "'<CWD>' is not under version
control" which did not help to explain why svn cared about the path <CWD>.

* subversion/libsvn_client/cmdline.c
  (svn_client_args_to_target_array): Provide a specific error message for
    the case where no repository root can be found for resolving '^/'.

Modified:
    subversion/trunk/subversion/libsvn_client/cmdline.c

Modified: subversion/trunk/subversion/libsvn_client/cmdline.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/cmdline.c?rev=886853&r1=886852&r2=886853&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/cmdline.c (original)
+++ subversion/trunk/subversion/libsvn_client/cmdline.c Thu Dec  3 17:14:21 2009
@@ -281,7 +281,9 @@
        * arguments.
        */
       if (root_url == NULL)
-        SVN_ERR(svn_client_root_url_from_path(&root_url, "", ctx, pool));
+        SVN_ERR_W(svn_client_root_url_from_path(&root_url, "", ctx, pool),
+                  "Resolving '^/': no repository root found in the "
+                  "target arguments or in the current directory");
 
       *targets_p = apr_array_make(pool, output_targets->nelts,
                                   sizeof(const char *));


Reply via email to