View | Details | Raw Unified
Collapse All | Expand All

(-) src/svncpp/client_status.cpp (-8 / +39 lines)
 Lines 43-48    Link Here 
    return NULL;
    return NULL;
  }
  }
  struct StatusEntriesBaton {
    apr_pool_t* pool;
    apr_hash_t* hash;
  };
  static void StatusEntriesFunc (void *baton,
                                 const char *path,
                                 svn_wc_status_t *status)
  {
      svn_wc_status_t* stat;
      StatusEntriesBaton* seb = (StatusEntriesBaton*)baton;
      path = apr_pstrdup( seb->pool, path );
      stat = svn_wc_dup_status (status, seb->pool);
      apr_hash_set( seb->hash, path, APR_HASH_KEY_STRING, stat );
  }
  static StatusEntries
  static StatusEntries
  localStatus (const char * path,
  localStatus (const char * path,
               const bool descend,
               const bool descend,
 Lines 56-66    Link Here 
    apr_hash_t *status_hash;
    apr_hash_t *status_hash;
    svn_revnum_t revnum;
    svn_revnum_t revnum;
    Pool pool;
    Pool pool;
    StatusEntriesBaton baton;
    status_hash = apr_hash_make( pool );
    baton.hash = status_hash;
    baton.pool = pool;
    error = svn_client_status (
    error = svn_client_status (
      &status_hash, // pointer to hash
      &revnum,      // revnum
      &revnum,      // revnum
      path,         // path
      path,         // path
      0,
      StatusEntriesFunc, // status func
      &baton,        // status baton
      descend,
      descend,
      get_all,
      get_all,
      update,
      update,
 Lines 182-197    Link Here 
    svn_error_t *error;
    svn_error_t *error;
    apr_hash_t *status_hash;
    apr_hash_t *status_hash;
    Pool pool;
    Pool pool;
    StatusEntriesBaton baton;
    status_hash = apr_hash_make( pool );
    baton.hash = status_hash;
    baton.pool = pool;
    error = svn_client_status (
    error = svn_client_status (
      &status_hash, // pointer to hash
      0,      // revnum
      NULL,         // revnum
      path,         // path
      path,         // path
      false,        // descend
      0,
      true,         // get all
      StatusEntriesFunc, // status func
      false,        //update
      &baton,        // status baton
      false,        //no_ignore,
      false,
      *context,   //client ctx
      true,
      false,
      false,
      *context,    //client ctx
      pool);
      pool);
    if (error != NULL)
    if (error != NULL)
(-) src/svncpp/property.cpp (-3 / +3 lines)
 Lines 137-143    Link Here 
      = svn_string_create ((const char *) value, pool);
      = svn_string_create ((const char *) value, pool);
    const char *pname_utf8;
    const char *pname_utf8;
    svn_utf_cstring_to_utf8 (&pname_utf8, name, NULL, pool);
    svn_utf_cstring_to_utf8 (&pname_utf8, name, pool);
    svn_error_t * error = 
    svn_error_t * error = 
      svn_client_propset (pname_utf8, propval, m_path.c_str (),
      svn_client_propset (pname_utf8, propval, m_path.c_str (),
 Lines 152-158    Link Here 
    Pool pool;
    Pool pool;
    const char *pname_utf8;
    const char *pname_utf8;
    svn_utf_cstring_to_utf8 (&pname_utf8, name, NULL, pool);
    svn_utf_cstring_to_utf8 (&pname_utf8, name, pool);
    svn_error_t * error = 
    svn_error_t * error = 
      error = svn_client_propset (pname_utf8, 
      error = svn_client_propset (pname_utf8, 
 Lines 171-177    Link Here 
    Pool pool;
    Pool pool;
    const char *pname_utf8;
    const char *pname_utf8;
    svn_utf_cstring_to_utf8 (&pname_utf8, name, NULL, pool);
    svn_utf_cstring_to_utf8 (&pname_utf8, name, pool);
    svn_boolean_t is_svn_prop = svn_prop_is_svn_prop (pname_utf8);
    svn_boolean_t is_svn_prop = svn_prop_is_svn_prop (pname_utf8);
    return is_svn_prop;
    return is_svn_prop;