Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Platform
Development
swh-core
Merge requests
!412
Draft: adjust transaction handling (and another context related changes)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Draft: adjust transaction handling (and another context related changes)
marmoute/swh-core:txn
into
master
Overview
12
Commits
1
Pipelines
1
Changes
1
Open
Pierre-Yves David
requested to merge
marmoute/swh-core:txn
into
master
4 weeks ago
Overview
12
Commits
1
Pipelines
1
Changes
1
Expand
This will prevent issues with pypy
extra-tox-environments: pypy310
Edited
3 weeks ago
by
Nicolas Dandrimont
0
0
Merge request reports
Compare
master
version 1
c03c2151
4 weeks ago
master (HEAD)
and
latest version
latest version
c03c2151
1 commit,
3 weeks ago
version 1
c03c2151
2 commits,
4 weeks ago
1 file
+
2
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
swh/core/db/__init__.py
+
2
−
7
Options
@@ -198,14 +198,9 @@ class BaseDb:
a psycopg cursor
"""
with
self
.
conn
.
cursor
()
as
cur
:
try
:
with
self
.
conn
.
transaction
()
:
with
self
.
conn
.
cursor
()
as
cur
:
yield
cur
self
.
conn
.
commit
()
except
Exception
:
if
not
self
.
conn
.
closed
:
self
.
conn
.
rollback
()
raise
def
copy_to
(
self
,
Loading