<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4313</bug_id>
          
          <creation_ts>2013-04-16 12:22:09 +0000</creation_ts>
          <short_desc>buildhistory-diff should give coherent message with bad arguments</short_desc>
          <delta_ts>2013-10-01 14:40:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32231</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-04-16 12:22:09 +0000</bug_when>
    <thetext>Expected result:
&quot;
cornel@NODE1:~/SSD/poky/build$ buildhistory-diff a
Report significant differences in the buildhistory repository
Syntax: buildhistory-diff &lt;buildhistory-path&gt; &lt;since-revision&gt; [to-revision]
If to-revision is not specified, it defaults to HEAD
&quot;

Actual result (for 2 arguments instead of 3):
&quot;
cornel@NODE1:~/SSD/poky/build$ buildhistory-diff a b
Traceback (most recent call last):
  File &quot;/home/cornel/SSD/poky/scripts/buildhistory-diff&quot;, line 62, in &lt;module&gt;
    main()
  File &quot;/home/cornel/SSD/poky/scripts/buildhistory-diff&quot;, line 54, in main
    changes = oe.buildhistory_analysis.process_changes(sys.argv[1], sys.argv[2], torev)
  File &quot;/home/cornel/SSD/poky/meta/lib/oe/buildhistory_analysis.py&quot;, line 357, in process_changes
    repo = git.Repo(repopath)
  File &quot;/usr/local/lib/python2.7/dist-packages/git/repo/base.py&quot;, line 98, in __init__
    raise NoSuchPathError(epath)
git.exc.NoSuchPathError: /home/cornel/SSD/poky/build/a
&quot;

Actual result with 3 arguments but an existent commit:
&quot;
cornel@NODE1:~/SSD/poky/build$ buildhistory-diff tmp/buildhistory/ c6cf1ce6995f5b4034313afa5786396fb5545f34 HEAD
Traceback (most recent call last):
  File &quot;/home/cornel/SSD/poky/scripts/buildhistory-diff&quot;, line 62, in &lt;module&gt;
    main()
  File &quot;/home/cornel/SSD/poky/scripts/buildhistory-diff&quot;, line 54, in main
    changes = oe.buildhistory_analysis.process_changes(sys.argv[1], sys.argv[2], torev)
  File &quot;/home/cornel/SSD/poky/meta/lib/oe/buildhistory_analysis.py&quot;, line 359, in process_changes
    commit = repo.commit(revision1)
  File &quot;/usr/local/lib/python2.7/dist-packages/git/repo/base.py&quot;, line 378, in commit
    return self.rev_parse(str(rev)+&quot;^0&quot;)
  File &quot;/usr/local/lib/python2.7/dist-packages/git/repo/fun.py&quot;, line 151, in rev_parse
    obj = name_to_object(repo, rev[:start])
  File &quot;/usr/local/lib/python2.7/dist-packages/git/repo/fun.py&quot;, line 89, in name_to_object
    return Object.new_from_sha(repo, hex_to_bin(hexsha))
  File &quot;/usr/local/lib/python2.7/dist-packages/git/objects/base.py&quot;, line 64, in new_from_sha
    oinfo = repo.odb.info(sha1)
  File &quot;/usr/local/lib/python2.7/dist-packages/gitdb/db/base.py&quot;, line 256, in info
    return self._db_query(sha).info(sha)
  File &quot;/usr/local/lib/python2.7/dist-packages/gitdb/db/base.py&quot;, line 243, in _db_query
    raise BadObject(sha)
gitdb.exc.BadObject: BadObject: c6cf1ce6995f5b4034313afa5786396fb5545f34
&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33047</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-05-10 14:18:49 +0000</bug_when>
    <thetext>Merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=68f441e303f9a1aa37f6d4606a9fe5a94998880f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37426</commentid>
    <comment_count>2</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-10-01 14:40:24 +0000</bug_when>
    <thetext>Verified in:
poky master:2f64fae60b3f61a2c45dc9e5314d2d16b1e64605</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>