From: git@git.openembedded.org
To: bitbake-devel@lists.openembedded.org
Subject: Lianhao Lu : bitbake/PRservice: Added no_hist mode and export/import.
Date: Wed, 11 Jan 2012 10:44:38 +0000 (UTC) [thread overview]
Message-ID: <20120111104438.6EB4A10331@opal> (raw)
Module: bitbake.git
Branch: master
Commit: 379567ee879dcdc09a51f7f1212bde1076147a6f
URL: http://git.openembedded.org/?p=bitbake.git&a=commit;h=379567ee879dcdc09a51f7f1212bde1076147a6f
Author: Lianhao Lu <lianhao.lu@intel.com>
Date: Tue Jan 10 14:13:49 2012 +0800
bitbake/PRservice: Added no_hist mode and export/import.
[YOCTO #1556]
1. Added the package_arch into the index to the DB table. Because the
change in PACKAGE_ARCH will results in different checksum, and it is
better to have seperate PR value domains for differnt PACKAGE_ARCH of
the same pakcage.
2. Changed the PR service to operate in no history mode. In this mode,
the for a given query tuple (version, pkgarch, checksum), the returned
value will be the largest among all the values of the same (version,
pkgarch). This means the PR value returned can NOT be decremented.
3. Added export function. For each (version, pkgarch) tuple, only the
record with the maximum value will be exported.
4. Added import function. The record will only be imported if the
imported value is larger than the value stored in the DB with the same
(version, pkgarch, checksum) tuple.
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
bin/bitbake-prserv | 23 +++---
lib/prserv/__init__.py | 5 +-
lib/prserv/db.py | 209 ++++++++++++++++++++++++++++++++++++++++--------
lib/prserv/serv.py | 106 ++++++++++++++++---------
4 files changed, 263 insertions(+), 80 deletions(-)
Diff: http://git.openembedded.org/?p=bitbake.git/?a=commitdiff;h=379567ee879dcdc09a51f7f1212bde1076147a6f
reply other threads:[~2012-01-11 10:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20120111104438.6EB4A10331@opal \
--to=git@git.openembedded.org \
--cc=bitbake-devel@lists.openembedded.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.