Bug 10691

Summary: buildhistory-diff should detect directory renames
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: Scripts and ToolsAssignee: Ed Bartosh <eduard.bartosh>
Status: RESOLVED FIXED QA Contact: David Lopez Barriba <davidx.lopez.barriba>
Severity: enhancement    
Priority: Medium+ CC: jose.perez.carranza, joshuagloe, ross.burton
Version: 2.2   
Target Milestone: 2.3 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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.