예제 #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
파일: svn-stash.py 프로젝트: anjo/svn-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		
예제 #3
0
파일: svn-stash.py 프로젝트: anjo/svn-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)
예제 #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
파일: svn-stash.py 프로젝트: anjo/svn-stash
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
파일: svn-stash.py 프로젝트: anjo/svn-stash
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
파일: svn-stash.py 프로젝트: anjo/svn-stash
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()