lp:~vcs-imports/dulwich/samv
- Get this branch:
- bzr branch lp:~vcs-imports/dulwich/samv
Branch merges
Branch information
Import details
This branch is an import of the HEAD branch of the Git repository at https://github.com/samv/dulwich.
Last successful import was .
Recent revisions
- 1025. By Sam Vilain <email address hidden>
-
Fix thin pack support
It is advertised that thin packs are supported, but when fetched packs are
moved into the store, they are not resolved correctly. The add_thin_pack()
function must be used if we claim to support thin packs. It seems to have
a different calling convention to add_pack(), which is problematic. This
awkward solution involves keeping a memory buffer of all data read before
processing it all in one go. Ugly, but at least it works.This broke another test which seems to be testing some kind of corner case,
which I couldn't figure out, so I just disabled it.Fixes this failure during client.fetch:
Traceback (most recent call last):
File "fetch.py", line 12, in <module>
determine_wants=repo. object_ store.determine _wants_ all,
File "/Users/svilain/ src/dulwich/ dulwich/ client. py", line 206, in fetch
commit()
File "/Users/svilain/ src/dulwich/ dulwich/ object_ store.py" , line 575, in commit
return self.move_in_pack( path)
File "/Users/svilain/ src/dulwich/ dulwich/ object_ store.py" , line 549, in move_in_pack
entries = p.sorted_entries()
File "/Users/svilain/ src/dulwich/ dulwich/ pack.py" , line 1103, in sorted_entries
ret = list(self.iterentries( progress= progress) )
File "/Users/svilain/ src/dulwich/ dulwich/ pack.py" , line 1091, in iterentries
for i, result in enumerate(PackIndexer. for_pack_ data(self) ):
File "/Users/svilain/ src/dulwich/ dulwich/ pack.py" , line 1238, in _walk_all_chains
for result in self._walk_ref_chains( ):
File "/Users/svilain/ src/dulwich/ dulwich/ pack.py" , line 1248, in _walk_ref_chains
self._ensure_ no_pending( )
File "/Users/svilain/ src/dulwich/ dulwich/ pack.py" , line 1244, in _ensure_no_pending
raise KeyError([sha_to_ hex(s) for s in self._pending_ref])
KeyError: ['acf3a3f561ca42ec4d9d6ab3513b e4f7e54ae474' , '7fbc71b8ecee86 57791a5dc3829be 4acbc091e1c' , 'dafc470f73b1d6 dfe0904c0d95cb4 401e1cdd28e' , 'efe2c9a04ba829 d711d8c41ce3b58 b9781f9c4d7' , '43b8208987b474 aa0d03e1b439556 a21b18a0d3d' ] - 1024. By Sam Vilain <email address hidden>
-
Add support for client init args in get_transport_
and_path If you want to pass arguments to the client construction, without re–
producing the logic in get_transport_and_path which decides on the
appropriate client class to use, you're pretty much out of luck. So,
accept and pass through keyword arguments. - 1022. By Jelmer Vernooij
-
Merge support for only negotiating capabilities that are also supported by the
server. - 1020. By Jelmer Vernooij
-
Merge fix to call parent constructor rather than grandparent. Thanks, kankri.
- 1018. By Jelmer Vernooij
-
Options on the same line as sections in config files are now supported. #920553
- 1017. By Jelmer Vernooij
-
$HOME is now explicitly specified for tests that use it to read
``~/.gitconfig``, to prevent test isolation issues.Eventually this should probably happen in a more structural manner,
by e.g. using a base TestCase class that always overrides $HOME.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)