You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2014/04/04 16:10:42 UTC

svn commit: r1584702 - /subversion/branches/1.8.x-serf-no-lock-support/subversion/libsvn_ra_serf/getlocks.c

Author: rhuijben
Date: Fri Apr  4 14:10:41 2014
New Revision: 1584702

URL: http://svn.apache.org/r1584702
Log:
After discussion on irc: revert r1584585

Modified:
    subversion/branches/1.8.x-serf-no-lock-support/subversion/libsvn_ra_serf/getlocks.c

Modified: subversion/branches/1.8.x-serf-no-lock-support/subversion/libsvn_ra_serf/getlocks.c
URL: http://svn.apache.org/viewvc/subversion/branches/1.8.x-serf-no-lock-support/subversion/libsvn_ra_serf/getlocks.c?rev=1584702&r1=1584701&r2=1584702&view=diff
==============================================================================
--- subversion/branches/1.8.x-serf-no-lock-support/subversion/libsvn_ra_serf/getlocks.c (original)
+++ subversion/branches/1.8.x-serf-no-lock-support/subversion/libsvn_ra_serf/getlocks.c Fri Apr  4 14:10:41 2014
@@ -264,18 +264,11 @@ svn_ra_serf__get_locks(svn_ra_session_t 
 
   /* We get a 404 when a path doesn't exist in HEAD, but it might
      have existed earlier (E.g. 'svn ls http://s/svn/trunk/file@1' */
-  if (handler->sline.code != 200
-      && handler->sline.code != 404)
+  if (handler->sline.code != 404)
     {
-      svn_error_t *err = svn_ra_serf__error_on_status(handler->sline,
-                                                      handler->path,
-                                                      handler->location);
-
-      if (handler->sline.code == 500 || handler->sline.code == 501)
-        return svn_error_create(SVN_ERR_RA_NOT_IMPLEMENTED, err,
-                                _("Server does not support locking features"));
-
-      SVN_ERR(err);
+      SVN_ERR(svn_ra_serf__error_on_status(handler->sline,
+                                           handler->path,
+                                           handler->location));
     }
 
   *locks = lock_ctx->hash;