#NEWLINE# def mv( self , sender , page , old_path , author , message , commit = True ) : #NEWLINE# #INDENT# status = git . status ( '--porcelain' , old_path ) . stdout . decode ( 'utf8' ) [ 1 : 2 ] #NEWLINE# extra_path = '' #NEWLINE# if ( status in ( 'D' , 'M' ) ) : #NEWLINE# #INDENT# git . rm ( old_path ) #NEWLINE# extra_path = old_path #NEWLINE# #UNINDENT# if commit : #NEWLINE# #INDENT# self . commit ( page , author = author , message = self , extra_path = extra_path )