Browse Source

Pop from the front, or we just keep examining the same object forever

John Carr 16 years ago
parent
commit
3eeb0fd3ce
2 changed files with 3 additions and 1 deletions
  1. 2 0
      bin/dul-daemon
  2. 1 1
      dulwich/pack.py

+ 2 - 0
bin/dul-daemon

@@ -59,6 +59,8 @@ class GitBackend(Backend):
 
         # FIXME: Update heads
 
+        print "pack applied"
+
     def generate_pack(self, want, have, write, progress):
         pass
 

+ 1 - 1
dulwich/pack.py

@@ -390,7 +390,7 @@ class PackData(object):
     found = {}
     postponed = list(self.iterobjects())
     while postponed:
-      (offset, type, obj) = postponed.pop()
+      (offset, type, obj) = postponed.pop(0)
       assert isinstance(offset, int)
       assert isinstance(type, int)
       assert isinstance(obj, tuple) or isinstance(obj, str)