#NEWLINE# def renameRemote( self , remote , new , clear = True , dump = False ) : #NEWLINE# #INDENT# '\n        Rename remote with old remote.name to new name but keep same index\n        ' #NEWLINE# old = remote . name #NEWLINE# super ( KeepStack , self ) . renameRemote ( remote = remote , new = new ) #NEWLINE# if clear : #NEWLINE# #INDENT# self . keep . clearRemoteData ( old ) #NEWLINE# #UNINDENT# if old : #NEWLINE# #INDENT# self . dumpRemote ( remote = remote )