You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ha...@apache.org on 2022/09/21 13:31:23 UTC

svn commit: r1904193 - in /subversion/trunk: ./ subversion/libsvn_wc/deprecated.c

Author: hartmannathan
Date: Wed Sep 21 13:31:22 2022
New Revision: 1904193

URL: http://svn.apache.org/viewvc?rev=1904193&view=rev
Log:
SVN-4908: Copy 'locked' from svn_wc_status3_t to svn_wc_status2_t

* subversion/libsvn_wc/deprecated.c
  (svn_wc__status2_from_3): To allow users of deprecated APIs, such as PySVN,
   to detect working copy locked status, copy 'locked' from old_status to
   status.

Found by: Barry Scott (barry {_AT_} barrys-emacs (dot) org)

Reviewed by: rhuijben

Modified:
    subversion/trunk/   (props changed)
    subversion/trunk/subversion/libsvn_wc/deprecated.c

Propchange: subversion/trunk/
------------------------------------------------------------------------------
  Merged /subversion/branches/issue-4908:r1903812-1904192

Modified: subversion/trunk/subversion/libsvn_wc/deprecated.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/deprecated.c?rev=1904193&r1=1904192&r2=1904193&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/deprecated.c (original)
+++ subversion/trunk/subversion/libsvn_wc/deprecated.c Wed Sep 21 13:31:22 2022
@@ -2815,6 +2815,7 @@ svn_wc__status2_from_3(svn_wc_status2_t
     }
 
   (*status)->entry = entry;
+  (*status)->locked = old_status->locked;
   (*status)->copied = old_status->copied;
   (*status)->repos_lock = svn_lock_dup(old_status->repos_lock, result_pool);