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

RE: some questions about wc-ng

From: Bert Huijben <rhuijben_at_sharpsvn.net>
Date: Mon, 27 Jul 2009 10:38:57 +0200

> -----Original Message-----
> From: HuiHuang [mailto:yellow.flying_at_yahoo.com.cn]
> Sent: zondag 26 juli 2009 10:27
> To: dev_at_subversion.tigris.org
> Cc: Stefan Sperling; Hyrum K. Wright
> Subject: some questions about wc-ng
>
> Hey Stefan, Hyrum,
>
> I have read the following files recently and I have some questions:
> 1) notes/wc-ng-design
> 2) libsvn_wc/wc-metadata.sql
> 3) libsvn_wc/wc_db.h
> 4) Read the "State of the WC-NG World" thread on dev@
>
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageI
> d=2373285
>
> >In the thread "State of the WC-NG World" gstein said
> >"It is being replaced with svn_wc_context_t which is constructed once
> and
> >used for all operations across all directories and even across
> >distinct working copies. Essentially, a process can create one at
> >startup and use it for all calls."
>
> But how can we use svn_wc_context_t across distinct working copies?
> svn_wc_context_t is an opaque structure which contains a pointer to an
> svn_wc__db_t. As I understand we have one-db-per-working copy right
> now. So if we want to use svn_wc_context_t across distinct wc, should
> it contain multiple svn_wc__db_t?

By definition you will only need one svn_wc_context_t. It will always handle all working copies for you, whether they have one database or not. You should never need more than one svn_wc_context_t database instance, unless you are going to use them concurrently (e.g. multithreading or from callbacks).

> >Another big change is removing the old "loggy" mechanism in favor of a
> >sqlite-based queue of operations to perform (essentially where we need
> >to "transact" changes across sqlite and the filesystem).
>
> I saw work_queue table in libsvn_wc/wc-metadata.sql and I do not know
> what "work" really is. Is it the same thing as "sqlite-based queue of
> operations" mentioned above?

Yes, it is the same thing.

        Bert

> I am tring to follow the dev@ and svn@ maillist. But some topics in
> them are
> a little hard for me to understand and it takes me lot of time to read
> them.
> Any good suggestions to deal with the mails? :)
>
> I am not very clear on where to begin my new work right now. My plan is
> in
> the next few days:
> 1) Read more docs and make myself more clear about wn-ng.
> 2) Try to remove svn_wc_entry_t and svn_wc_adm_access_t reference in
> libsvn_wc and libsvn_client, especially in functions about commit, and
> use
> svn_wc_context>t instead.
> 3) Try to understand how can we do commit based on wc-ng.
>
> Best
> Huihuang
>
> --------------
> yellow.flying
> 2009-07-26
>
> __________________________________________________
> 赶快注册雅虎超大容量免费邮箱?
> http://cn.mail.yahoo.com
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageI
> d=2375622

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2375783
Received on 2009-07-27 10:39:18 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.