def diff_summary(self, old, new, rel_path=None):
        """
        Provides a summarized output of a diff between two revisions
        (file, change type, file type)
        """
        full_url_or_path = self.__url_or_path
        if rel_path is not None:
            full_url_or_path += '/' + rel_path
        result = self.run_command(
            'diff',
            ['--old', '{0}@{1}'.format(full_url_or_path, old),
             '--new', '{0}@{1}'.format(full_url_or_path, new),
             '--summarize', '--xml'],
            do_combine=True)
        root = xml.etree.ElementTree.fromstring(result)
        diff = []
        for element in root.findall('paths/path'):
            diff.append({
                'path': element.text,
                'item': element.attrib['item'],
                'kind': element.attrib['kind']})
        return diff
def diff_summary ( self , old , new , rel_path = None ) : full_url_or_path = self . __url_or_path if rel_path is not None : full_url_or_path += '/' + rel_path result = self . run_command ( 'diff' , [ '--old' , '{0}@{1}' . format ( full_url_or_path , old ) , '--new' , '{0}@{1}' . format ( full_url_or_path , new ) , '--summarize' , '--xml' ] , do_combine = True ) root = xml . etree . ElementTree . fromstring ( result ) diff = [ ] for element in root . findall ( 'paths/path' ) : diff . append ( { 'path' : element . text , 'item' : element . attrib [ 'item' ] , 'kind' : element . attrib [ 'kind' ] } ) return diff
Provides a summarized output of a diff between two revisions
        (file, change type, file type)