Kiln » Dependencies » Dulwich Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master, master-1, and master-0

There are no thin packs in the objects/ directory usually, so don't look in other packs.

Changeset b22e05ec6741

Parent d374936cdefb

by Jelmer Vernooij

Changes to 2 files · Browse files at b22e05ec6741 Showing diff from parent d374936cdefb Diff from another changeset...

 
119
120
121
122
 
123
124
125
 
119
120
121
 
122
123
124
125
@@ -119,7 +119,7 @@
  raise AssertionError   for pack in self.packs:   try: - return pack.get_raw(sha, self.get_raw) + return pack.get_raw(sha)   except KeyError:   pass   if hexsha is None:
Change 1 of 3 Show Entire File dulwich/​pack.py Stacked
 
410
411
412
413
 
414
415
416
 
889
890
891
 
 
892
893
894
 
899
900
901
902
903
 
904
905
906
 
410
411
412
 
413
414
415
416
 
889
890
891
892
893
894
895
896
 
901
902
903
 
 
904
905
906
907
@@ -410,7 +410,7 @@
    :return: Tuple with object type and contents.   """ - if not type in (6, 7): # Not a delta + if type not in (6, 7): # Not a delta   return type, obj     if get_offset is None: @@ -889,6 +889,8 @@
  type, obj = self.data.get_object_at(offset)   if isinstance(offset, long):   offset = int(offset) + if resolve_ref is None: + resolve_ref = self.get_raw   assert isinstance(offset, int)   return self.data.resolve_object(offset, type, obj, resolve_ref)   @@ -899,8 +901,7 @@
    def iterobjects(self, get_raw=None):   if get_raw is None: - def get_raw(x): - raise KeyError(x) + get_raw = self.get_raw   for offset, type, obj, crc32 in self.data.iterobjects():   assert isinstance(offset, int)   yield ShaFile.from_raw_string(