Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tempstorage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tempstorage
Commits
9771a14c
Commit
9771a14c
authored
Sep 19, 2017
by
Roel Bruggink
Committed by
Kirill Smelkov
Jul 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Raise POSKeyError instead of KeyError in loadBefore. (#6)
This prevents a KeyError: '\x00\x00\x00\x00\x00\x00\x00\x00'
parent
4c235251
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
CHANGES.txt
CHANGES.txt
+2
-0
src/tempstorage/TemporaryStorage.py
src/tempstorage/TemporaryStorage.py
+1
-1
No files found.
CHANGES.txt
View file @
9771a14c
Changelog
Changelog
=========
=========
- Raise POSKeyError instead of KeyError in loadBefore.
3.0 - 2016-04-03
3.0 - 2016-04-03
----------------
----------------
...
...
src/tempstorage/TemporaryStorage.py
View file @
9771a14c
...
@@ -192,7 +192,7 @@ class TemporaryStorage(BaseStorage, ConflictResolvingStorage):
...
@@ -192,7 +192,7 @@ class TemporaryStorage(BaseStorage, ConflictResolvingStorage):
try
:
try
:
tids
=
[
stid
for
soid
,
stid
in
self
.
_conflict_cache
if
soid
==
oid
]
tids
=
[
stid
for
soid
,
stid
in
self
.
_conflict_cache
if
soid
==
oid
]
if
not
tids
:
if
not
tids
:
raise
KeyError
(
oid
)
raise
POSException
.
POS
KeyError
(
oid
)
tids
.
sort
()
tids
.
sort
()
i
=
bisect
.
bisect_left
(
tids
,
tid
)
-
1
i
=
bisect
.
bisect_left
(
tids
,
tid
)
-
1
if
i
==
-
1
:
if
i
==
-
1
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment