Matthew Good wrote:
> On Fri, 2006-08-04 at 20:24 +0530, K.S.Sreeram wrote:
>> I've got a new version of the trac-darcs plugin. Its a major rehaul of
>> the code, and fixes various rename/move bugs. It currently uses a
>> separate set of db tables to store repo history. It also uses Alberto
>> Bertogli's ann2ascii to fetch a particular snapshot of a file.
> 
> Very cool.
> 
> However, I wonder if the patches to the Trac source are necessary.  IIUC
> the plan is to have a "namespace package" called "tracvc" that version
> control plugins will install under and they will be automatically
> enabled.  I'm not sure what the status is in the trunk for this, so
> maybe the patches will be necessary until some further refactoring of
> the version control layer is done.
> 
> Cboos, can you comment on that?

trac-darcs can be used as a separate plugin to trac without requiring
any changes to trac itself. The patches in the source repo are for
integrating trac-darcs *into* the trac code itself. (but i wonder if
anybody needs to do that, perhaps we can remove these patches from the
repo...)

> 
>> Note:
>> Any operation which involves fetching the contents of a file from the
>> repo is very slow, i.e 'darcs annotate + ann2ascii' is pretty slow. But
>> the output is cached in the db, so future access to the same snapshot of
>> the file will be fast.
> 
> Does that mean you're storing a full copy of each version of each file
> accessed?  It seems like that would start taking up a lot of disk space.

Unfortunately, in darcs, there's no direct and simple way to access a
older version of a file. Right now 'darcs annotate + ann2ascii' is used
to fetch the data. Since this is slow, caching is a must.

This isn't too bad because only those verions of files, which are
accessed thru the webui, are cached.

The cache is stored in the 'darcs_cache' table in the trac db, and this
can be cleared if it gets too big.

[sreeram;]

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
darcs-users mailing list
darcs-users@darcs.net
http://www.abridgegame.org/mailman/listinfo/darcs-users

Reply via email to