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

Re: Re: How to open specified inside .svn

From: wuzhouhui <wuzhouhui14_at_mails.ucas.ac.cn>
Date: Fri, 1 Mar 2019 17:46:55 +0800 (GMT+08:00)

> -----Original Messages-----
> From: "Branko Čibej" <brane_at_apache.org>
> Sent Time: 2019-03-01 17:16:40 (Friday)
> To: users_at_subversion.apache.org
> Cc:
> Subject: Re: How to open specified inside .svn
>
> On 01.03.2019 04:58, wuzhouhui wrote:
> >> -----Original Messages-----
> >> From: "Ralph Seichter" <abbot_at_monksofcool.net>
> >> Sent Time: 2019-03-01 11:46:52 (Friday)
> >> To: users_at_subversion.apache.org
> >> Cc:
> >> Subject: Re: How to open specified inside .svn
> >>
> >> * wuzhouhui:
> >>
> >>> Could someone remind me that which function can be used to open
> >>> .svn/Adir/Afile in client?
> >> I'm not sure I understand what you are trying to achieve? The .svn
> >> directories (and contents) should not be accessed directly. That's what
> >> the SVN client is for.
> > I want svn to support working copy hooks (just for my own use), so I want
> > svn to execute .svn/hooks/pre-commit if possible. I want to know which
> > functions can be used to open and execute .svn/hooks/pre-commit.
>
>
> There are no such generic functions. The svn_wc API isn't really meant
> to be public, so you'll have to write your own access functions. Look at
> how the svn_client implementations do it, or for example
> svn_wc__get_pristine_contents_by_checksum in svn_wc_private.h.

Actually, I'm hacking Subversion client command line tool, so it
doesn't matter whether the API is public or private. I will check how svn
open files within .svn (e.g. wc.db or wc.db-journal), and learn from them.

Thanks.

>
> -- Brane
Received on 2019-03-01 10:47:23 CET

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.