From: Yu Ke <ke.yu@intel.com>
To: poky@yoctoproject.org
Subject: [PATCH 00/11] [RFC] fetch overhaul - API reorg and git optimization
Date: Wed, 19 Jan 2011 1:48:09 +0800 [thread overview]
Message-ID: <cover.1295371995.git.ke.yu@intel.com> (raw)
Hi Richard,
This patch series is for the fetcher overhaul phase 2 - new API reorg, and part of phase 3 - git optimization. the details are:
- Split go() methods into the following steps:
i) download() - do whatever transfer is necessary to get the sources locally
ii) build_mirror_data() - generate any data that would be needed to construct a source mirror
iii) unpack() - takes a directory as an argument of where to place extracted sources
- Change Poky's fetch task to call a "download" method in the fetcher instead of go().
- Change Poky's unpack to call an unpack method in the fetchers.
- Optimise git fetcher for the new layout so for a git checkout, we clone the repository in download(), then unpack just does a clone with references to the original repo.
The remaining item for phase 3 are:
- Add a new "BB_NO_NETWORK" option to only perform local fetch
- Add multiple branch/srcrev support for git fetcher
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: kyu3/fetcher-api
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kyu3/fetcher-api
Thanks,
Yu Ke <ke.yu@intel.com>
---
Yu Ke (11):
bitbake/fetch2/git: Add backwards compatibility code for branch name
handling
bb.fetch2: add unpack method in fetcher
bb.fetch2: revise the Fetch.unpack API
bb.fetch: add fetch version to distinguish bb.fetch and bb.fetch2
base.bbclass: use bb.fetch2 unpack API
bb.fetch2: rename "go" with "download" to better reflect its
functionality
bbclasee: rename "go" with "download"
bb.fetch2.git: split download to download() + build_mirror_data()
bb.fetch2: remove the obsolate Fetch.try_mirrors referrence
bb.fetch2: add git unpack
git.py: remove the source tree tar ball
bitbake/lib/bb/fetch/__init__.py | 2 +
bitbake/lib/bb/fetch2/__init__.py | 95 +++++++++++++++++++++-
bitbake/lib/bb/fetch2/bzr.py | 2 +-
bitbake/lib/bb/fetch2/cvs.py | 2 +-
bitbake/lib/bb/fetch2/git.py | 158 ++++++++++++++++++++++--------------
bitbake/lib/bb/fetch2/hg.py | 2 +-
bitbake/lib/bb/fetch2/local.py | 2 +-
bitbake/lib/bb/fetch2/osc.py | 2 +-
bitbake/lib/bb/fetch2/perforce.py | 2 +-
bitbake/lib/bb/fetch2/repo.py | 2 +-
bitbake/lib/bb/fetch2/ssh.py | 2 +-
bitbake/lib/bb/fetch2/svk.py | 2 +-
bitbake/lib/bb/fetch2/svn.py | 2 +-
bitbake/lib/bb/fetch2/wget.py | 4 +-
meta/classes/base.bbclass | 13 +++-
meta/classes/sstate.bbclass | 5 +-
16 files changed, 216 insertions(+), 81 deletions(-)
next reply other threads:[~2011-01-18 17:43 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-18 17:48 Yu Ke [this message]
2011-01-18 17:48 ` [PATCH 01/11] bitbake/fetch2/git: Add backwards compatibility code for branch name handling Yu Ke
2011-01-18 17:48 ` [PATCH 02/11] bb.fetch2: add unpack method in fetcher Yu Ke
2011-01-18 17:48 ` [PATCH 03/11] bb.fetch2: revise the Fetch.unpack API Yu Ke
2011-01-18 17:48 ` [PATCH 04/11] bb.fetch: add fetch version to distinguish bb.fetch and bb.fetch2 Yu Ke
2011-01-18 17:48 ` [PATCH 05/11] base.bbclass: use bb.fetch2 unpack API Yu Ke
2011-01-18 17:48 ` [PATCH 06/11] bb.fetch2: rename "go" with "download" to better reflect its functionality Yu Ke
2011-01-18 17:48 ` [PATCH 07/11] bbclasee: rename "go" with "download" Yu Ke
2011-01-18 17:48 ` [PATCH 08/11] bb.fetch2.git: split download to download() + build_mirror_data() Yu Ke
2011-01-18 17:48 ` [PATCH 09/11] bb.fetch2: remove the obsolate Fetch.try_mirrors referrence Yu Ke
2011-01-18 17:48 ` [PATCH 10/11] bb.fetch2: add git unpack Yu Ke
2011-01-25 18:07 ` Richard Purdie
2011-01-25 19:39 ` Bruce Ashfield
2011-01-26 4:41 ` Yu Ke
2011-01-26 4:43 ` Bruce Ashfield
2011-01-26 8:25 ` Yu Ke
2011-01-26 15:01 ` Bruce Ashfield
2011-01-18 17:48 ` [PATCH 11/11] git.py: remove the source tree tar ball Yu Ke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1295371995.git.ke.yu@intel.com \
--to=ke.yu@intel.com \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.