[prev in list] [next in list] [prev in thread] [next in thread]
List: subversion-cvs
Subject: svn commit: r37496 - trunk/subversion/svn
From: Stefan Sperling <stsp () elego ! de>
Date: 2009-04-28 19:00:15
Message-ID: 200904281900.n3SJ0Fs7018061 () svn2 ! sjc ! collab ! net
[Download RAW message or body]
Author: stsp
Date: Tue Apr 28 12:00:14 2009
New Revision: 37496
Log:
* subversion/svn/patch-cmd.c
(svn_cl__patch): No need to check for presence of patch file here,
the client library will throw an error for us if it does not exist.
Modified:
trunk/subversion/svn/patch-cmd.c
Modified: trunk/subversion/svn/patch-cmd.c
URL: http://svn.collab.net/viewvc/svn/trunk/subversion/svn/patch-cmd.c?pathrev=37496&r1=37495&r2=37496
==============================================================================
--- trunk/subversion/svn/patch-cmd.c Tue Apr 28 11:33:36 2009 (r37495)
+++ trunk/subversion/svn/patch-cmd.c Tue Apr 28 12:00:14 2009 (r37496)
@@ -45,23 +45,13 @@ svn_cl__patch(apr_getopt_t *os,
apr_array_header_t *args, *targets;
const char *patch_path = NULL, *target_path = NULL;
- /* Sanity checks */
+ /* Get patch file argument. */
+ SVN_ERR(svn_opt_parse_num_args(&args, os, 1, pool));
+ SVN_ERR(svn_path_get_absolute(&patch_path,
+ APR_ARRAY_IDX(args, 0, const char *),
+ pool));
- /* Against the patch argument */
- {
- svn_node_kind_t patch_path_kind;
-
- SVN_ERR(svn_opt_parse_num_args(&args, os, 1, pool));
- SVN_ERR(svn_path_get_absolute(&patch_path,
- APR_ARRAY_IDX(args, 0, const char *),
- pool));
- SVN_ERR(svn_io_check_path(patch_path, &patch_path_kind, pool));
- if (patch_path_kind == svn_node_none)
- return svn_error_createf(APR_ENOENT, NULL, _("'%s' does not exist"),
- svn_path_local_style(patch_path, pool));
- }
-
- /* Against the WCPATH argument */
+ /* Get WCPATH argument */
SVN_ERR(svn_client_args_to_target_array(&targets, os, opt_state->targets,
ctx, pool));
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=495&dsMessageId=1967240
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic