[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn_wc_prop_set4 not working as expected.

From: <lfdonald_at_rockwellcollins.com>
Date: Fri, 22 Jun 2012 11:15:57 -0500

Hello,
  I'm trying to use svn_wc_prop_set4 to set a property on my local working
copy (1.7) and I keep getting the error:

No write-lock in 'T:\VIP00192\test_1.7\LFD_Dev_14'

OS: Windows
Compiler: visual c++
SVN package: svn-win32-1.7.5

Leslie Donaldson

Boiled down code:

    apr_pool_t* pool = NULL;
    pool = svn_pool_create(NULL);
    svn_fs_initialize (pool);
    svn_config_ensure (NULL, pool);
    apr_hash_t* cfg_hash = NULL;
    svn_config_get_config(&cfg_hash, NULL, pool);
    svn_config_t* cfg_config = (svn_config_t *)apr_hash_get(cfg_hash,
SVN_CONFIG_CATEGORY_CONFIG, APR_HASH_KEY_STRING);
    svn_wc_context_t* wc_ctx = NULL;
    svn_wc_context_create(&wc_ctx,cfg_config,result_pool,scratch_pool);

    char * name = "svn:externals";
 
svn_wc_prop_set4(wc_ctx,FullPath,name,&value,svn_depth_empty,FALSE,NULL,NULL,NULL,NULL,NULL,scratch_pool);

   char* FullPath = "T:/VIP00192/test_1.7/LFD_Dev_14"
   svn_string_t value; is a list of externals.
 
Received on 2012-06-25 07:49:07 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.