Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Commits
aea80821
Commit
aea80821
authored
1 year ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: make depr warnings more specific
parent
d31e92ba
No related branches found
No related tags found
2 merge requests
!107
ENH: add entity getters and cached functions
,
!104
Cleanup apiutils module a bit and move git related functions to another module
Pipeline
#36601
passed with warnings
1 year ago
Stage: code_style
Stage: linting
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caosdb/apiutils.py
+8
-8
8 additions, 8 deletions
src/caosdb/apiutils.py
with
8 additions
and
8 deletions
src/caosdb/apiutils.py
+
8
−
8
View file @
aea80821
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment