Skip to content
Snippets Groups Projects

Cleanup apiutils module a bit and move git related functions to another module

Merged Alexander Schlemmer requested to merge f-git-utils into dev
+ 8
8
@@ -149,32 +149,32 @@ def retrieve_entities_with_ids(entities):
def getOriginUrlIn(folder):
warnings.warn("""
This function is deprecated and will be removed with the next release.
Please use the module caosdb.utils.git_utils for a
similar functionality.""", DeprecationWarning)
Please use the caosdb.utils.git_utils.get_origin_url_in instead.""",
DeprecationWarning)
return get_origin_url_in(folder)
def getDiffIn(folder, save_dir=None):
warnings.warn("""
This function is deprecated and will be removed with the next release.
Please use the module caosdb.utils.git_utils for a
similar functionality.""", DeprecationWarning)
Please use the caosdb.utils.git_utils.get_diff_in instead.""",
DeprecationWarning)
return get_diff_in(folder, save_dir)
def getBranchIn(folder):
warnings.warn("""
This function is deprecated and will be removed with the next release.
Please use the module caosdb.utils.git_utils for a
similar functionality.""", DeprecationWarning)
Please use the caosdb.utils.git_utils.get_branch_in instead.""",
DeprecationWarning)
return get_branch_in(folder)
def getCommitIn(folder):
warnings.warn("""
This function is deprecated and will be removed with the next release.
Please use the module caosdb.utils.git_utils for a
similar functionality.""", DeprecationWarning)
Please use the caosdb.utils.git_utils.get_commit_in instead.""",
DeprecationWarning)
return get_commit_in(folder)
Loading