From cc91b8cec9f75ec5e3220878d496b612d97b4681 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Thu, 6 Nov 2014 15:55:19 +0000 Subject: Add an LRU cache for resolved tree refs This uses the PyLRU module, from: . Python 3.2 and newer provide a built-in LRU cache, but this is specifically for in-memory use. See . Git commits are immutable, so caching information about their contents is fairly easy and trouble-free. There's no danger of the cache becoming stale. --- morphlib/buildcommand.py | 1 + 1 file changed, 1 insertion(+) (limited to 'morphlib/buildcommand.py') diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py index a22e689b..d121b895 100644 --- a/morphlib/buildcommand.py +++ b/morphlib/buildcommand.py @@ -96,6 +96,7 @@ class BuildCommand(object): self.app.status(msg='Creating source pool', chatty=True) srcpool = morphlib.sourceresolver.create_source_pool( self.lrc, self.rrc, repo_name, ref, filename, + cachedir=self.app.settings['cachedir'], original_ref=original_ref, update_repos=not self.app.settings['no-git-update'], status_cb=self.app.status) -- cgit v1.2.1 From de03bc62a051260b45a28c0b132f549896e7112a Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Fri, 23 Jan 2015 11:41:31 +0000 Subject: Show a message when the build is starting --- morphlib/buildcommand.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'morphlib/buildcommand.py') diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py index d121b895..0aa50a3b 100644 --- a/morphlib/buildcommand.py +++ b/morphlib/buildcommand.py @@ -272,7 +272,7 @@ class BuildCommand(object): def build_in_order(self, root_artifact): '''Build everything specified in a build order.''' - self.app.status(msg='Building a set of sources', chatty=True) + self.app.status(msg='Building a set of sources') build_env = root_artifact.build_env ordered_sources = list(self.get_ordered_sources(root_artifact.walk())) old_prefix = self.app.status_prefix -- cgit v1.2.1