Skip to content
Snippets Groups Projects
Commit aea80821 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: make depr warnings more specific

parent d31e92ba
No related branches found
No related tags found
2 merge requests!107ENH: add entity getters and cached functions,!104Cleanup apiutils module a bit and move git related functions to another module
Pipeline #36601 passed with warnings
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment