Allura/allura/model/repository.py
def changed_paths(self):
        '''
        Returns a list of paths changed in this commit.
        Leading and trailing slashes are removed, and
        the list is complete, meaning that if a sub-path
        is changed, all of the parent paths are included
        (including '' to represent the root path).

        Example:

            If the file /foo/bar is changed in the commit,
            this would return ['', 'foo', 'foo/bar']
        '''
        changes = self.repo.get_changes(self._id)
        changed_paths = set()
        for change in changes:
            node = change.strip('/')
            changed_paths.add(node)
            node_path = os.path.dirname(node)
            while node_path:
                changed_paths.add(node_path)
                node_path = os.path.dirname(node_path)
            changed_paths.add('')  # include '/' if there are any changes
        return changed_paths

        Returns a list of paths changed in this commit.
        Leading and trailing slashes are removed, and
        the list is complete, meaning that if a sub-path
        is changed, all of the parent paths are included
        (including '' to represent the root path).

        Example:

            If the file /foo/bar is changed in the commit,
            this would return ['', 'foo', 'foo/bar']
        
Returns a list of paths changed in this commit.
Leading and trailing slashes are removed, and
the list is complete, meaning that if a sub-path
is changed, all of the parent paths are included
(including '' to represent the root path).
Returns a list of paths changed in this commit . Leading and trailing slashes are removed and the list is complete meaning that if a sub - path is changed all of the parent paths are included ( including ' ' to represent the root path ) .
def changed_paths(self):
        changes = self.repo.get_changes(self._id)
        changed_paths = set()
        for change in changes:
            node = change.strip('/')
            changed_paths.add(node)
            node_path = os.path.dirname(node)
            while node_path:
                changed_paths.add(node_path)
                node_path = os.path.dirname(node_path)
            changed_paths.add('')  
        return changed_paths
def changed_paths ( self ) : changes = self . repo . get_changes ( self . _id ) changed_paths = set ( ) for change in changes : node = change . strip ( '/' ) changed_paths . add ( node ) node_path = os . path . dirname ( node ) while node_path : changed_paths . add ( node_path ) node_path = os . path . dirname ( node_path ) changed_paths . add ( '' ) return changed_paths
Returns a list of paths changed in this commit.
Returns a list of paths changed in this commit .
'''
        Returns a list of paths changed in this commit.
        Leading and trailing slashes are removed, and
        the list is complete, meaning that if a sub-path
        is changed, all of the parent paths are included
        (including '' to represent the root path).

        Example:

            If the file /foo/bar is changed in the commit,
            this would return ['', 'foo', 'foo/bar']
        ''' # include '/' if there are any changes
self
examples
If the file /foo/bar is changed in the commit,
this would return ['', 'foo', 'foo/bar']
If the file / foo / bar is changed in the commit this would return [ ' ' ' foo ' ' foo / bar ' ]