Exemplo n.º 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		
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 5
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."
Exemplo n.º 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."