Bug 10691 - buildhistory-diff should detect directory renames
Summary: buildhistory-diff should detect directory renames
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 2.3 M2
Assignee: Ed Bartosh
QA Contact: David Lopez Barriba
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-11-17 12:26 UTC by Ross Burton
Modified: 2017-01-17 14:02 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2016-11-17 12:26:23 UTC
If would be awesome if buildhistory-diff could detect directory renames.  For example with a python-git upgrade:

packages/corei7-64-poky-linux/python-git/python-git: FILELIST:
removed "
/usr/lib/python2.7/site-packages/GitPython-2.0.7-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/GitPython-2.0.7-py2.7.egg-info/requires.txt
/usr/lib/python2.7/site-packages/GitPython-2.0.7-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/GitPython-2.0.7-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/GitPython-2.0.7-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/GitPython-2.0.7-py2.7.egg-info/not-zip-safe
"added "
/usr/lib/python2.7/site-packages/git/test/test_exc.py
/usr/lib/python2.7/site-packages/git/test/fixtures/diff_abbrev-40_full-index_M_raw_no-color
/usr/lib/python2.7/site-packages/GitPython-2.1.0-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/GitPython-2.1.0-py2.7.egg-info/requires.txt
/usr/lib/python2.7/site-packages/GitPython-2.1.0-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/GitPython-2.1.0-py2.7.egg-info/not-zip-safe
/usr/lib/python2.7/site-packages/GitPython-2.1.0-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/GitPython-2.1.0-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/git/test/test_exc.pyc
"

It would be so useful if it could spot that GitPython-2.0.7-py2.7.egg-info was just renamed to GitPython-2.1.0-py2.7.egg-info.
Comment 1 Ed Bartosh 2016-11-28 11:59:33 UTC
I'm not sure your example is just a directory rename as content of some files(at least PKG-INFO) is changed. It would be incorrect from my point of view If buildhistory-diff reports this as as directory rename.
Comment 2 Ross Burton 2016-11-28 12:59:53 UTC
buildhistory-diff doesn't care for content as that is expected to change, it only reports the name changes.