def execute_stash_show(target_file, info): #view all diffs of all stashes. register = svn_stash_register() for stash_id in register.stashes: current_stash = svn_stash() current_stash.load(stash_id) print current_stash
def execute_stash_show(target_file,info): #view all diffs of all stashes. register = svn_stash_register() for stash_id in register.stashes: current_stash = svn_stash() current_stash.load(stash_id) print current_stash
def execute_stash_clear(target_file,info): #delete all stashes. register = svn_stash_register() marked_stashes = list(register.stashes) for stash in marked_stashes: current_stash = svn_stash() current_stash.load(stash) register.delete_stash(current_stash)
def execute_stash_clear(target_file, info): #delete all stashes. register = svn_stash_register() marked_stashes = list(register.stashes) for stash in marked_stashes: current_stash = svn_stash() current_stash.load(stash) register.delete_stash(current_stash)
def execute_stash_apply(stash_id): #obtain stash by id register = svn_stash_register() stash = register.obtain_stash_by_id(stash_id) if stash: stash.pop() register.delete_stash(stash) else: print "No stash with id " + str(stash_id)
def execute_stash_pop(target_file,info): #obtain last stash pop register = svn_stash_register() stash = register.obtain_last_stash() if stash: stash.pop() register.delete_stash(stash) else: print "there are not previous stashes."
def execute_stash_pop(target_file, info): #obtain last stash pop register = svn_stash_register() stash = register.obtain_last_stash() if stash: stash.pop() register.delete_stash(stash) else: print "there are not previous stashes."
def execute_stash_push(target_file, info): if len(info['files']) > 0: #save the svn status into a stash stash = svn_stash() stash.push(target_file, info) register = svn_stash_register() register.register_stash(stash) register.write() else: print "nothing to stash in this directory."
def execute_stash_push(target_file,info): if len(info['files'])>0: #save the svn status into a stash stash = svn_stash() stash.push(target_file,info) register = svn_stash_register() register.register_stash(stash) register.write() else: print "nothing to stash in this directory."
def execute_stash_listall(target_file,filename_list): #obtain the list of stashes. #include non current stashes register = svn_stash_register() for stash_id in register.all_stashes: print stash_id, #highlight current stashes if stash_id in register.stashes: print "*" else: print ""
def execute_stash_list(target_file,info): #obtain the list of stashes. register = svn_stash_register() register.list()
def execute_stash_list(target_file,info): #obtain the list of stashes. register = svn_stash_register() for stash_id in register.stashes: print stash_id
def execute_stash_clear(target_file,info): #delete all stashes. register = svn_stash_register() register.clear()
def execute_stash_id(stash_id): #obtain stash by id register = svn_stash_register() stash = register.obtain_stash_by_id(stash_id) print stash.key
def execute_stash_list(target_file, info): #obtain the list of stashes. register = svn_stash_register() for stash_id in register.stashes: print stash_id
def execute_stash_clear(target_file, info): #delete all stashes. register = svn_stash_register() register.clear()
def execute_stash_list(target_file, info): #obtain the list of stashes. register = svn_stash_register() register.list()