subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1133352 - /subversion/trunk/subversion/svn/status.c
Date Wed, 08 Jun 2011 11:40:03 GMT
Author: julianfoad
Date: Wed Jun  8 11:40:03 2011
New Revision: 1133352

URL: http://svn.apache.org/viewvc?rev=1133352&view=rev
Log:
* subversion/svn/status.c
  (svn_cl__print_status_xml): Don't analyze the lock to try to detect WC
    corruption here, just print the information that is available,
    because this function's purpose is simply to provide information
    and this check was not apparently serving any particular need.
    It was introduced in the original code submission in r854995.

Modified:
    subversion/trunk/subversion/svn/status.c

Modified: subversion/trunk/subversion/svn/status.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/status.c?rev=1133352&r1=1133351&r2=1133352&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/status.c (original)
+++ subversion/trunk/subversion/svn/status.c Wed Jun  8 11:40:03 2011
@@ -366,14 +366,7 @@ svn_cl__print_status_xml(const char *pat
 
       svn_cl__xml_tagged_cdata(&sb, pool, "token", status->lock->token);
 
-      /* If lock_owner is NULL, assume WC is corrupt. */
-      if (status->lock->owner)
-        svn_cl__xml_tagged_cdata(&sb, pool, "owner",
-                                 status->lock->owner);
-      else
-        return svn_error_createf(SVN_ERR_WC_CORRUPT, NULL,
-                                 _("'%s' has lock token, but no lock owner"),
-                                 svn_dirent_local_style(path, pool));
+      svn_cl__xml_tagged_cdata(&sb, pool, "owner", status->lock->owner);
 
       svn_cl__xml_tagged_cdata(&sb, pool, "comment",
                                status->lock->comment);



Mime
View raw message