Adolfo Builes <[email protected]> added the comment:

The sources files is written each time we are copying a repository, what
happens is that when darcs tries to identify a repository it calls
Repository.Prefs.getCache , this function always include in  the cache the
global one unless --no-cache is given, and then when saving it to sources,
it just copies everything that is in the Cache of the repository.

My first approach was appending NoCache to the list of flags, but then I
realized that darcs wouldn't use the global cache, because it wasn't in the
Cache, so in that case we were losing the advantages offered by it,
specially if we were getting a remote one. So I modified the cache just
before saving it to the sources file, dropping the global cache out of the
list of sources.

--
Adolfo

On Sat, Jun 5, 2010 at 8:57 PM, Adolfo Builes <[email protected]> wrote:

>
> New submission from Adolfo Builes <[email protected]>:
>
> 1 patch for repository http://darcs.net:
>
> Sat Jun  5 20:39:05 COT 2010  [email protected]
>  * Resolve Issue1210: global cache gets recorded in _darcs/prefs/sources
>
> ----------
> files:
> resolve-issue1210_-global-cache-gets-recorded-in-_darcs_prefs_sources.dpatch,
> unnamed
> messages: 11248
> nosy: builes.adolfo
> status: needs-review
> title: Resolve Issue1210: global cache gets recorded in _darc...
>
> __________________________________
> Darcs bug tracker <[email protected]>
> <http://bugs.darcs.net/patch266>
> __________________________________

__________________________________
Darcs bug tracker <[email protected]>
<http://bugs.darcs.net/patch266>
__________________________________
The sources files is written each time we are copying a repository, what  happens is that when darcs tries to identify a repository it calls Repository.Prefs.getCache , this function always include in  the cache the global one unless --no-cache is given, and then when saving it to sources, it just copies everything that is in the Cache of the repository.

My first approach was appending NoCache to the list of flags, but then I realized that darcs wouldn't use the global cache, because it wasn't in the Cache, so in that case we were losing the advantages offered by it, specially if we were getting a remote one. So I modified the cache just before saving it to the sources file, dropping the global cache out of the list of sources.

--
Adolfo

On Sat, Jun 5, 2010 at 8:57 PM, Adolfo Builes <[email protected]> wrote:

New submission from Adolfo Builes <[email protected]>:

1 patch for repository http://darcs.net:

Sat Jun  5 20:39:05 COT 2010  [email protected]
 * Resolve Issue1210: global cache gets recorded in _darcs/prefs/sources

----------
files: resolve-issue1210_-global-cache-gets-recorded-in-_darcs_prefs_sources.dpatch, unnamed
messages: 11248
nosy: builes.adolfo
status: needs-review
title: Resolve Issue1210: global cache gets recorded in _darc...

__________________________________
Darcs bug tracker <[email protected]>
<http://bugs.darcs.net/patch266>
__________________________________

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to