예제 #1
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		
예제 #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
파일: 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
파일: 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."
예제 #6
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."