From ebed9ace77eed4b8e40675cff40a96f61ae291e2 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Tue, 25 Sep 2012 13:46:02 +0000 Subject: Use tarballs instead of bundles This makes a non-backward-compatible change to morph which switches it to using tarballs instead of bundles when initialising cached git repositories. This is faster because it doesn't require index-pack --fix-thin operations on the machine running morph. --- morphlib/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'morphlib/util.py') diff --git a/morphlib/util.py b/morphlib/util.py index ce9d0dc9..af7c59ba 100644 --- a/morphlib/util.py +++ b/morphlib/util.py @@ -149,10 +149,10 @@ def new_repo_caches(app): # pragma: no cover aliases = app.settings['repo-alias'] cachedir = create_cachedir(app.settings) gits_dir = os.path.join(cachedir, 'gits') - bundle_base_url = app.settings['bundle-server'] + tarball_base_url = app.settings['tarball-server'] repo_resolver = morphlib.repoaliasresolver.RepoAliasResolver(aliases) lrc = morphlib.localrepocache.LocalRepoCache( - app, gits_dir, repo_resolver, bundle_base_url=bundle_base_url) + app, gits_dir, repo_resolver, tarball_base_url=tarball_base_url) url = app.settings['cache-server'] if url: -- cgit v1.2.1