public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [RFC][PATCH] buildhistory: adapt to fetcher changes
@ 2013-05-22 17:59 Martin Jansa
  0 siblings, 0 replies; only message in thread
From: Martin Jansa @ 2013-05-22 17:59 UTC (permalink / raw)
  To: openembedded-core

* bitbake commit:
  commit fb068bee47bb1a06f02447daf16c2b2a79c03288
  Author: Richard Purdie <richard.purdie@linuxfoundation.org>
  Date:   Sun May 19 13:17:58 2013 +0300

    fetch2/git: Clean up sortable_revision

    Now we no longer try and provide increasing values from the fetcher,
    we can simplify the function structure for the sortable_revision
    pieces and move the AUTOINC handling directly into the function
    which needs it, simplifying the code.

  changed sortable_revision API and now it returns tuple. Maybe we should
  modify buildhistory to support both variants, this is just quick build-fix.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/classes/buildhistory.bbclass | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 3b6ce99..0d74d7c 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -547,15 +547,12 @@ def _get_srcrev_values(d):
         if urldata[u].method.supports_srcrev():
             scms.append(u)
 
-    autoinc_templ = 'AUTOINC+'
     dict_srcrevs = {}
     dict_tag_srcrevs = {}
     for scm in scms:
         ud = urldata[scm]
         for name in ud.names:
-            rev = ud.method.sortable_revision(scm, ud, d, name)
-            if rev.startswith(autoinc_templ):
-                rev = rev[len(autoinc_templ):]
+            autoinc, rev = ud.method.sortable_revision(scm, ud, d, name)
             dict_srcrevs[name] = rev
             if 'tag' in ud.parm:
                 tag = ud.parm['tag'];
-- 
1.8.2.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-22 19:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-22 17:59 [RFC][PATCH] buildhistory: adapt to fetcher changes Martin Jansa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox