Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1115
dulwich pack dfs
Active
Public
Actions
Authored by
vlorentz
on Aug 4 2021, 5:02 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
--- /home/dev/.local/lib/python3.7/site-packages/dulwich/pack.py 2021-08-04 17:01:37.362133450 +0200
+++ pack.py 2021-08-04 17:07:30.875342007 +0200
@@ -1439,7 +1439,8 @@
# Unlike PackData.get_object_at, there is no need to cache offsets as
# this approach by design inflates each object exactly once.
todo = [(offset, obj_type_num, base_chunks)]
- for offset, obj_type_num, base_chunks in todo:
+ while todo:
+ (offset, obj_type_num, base_chunks) = todo.pop()
unpacked = self._resolve_object(offset, obj_type_num, base_chunks)
yield self._result(unpacked)
Event Timeline
vlorentz
created this paste.
Aug 4 2021, 5:02 PM
2021-08-04 17:02:07 (UTC+2)
vlorentz
edited the content of this paste.
(Show Details)
Aug 4 2021, 5:07 PM
2021-08-04 17:07:41 (UTC+2)
Log In to Comment