You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "罗勇刚 (Yonggang Luo)" <lu...@gmail.com> on 2012/03/11 15:43:42 UTC

I want to know did svn_wc_entry support for path like D:\Path\To\Repo? or we must to use path like D:/Path/To/Repo

typedef struct {
PyObject_HEAD
svn_wc_adm_access_t *adm;
 apr_pool_t *pool;
} AdmObject;
AdmObject admobj;

temp_pool = Pool(NULL);
 if (temp_pool == NULL)
return NULL;
RUN_SVN_WITH_POOL(temp_pool, svn_wc_entry(&entry,
svn_path_canonicalize(path, temp_pool), admobj->adm, show_hidden,
temp_pool));


-- 
         此致
礼
罗勇刚
Yours
    sincerely,
Yonggang Luo

Re: I want to know did svn_wc_entry support for path like D:\Path\To\Repo? or we must to use path like D:/Path/To/Repo

Posted by "罗勇刚 (Yonggang Luo)" <lu...@gmail.com>.
>
> > > Yes to the second question, see svn_path.h and svn_dirent_uri.h
>>
> Did that means I need to use
 const char *  svn_dirent_internal_style<http://subversion.apache.org/docs/api/1.6/svn__dirent__uri_8h.html#abb108de5b05a645a22b78a6b90b6d77d>
(const
char *dirent, apr_pool_t *pool)   Convert *dirent* from the local style to
the canonical internal style.
<http://subversion.apache.org/docs/api/1.6/svn__dirent__uri_8h.html#abb108de5b05a645a22b78a6b90b6d77d>
 const char *  svn_dirent_local_style<http://subversion.apache.org/docs/api/1.6/svn__dirent__uri_8h.html#acd43577b7c36448031ac25595f506bcb>
(const
char *dirent, apr_pool_t *pool)   Convert *dirent* from the canonical
internal style to the local style.
 to convert paths?

>  > >
>> > > 罗勇刚(Yonggang Luo)  wrote on Sun, Mar 11, 2012 at 22:43:42 +0800:
>> > > > typedef struct {
>> > > > PyObject_HEAD
>> > > > svn_wc_adm_access_t *adm;
>> > > >  apr_pool_t *pool;
>> > > > } AdmObject;
>> > > > AdmObject admobj;
>> > > >
>> > > > temp_pool = Pool(NULL);
>> > > >  if (temp_pool == NULL)
>> > > > return NULL;
>> > > > RUN_SVN_WITH_POOL(temp_pool, svn_wc_entry(&entry,
>> > > > svn_path_canonicalize(path, temp_pool), admobj->adm, show_hidden,
>> > > > temp_pool));
>> > > >
>> > > >
>> > > > --
>> > > >          此致
>> > > > 礼
>> > > > 罗勇刚
>> > > > Yours
>> > > >     sincerely,
>> > > > Yonggang Luo
>> > >
>> >
>> >
>> >
>> > --
>> >          此致
>> > 礼
>> > 罗勇刚
>> > Yours
>> >     sincerely,
>> > Yonggang Luo
>>
>
>


-- 
         此致
礼
罗勇刚
Yours
    sincerely,
Yonggang Luo

Re: I want to know did svn_wc_entry support for path like D:\Path\To\Repo? or we must to use path like D:/Path/To/Repo

Posted by 罗勇刚 <lu...@gmail.com>.
The problem I face is,  svn_path_canonicalize not works on Windows in this 
function:
http://bazaar.launchpad.net/~jelmer/subvertpy/trunk/view/head:/subvertpy/wc.c#L803
 

On Tuesday, March 13, 2012 4:09:33 AM UTC+8, Daniel Shahaf wrote:
>
> Normally you need svn_path_canonicalize().  In recent releases it's
> deprecated in favour of svn_dirent_canonicalize(),
> svn_relpath_canonicalize(), and svn_uri_canonicalize().
>
> 罗勇刚(Yonggang Luo)  wrote on Tue, Mar 13, 2012 at 00:48:55 +0800:
> > Is these two api is needed to be used for covert path
> > C:\Path\To something to C:/Path/To
> > 
> > /** Convert @a path from the local style to the canonical internal 
> style. */
> > const char *
> > svn_path_internal_style(const char *path, apr_pool_t *pool);
> > 
> > /** Convert @a path from the canonical internal style to the local 
> style. */
> > const char *
> > svn_path_local_style(const char *path, apr_pool_t *pool);
> > 
> > 
> > 
> > > Yes to the second question, see svn_path.h and svn_dirent_uri.h
> > >
> > > 罗勇刚(Yonggang Luo)  wrote on Sun, Mar 11, 2012 at 22:43:42 +0800:
> > > > typedef struct {
> > > > PyObject_HEAD
> > > > svn_wc_adm_access_t *adm;
> > > >  apr_pool_t *pool;
> > > > } AdmObject;
> > > > AdmObject admobj;
> > > >
> > > > temp_pool = Pool(NULL);
> > > >  if (temp_pool == NULL)
> > > > return NULL;
> > > > RUN_SVN_WITH_POOL(temp_pool, svn_wc_entry(&entry,
> > > > svn_path_canonicalize(path, temp_pool), admobj->adm, show_hidden,
> > > > temp_pool));
> > > >
> > > >
> > > > --
> > > >          此致
> > > > 礼
> > > > 罗勇刚
> > > > Yours
> > > >     sincerely,
> > > > Yonggang Luo
> > >
> > 
> > 
> > 
> > -- 
> >          此致
> > 礼
> > 罗勇刚
> > Yours
> >     sincerely,
> > Yonggang Luo
>

Re: I want to know did svn_wc_entry support for path like D:\Path\To\Repo? or we must to use path like D:/Path/To/Repo

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Normally you need svn_path_canonicalize().  In recent releases it's
deprecated in favour of svn_dirent_canonicalize(),
svn_relpath_canonicalize(), and svn_uri_canonicalize().

罗勇刚(Yonggang Luo)  wrote on Tue, Mar 13, 2012 at 00:48:55 +0800:
> Is these two api is needed to be used for covert path
> C:\Path\To something to C:/Path/To
> 
> /** Convert @a path from the local style to the canonical internal style. */
> const char *
> svn_path_internal_style(const char *path, apr_pool_t *pool);
> 
> /** Convert @a path from the canonical internal style to the local style. */
> const char *
> svn_path_local_style(const char *path, apr_pool_t *pool);
> 
> 
> 2012/3/12 Daniel Shahaf <d....@daniel.shahaf.name>
> 
> > Yes to the second question, see svn_path.h and svn_dirent_uri.h
> >
> > 罗勇刚(Yonggang Luo)  wrote on Sun, Mar 11, 2012 at 22:43:42 +0800:
> > > typedef struct {
> > > PyObject_HEAD
> > > svn_wc_adm_access_t *adm;
> > >  apr_pool_t *pool;
> > > } AdmObject;
> > > AdmObject admobj;
> > >
> > > temp_pool = Pool(NULL);
> > >  if (temp_pool == NULL)
> > > return NULL;
> > > RUN_SVN_WITH_POOL(temp_pool, svn_wc_entry(&entry,
> > > svn_path_canonicalize(path, temp_pool), admobj->adm, show_hidden,
> > > temp_pool));
> > >
> > >
> > > --
> > >          此致
> > > 礼
> > > 罗勇刚
> > > Yours
> > >     sincerely,
> > > Yonggang Luo
> >
> 
> 
> 
> -- 
>          此致
> 礼
> 罗勇刚
> Yours
>     sincerely,
> Yonggang Luo

Re: I want to know did svn_wc_entry support for path like D:\Path\To\Repo? or we must to use path like D:/Path/To/Repo

Posted by "罗勇刚 (Yonggang Luo)" <lu...@gmail.com>.
Is these two api is needed to be used for covert path
C:\Path\To something to C:/Path/To

/** Convert @a path from the local style to the canonical internal style. */
const char *
svn_path_internal_style(const char *path, apr_pool_t *pool);

/** Convert @a path from the canonical internal style to the local style. */
const char *
svn_path_local_style(const char *path, apr_pool_t *pool);


2012/3/12 Daniel Shahaf <d....@daniel.shahaf.name>

> Yes to the second question, see svn_path.h and svn_dirent_uri.h
>
> 罗勇刚(Yonggang Luo)  wrote on Sun, Mar 11, 2012 at 22:43:42 +0800:
> > typedef struct {
> > PyObject_HEAD
> > svn_wc_adm_access_t *adm;
> >  apr_pool_t *pool;
> > } AdmObject;
> > AdmObject admobj;
> >
> > temp_pool = Pool(NULL);
> >  if (temp_pool == NULL)
> > return NULL;
> > RUN_SVN_WITH_POOL(temp_pool, svn_wc_entry(&entry,
> > svn_path_canonicalize(path, temp_pool), admobj->adm, show_hidden,
> > temp_pool));
> >
> >
> > --
> >          此致
> > 礼
> > 罗勇刚
> > Yours
> >     sincerely,
> > Yonggang Luo
>



-- 
         此致
礼
罗勇刚
Yours
    sincerely,
Yonggang Luo

Re: I want to know did svn_wc_entry support for path like D:\Path\To\Repo? or we must to use path like D:/Path/To/Repo

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Yes to the second question, see svn_path.h and svn_dirent_uri.h

罗勇刚(Yonggang Luo)  wrote on Sun, Mar 11, 2012 at 22:43:42 +0800:
> typedef struct {
> PyObject_HEAD
> svn_wc_adm_access_t *adm;
>  apr_pool_t *pool;
> } AdmObject;
> AdmObject admobj;
> 
> temp_pool = Pool(NULL);
>  if (temp_pool == NULL)
> return NULL;
> RUN_SVN_WITH_POOL(temp_pool, svn_wc_entry(&entry,
> svn_path_canonicalize(path, temp_pool), admobj->adm, show_hidden,
> temp_pool));
> 
> 
> -- 
>          此致
> 礼
> 罗勇刚
> Yours
>     sincerely,
> Yonggang Luo