def get_changed_packages(blob_name1, blob_name2, package_list):
 changed_files = check_output('git', 'diff', '--name-only', blob_name1, blob_name2)
 changed_files = changed_files.split('\n')
 result = set()
 for filename in changed_files:
  file_root = rootname(filename)
  if (file_root in package_list):
   result.add(file_root)
 return sorted(result)

def get_changed_packages ( blob_name1 , blob_name2 , package_list ) : changed_files = check_output ( 'git' , 'diff' , '--name-only' , blob_name1 , blob_name2 ) changed_files = changed_files . split ( '\n' ) result = set ( ) for filename in changed_files : file_root = rootname ( filename ) if ( file_root in package_list ) : result . add ( file_root ) return sorted ( result )
get a list of packages which have changed between two changesets .