Logo Search packages:      
Sourcecode: rapidsvn version File versions  Download package

std::pair< svn_revnum_t, PropertiesMap > svn::Client::revproplist ( const Path path,
const Revision revision 
)

lists revision properties in path no matter whether local or repository

Parameters:
path 
revision 
Returns:
PropertiesList
lists revision properties in path no matter whether local or repository

Parameters:
path 
revision 
recurse 
Returns:
PropertiesList

Definition at line 231 of file client_property.cpp.

References svn::Path::c_str(), and svn::Revision::revision().

  {
    Pool pool;

    apr_hash_t * props;
    svn_revnum_t revnum;
    svn_error_t * error =
      svn_client_revprop_list(&props,
                              path.c_str(),
                              revision.revision(),
                              &revnum,
                              *m_context,
                              pool);
    if (error != NULL)
    {
      throw ClientException(error);
    }

    PropertiesMap prop_map;

    apr_hash_index_t *hi;
    for (hi = apr_hash_first(pool, props); hi;
         hi = apr_hash_next(hi))
    {
      const void *key;
      void *val;

      apr_hash_this(hi, &key, NULL, &val);

      prop_map [std::string((const char *)key)] =
        std::string(((const svn_string_t *)val)->data);
    }

    return std::pair<svn_revnum_t,PropertiesMap> (revnum, prop_map);
  }


Generated by  Doxygen 1.6.0   Back to index