From patchwork Thu Feb 9 01:41:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1,of,4,RFC] chgcache: new experimental extension From: Jun Wu X-Patchwork-Id: 18360 Message-Id: <138f7ba58a70de961071.1486604461@x1c> To: Date: Wed, 8 Feb 2017 17:41:01 -0800 # HG changeset patch # User Jun Wu # Date 1486601732 28800 # Wed Feb 08 16:55:32 2017 -0800 # Node ID 138f7ba58a70de9610713b8bd55d1ba0ac468fa6 # Parent a68510b69f413545722c086eaeb840dd5e8305b4 # Available At https://bitbucket.org/quark-zju/hg-draft # hg pull https://bitbucket.org/quark-zju/hg-draft -r 138f7ba58a70 chgcache: new experimental extension This patch starts a new experimental extension - chgcache, which aims to make chg stateful and be able to preload repo objects like the changelog, the dirstate, the obsstore etc. The feature is being developed as a new extension, instead of directly at core chg, because its APIs and implementation details are still subject to change. diff --git a/hgext/chgcache.py b/hgext/chgcache.py new file mode 100644 --- /dev/null +++ b/hgext/chgcache.py @@ -0,0 +1,11 @@ +# chgcache.py - add repo-level preloading functionality to chg +# +# Copyright 2017 Facebook, Inc. +# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2 or any later version. +"""repo-level caching for chg (EXPERIMENTAL) + +With this extension installed, Mercurial running with chg will be able to cache +repo objects to further reduce start-up time. +"""