From aea8082115fb9446453bab4bf0054230d4a06dd1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com>
Date: Tue, 9 May 2023 16:33:10 +0200
Subject: [PATCH] MAINT: make depr warnings more specific

---
 src/caosdb/apiutils.py | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/caosdb/apiutils.py b/src/caosdb/apiutils.py
index 36ea32ea..a46e3037 100644
--- a/src/caosdb/apiutils.py
+++ b/src/caosdb/apiutils.py
@@ -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)
 
 
-- 
GitLab