darcs

Patch 220 Haddock for Darcs.Repository.Cache.unionRemoteCaches.

Title Haddock for Darcs.Repository.Cache.unionRemoteCaches.
Superseder Nosy List darcs-users, dmitry.kurochkin, galbolle, kowey
Related Issues
Status accepted Assigned To galbolle
Milestone

Created on 2010-04-25.12:08:49 by dmitry.kurochkin, last changed 2011-05-10.22:06:55 by darcswatch. Tracked on DarcsWatch.

Files
File name Status Uploaded Type Edit Remove
haddock-for-darcs_repository_cache_unionremotecaches_.dpatch dmitry.kurochkin, 2010-04-25.12:08:49 text/x-darcs-patch
unnamed dmitry.kurochkin, 2010-04-25.12:08:49 text/plain
See mailing list archives for discussion on individual patches.
Messages
msg10810 (view) Author: dmitry.kurochkin Date: 2010-04-25.12:08:49
1 patch for repository http://darcs.net:

Sun Apr 25 16:05:59 MSD 2010  Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
  * Haddock for Darcs.Repository.Cache.unionRemoteCaches.
Attachments
msg10850 (view) Author: kowey Date: 2010-04-27.13:22:12
On Sun, Apr 25, 2010 at 12:08:49 +0000, Dmitry Kurochkin wrote:
> Sun Apr 25 16:05:59 MSD 2010  Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
>   * Haddock for Darcs.Repository.Cache.unionRemoteCaches.

Looks good to me.

> +-- | unionRemoteCaches merges caches. It tries to do better than just blindly
> +--   copying remote cache entries:
> +--
> +--   * If remote repository is accessed through network, do not copy any cache
> +--     entries from it. Taking local entries does not make sense and using
> +--     network entries can lead to darcs hang when it tries to get to
> +--     unaccessible host.
> +--
> +--   * If remote repositoty is local, copy all network cache entries. For local
> +--     cache entries if the cache directory exists and is writable it is added
> +--     as writable cache, if it exists but is not writable it is added as
> +--     read-only cache.
> +--
> +--   This approach should save us from bogus cache entries. One case it does not
> +--   work very well is when you fetch from partial repository over network.
> +--   Hopefully this is not a common case.
>  unionRemoteCaches :: Cache -> Cache -> String -> IO (Cache)
>  unionRemoteCaches local (Ca remote) repourl
>      | is_file repourl = do f <- filtered

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
msg10871 (view) Author: darcswatch Date: 2010-04-27.20:05:51
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-764708f2f7b271e993cfc3930178471efe83edbe
msg14394 (view) Author: darcswatch Date: 2011-05-10.22:06:55
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/reviewed.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_reviewed.html#bundle-764708f2f7b271e993cfc3930178471efe83edbe
History
Date User Action Args
2010-04-25 12:08:49dmitry.kurochkincreate
2010-04-25 12:09:46darcswatchsetdarcswatchurl: http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-764708f2f7b271e993cfc3930178471efe83edbe
2010-04-26 13:02:30galbollesetstatus: needs-review -> accepted-pending-tests
2010-04-26 13:06:48galbollesetassignedto: galbolle
nosy: + galbolle
2010-04-27 13:22:12koweysetnosy: + kowey
messages: + msg10850
2010-04-27 20:05:52darcswatchsetstatus: accepted-pending-tests -> accepted
messages: + msg10871
2011-05-10 22:06:55darcswatchsetmessages: + msg14394