changeset 57:eb05594fc3c8

removed the 'thin-pack' option, since it didn't work well
author Scott Chacon <schacon@gmail.com>
date Wed, 29 Apr 2009 14:51:20 -0700
parents 5185af4e649a
children bd8fa1a92888
files TODO.txt dulwich/client.py dulwich/object_store.py dulwich/pack.py
diffstat 4 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/TODO.txt
+++ b/TODO.txt
@@ -14,8 +14,6 @@
 
 FETCH
 ===========
-* gfetch command
-* only try to import non-mapped commits
 * tag conversion
 
 MAPPING ISSUES
--- a/dulwich/client.py
+++ b/dulwich/client.py
@@ -65,10 +65,8 @@
             return ret
         return None
 
-
 CAPABILITIES = ["multi_ack", "side-band-64k", "ofs-delta"]
 
-
 class GitClient(object):
     """Git smart server client.
 
@@ -89,8 +87,8 @@
         self.proto = Protocol(read, write, report_activity)
         self._can_read = can_read
         self._capabilities = list(CAPABILITIES)
-        if thin_packs:
-            self._capabilities.append("thin-pack")
+        #if thin_packs:
+        #    self._capabilities.append("thin-pack")
 
     def capabilities(self):
         return " ".join(self._capabilities)
--- a/dulwich/object_store.py
+++ b/dulwich/object_store.py
@@ -176,7 +176,7 @@
         :param path: Path to the pack file.
         """
         p = PackData(path)
-        entries = p.sorted_entries()
+        entries = p.sorted_entries(self.get_raw)
         basename = os.path.join(self.pack_dir, 
             "pack-%s" % iter_sha1(entry[0] for entry in entries))
         write_pack_index_v2(basename+".idx", entries, p.get_stored_checksum())
--- a/dulwich/pack.py
+++ b/dulwich/pack.py
@@ -508,7 +508,6 @@
         postponed = defaultdict(list)
         class Postpone(Exception):
             """Raised to postpone delta resolving."""
-          
         def get_ref_text(sha):
             assert len(sha) == 20
             if sha in found: