implement local cache for mercurial remote repositories
Authored by: nbc 2008-09-27
Parent: [r1907]
Child: [r1909]