Blender SVN: New Features #273

Open
Demeter Dzadik wants to merge 13 commits from New-SVN-features into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 15 additions and 0 deletions
Showing only changes of commit 2c6ad7e5e6 - Show all commits

View File

@ -528,6 +528,17 @@ class SVN_OT_cleanup(SVN_Operator, Operator):
return {"FINISHED"}
class SVN_OT_cancel_running_operation(Operator):
bl_idname = "svn.cancel"
bl_label = "SVN Cancel Operation"
bl_description = "Cancel the running operation"
bl_options = {'INTERNAL'}
def execute(self, context):
Processes.kill('Commit')
Processes.kill('Update')
return {'FINISHED'}
registry = [
SVN_OT_update_single,
SVN_OT_revert_and_update,
@ -541,4 +552,5 @@ registry = [
SVN_OT_resolve_conflict,
SVN_OT_set_directory_depth,
SVN_OT_cleanup,
SVN_OT_cancel_running_operation,
]

View File

@ -227,6 +227,9 @@ def draw_file_list(context, layout):
if not prefs.do_auto_updates:
col.operator("svn.update_all", icon='IMPORT', text="").revision = 0
if prefs.is_busy:
col.operator('svn.cancel', text="", icon="X")
col.separator()
col.operator("svn.cleanup", icon='BRUSH_DATA', text="")