Author: rhuijben
Date: Sun Jan 20 13:32:51 2013
New Revision: 1435839
URL: http://svn.apache.org/viewvc?rev=1435839&view=rev
Log:
* subversion/libsvn_wc/adm_ops.c
(svn_wc_add_lock2,
svn_wc_remove_lock2): Add disabled write check, as the callers are currently
not properly obtaining a lock.
Modified:
subversion/trunk/subversion/libsvn_wc/adm_ops.c
Modified: subversion/trunk/subversion/libsvn_wc/adm_ops.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/adm_ops.c?rev=1435839&r1=1435838&r2=1435839&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/adm_ops.c (original)
+++ subversion/trunk/subversion/libsvn_wc/adm_ops.c Sun Jan 20 13:32:51 2013
@@ -1175,6 +1175,11 @@ svn_wc_add_lock2(svn_wc_context_t *wc_ct
SVN_ERR_ASSERT(svn_dirent_is_absolute(local_abspath));
+ /* ### Enable after fixing callers */
+ /*SVN_ERR(svn_wc__write_check(wc_ctx->db,
+ svn_dirent_dirname(local_abspath, scratch_pool),
+ scratch_pool));*/
+
db_lock.token = lock->token;
db_lock.owner = lock->owner;
db_lock.comment = lock->comment;
@@ -1224,6 +1229,11 @@ svn_wc_remove_lock2(svn_wc_context_t *wc
SVN_ERR_ASSERT(svn_dirent_is_absolute(local_abspath));
+ /* ### Enable after fixing callers */
+ /*SVN_ERR(svn_wc__write_check(wc_ctx->db,
+ svn_dirent_dirname(local_abspath, scratch_pool),
+ scratch_pool));*/
+
err = svn_wc__db_lock_remove(wc_ctx->db, local_abspath, scratch_pool);
if (err)
{