示例#1
0
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
示例#2
0
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		
示例#3
0
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)
示例#4
0
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)
示例#5
0
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)
示例#6
0
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)
示例#7
0
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."
示例#8
0
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."
示例#9
0
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."
示例#10
0
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."
示例#11
0
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 ""
示例#12
0
def execute_stash_list(target_file,info):
	#obtain the list of stashes.
	register = svn_stash_register()
	register.list()
示例#13
0
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
示例#14
0
def execute_stash_clear(target_file,info):
	#delete all stashes.
	register = svn_stash_register()
	register.clear()
示例#15
0
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
示例#16
0
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
示例#17
0
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
示例#18
0
def execute_stash_clear(target_file, info):
    #delete all stashes.
    register = svn_stash_register()
    register.clear()
示例#19
0
def execute_stash_list(target_file, info):
    #obtain the list of stashes.
    register = svn_stash_register()
    register.list()