[darcs-users] darcs patch: enable global cache by default

David Roundy droundy at darcs.net
Mon Oct 27 18:49:14 UTC 2008


On Sun, Oct 26, 2008 at 03:50:47PM -0700, Simon Michael wrote:
> Amend: typos in formats.tex
> 
> Sun Oct 26 10:11:25 PDT 2008  Simon Michael <simon at joyful.com>
>   * explain global cache a little more clearly
> 
> Sun Oct 26 15:03:54 PDT 2008  Simon Michael <simon at joyful.com>
>   * refactor get_global, make it more cross-platform
>   get_global fetches global preferences from the user's ~/.darcs directory.
>   This patch uses the more portable getAppUserDataDirectory, so global
>   prefs will work on windows without requiring a HOME environment
>   variable, and will be stored in the standard windows app data dir
>   (eg C:/Documents And Settings/user/Application Data/darcs).
>   Cf http://hackage.haskell.org/trac/ghc/ticket/1838 .
>   It also reduces the use of error-hiding catchall.
> 
> Sun Oct 26 15:50:04 PDT 2008  Simon Michael <simon at joyful.com>
>   * resolve issue0839: enable global cache by default

Applied, thanks! The code looks fine to me (at a quick skim), provided that
windows is happy with mixes of '/' and '\\' as file separator, which I
believe to be the case.

I do have one request:  we should have instructions for removing the global
cache, or at least for cleaning it out...

David


More information about the darcs-users mailing list