#NEWLINE# def get_changes( self , old_path , old_rev , new_path , new_rev , ignore_ancestry = 0 ) : #NEWLINE# #INDENT# if ( old_path != new_path ) : #NEWLINE# #INDENT# raise TracError ( _ ( 'Not supported in git_fs' ) ) #NEWLINE# #UNINDENT# with self . git . get_historian ( old_rev , old_path . strip ( '/' ) ) as old_historian : #NEWLINE# #INDENT# with self . git . get_historian ( new_rev , new_path . strip ( '/' ) ) as new_historian : #NEWLINE# #INDENT# for chg in self . git . diff_tree ( old_rev , new_rev , self . normalize_path ( new_path ) ) : #NEWLINE# #INDENT# ( mode1 , mode2 , obj1 , obj2 , action , path , path2 ) = chg #NEWLINE# kind = Node . FILE #NEWLINE# if ( mode2 . startswith ( '04' ) or mode1 . startswith ( '04' ) ) : #NEWLINE# #INDENT# kind = Node . DIRECTORY #NEWLINE# #UNINDENT# change = GitChangeset . action_map [ action ] #NEWLINE# old_node = None #NEWLINE# new_node = None #NEWLINE# if ( change != Changeset . ADD ) : #NEWLINE# #INDENT# old_node = self . get_node ( path , old_rev , old_historian ) #NEWLINE# #UNINDENT# if ( change != Changeset . DELETE ) : #NEWLINE# #INDENT# new_node = self . get_node ( path , new_rev , new_historian ) #NEWLINE# #UNINDENT# ( yield ( old_node , new_node , kind , change ) )