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

Re: how can I get wc_root

From: Stephen Butler <sbutler_at_elego.de>
Date: Sun, 21 Jun 2009 14:31:11 +0200

Quoting HuiHuang <yellow.flying_at_yahoo.com.cn>:

> hi Arfrever Frehtes Taifersar Arahesis,
>
>> $ grep uuid subversion/include/*
> Thanks for your help, it really works. I have found what I want.
>
> Now I have another question: Given a path, how can I get the wc_root?
> I find the following function in include/svn_wc.h.
>
> svn_error_t *
> svn_wc_is_wc_root(svn_boolean_t *wc_root,
> const char *path,
> svn_wc_adm_access_t *adm_access,
> apr_pool_t *pool);
> But it is not enough, is there any other function which can do the work?
> Or I have to write a new function by myself?

Hi HuiHuang,

the function already_in_a_tree_conflict() does something similar by
calling check_wc_root() on the given path's ancestor-dirs until it
finds one that isn't part of a working copy.

HTH,

Steve

-- 
Stephen Butler | Software Developer
elego Software Solutions GmbH
Gustav-Meyer-Allee 25 | 13355 Berlin | Germany
fon: +49 30 2345 8696 | mobile: +49 163 25 45 015
fax: +49 30 2345 8695 | http://www.elegosoft.com
Geschäftsführer: Olaf Wagner | Sitz der Gesellschaft: Berlin
Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
Received on 2009-06-21 14:31:32 CEST

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

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