jelmer/dulwich-libgit2.git
11 years agoMerge John.
Jelmer Vernooij [Thu, 25 Dec 2008 13:50:59 +0000 (13:50 +0000)]
Merge John.

11 years agoFix pack generation
John Carr [Thu, 25 Dec 2008 13:42:57 +0000 (13:42 +0000)]
Fix pack generation

11 years agoUpdate to latest dulwich API
John Carr [Thu, 25 Dec 2008 13:21:50 +0000 (13:21 +0000)]
Update to latest dulwich API

11 years agoWe can only read pack files of the form 'pack-%s.pack', so save them in that form
John Carr [Thu, 25 Dec 2008 13:18:54 +0000 (13:18 +0000)]
We can only read pack files of the form 'pack-%s.pack', so save them in that form

11 years agowrite_pack_data expects a file object, not a callback. Add a ProtocolFile object...
John Carr [Thu, 25 Dec 2008 13:12:00 +0000 (13:12 +0000)]
write_pack_data expects a file object, not a callback. Add a ProtocolFile object to satisfy its desires for now.

11 years agoFix typos
John Carr [Thu, 25 Dec 2008 07:44:19 +0000 (07:44 +0000)]
Fix typos

11 years agoIf no capabilities, still return a tuple or we get unpacking fail
John Carr [Thu, 25 Dec 2008 07:44:12 +0000 (07:44 +0000)]
If no capabilities, still return a tuple or we get unpacking fail

11 years agoRename mixin so nosetests leaves it alone
John Carr [Thu, 25 Dec 2008 07:29:10 +0000 (07:29 +0000)]
Rename mixin so nosetests leaves it alone

11 years agoOnly TCPGitClient cares about host
John Carr [Thu, 25 Dec 2008 07:11:20 +0000 (07:11 +0000)]
Only TCPGitClient cares about host

11 years agoMerge upstream
John Carr [Thu, 25 Dec 2008 06:54:39 +0000 (06:54 +0000)]
Merge upstream

11 years agoFix imports, fix pack fetching when there are no changes.
Jelmer Vernooij [Thu, 25 Dec 2008 00:54:56 +0000 (00:54 +0000)]
Fix imports, fix pack fetching when there are no changes.

11 years agoMake dul-daemon start once more :)
John Carr [Wed, 24 Dec 2008 23:51:08 +0000 (23:51 +0000)]
Make dul-daemon start once more :)

11 years agoMove the git:// specific bits to TCPGitClient
John Carr [Wed, 24 Dec 2008 23:35:48 +0000 (23:35 +0000)]
Move the git:// specific bits to TCPGitClient

11 years agoMove send/read cmd out of way - not convinced protocol.py is the right place, but...
John Carr [Wed, 24 Dec 2008 23:31:57 +0000 (23:31 +0000)]
Move send/read cmd out of way - not convinced protocol.py is the right place, but certainly don't want them in the code that doesnt need them

11 years agoMove send_cmd and read_cmd out of the protocol.
John Carr [Wed, 24 Dec 2008 23:29:03 +0000 (23:29 +0000)]
Move send_cmd and read_cmd out of the protocol.

11 years agoDon't need to descend from Handler really. Just use protocol directly
John Carr [Wed, 24 Dec 2008 23:17:30 +0000 (23:17 +0000)]
Don't need to descend from Handler really. Just use protocol directly

11 years agoMerge upstream
John Carr [Wed, 24 Dec 2008 23:13:57 +0000 (23:13 +0000)]
Merge upstream

11 years agoShare capabilities extractor, port number.
Jelmer Vernooij [Wed, 24 Dec 2008 22:58:16 +0000 (22:58 +0000)]
Share capabilities extractor, port number.

11 years agoShare port constant.
Jelmer Vernooij [Wed, 24 Dec 2008 22:51:55 +0000 (22:51 +0000)]
Share port constant.

11 years agoMerge John.
Jelmer Vernooij [Wed, 24 Dec 2008 22:50:25 +0000 (22:50 +0000)]
Merge John.

11 years agoMissed one
John Carr [Wed, 24 Dec 2008 22:48:53 +0000 (22:48 +0000)]
Missed one

11 years agoFactor out common code
John Carr [Wed, 24 Dec 2008 22:47:35 +0000 (22:47 +0000)]
Factor out common code

11 years agoFix crc32 overflow error in struct, raise KeyError if referenced objects can't be...
Jelmer Vernooij [Wed, 24 Dec 2008 22:47:00 +0000 (22:47 +0000)]
Fix crc32 overflow error in struct, raise KeyError if referenced objects can't be found rather than looping forever.

11 years agoTidy up
John Carr [Wed, 24 Dec 2008 22:43:28 +0000 (22:43 +0000)]
Tidy up

11 years agoUse common, shared, code
John Carr [Wed, 24 Dec 2008 22:42:23 +0000 (22:42 +0000)]
Use common, shared, code

11 years agoShare some code between client and server
John Carr [Wed, 24 Dec 2008 22:37:45 +0000 (22:37 +0000)]
Share some code between client and server

11 years agoMerge upstream
John Carr [Wed, 24 Dec 2008 22:17:26 +0000 (22:17 +0000)]
Merge upstream

11 years agoDon't retrieve all pack files when fetching.
Jelmer Vernooij [Wed, 24 Dec 2008 22:08:18 +0000 (22:08 +0000)]
Don't retrieve all pack files when fetching.

11 years agoMore typo. I suck at refactoring :(
John Carr [Wed, 24 Dec 2008 22:05:36 +0000 (22:05 +0000)]
More typo. I suck at refactoring :(

11 years agoMore typo :(
John Carr [Wed, 24 Dec 2008 22:04:06 +0000 (22:04 +0000)]
More typo :(

11 years agoTypo?
John Carr [Wed, 24 Dec 2008 22:03:28 +0000 (22:03 +0000)]
Typo?

11 years agoAbstract away magic in moving pack files into place.
Jelmer Vernooij [Wed, 24 Dec 2008 21:00:27 +0000 (21:00 +0000)]
Abstract away magic in moving pack files into place.

11 years agodul-upload-pack and dul-receive-pack
John Carr [Wed, 24 Dec 2008 20:43:49 +0000 (20:43 +0000)]
dul-upload-pack and dul-receive-pack

11 years agoSort entries before writing index file.
Jelmer Vernooij [Wed, 24 Dec 2008 20:27:49 +0000 (20:27 +0000)]
Sort entries before writing index file.

11 years agoBrain dump protocol details
John Carr [Wed, 24 Dec 2008 20:25:23 +0000 (20:25 +0000)]
Brain dump protocol details

11 years agoPrint object names sha1 in dumppack.
Jelmer Vernooij [Wed, 24 Dec 2008 20:23:20 +0000 (20:23 +0000)]
Print object names sha1 in dumppack.

11 years agoAdd simple function for returning SHA1 over all objects in a pack (used for filename).
Jelmer Vernooij [Wed, 24 Dec 2008 20:20:52 +0000 (20:20 +0000)]
Add simple function for returning SHA1 over all objects in a pack (used for filename).

11 years agoRefactor pack writing
John Carr [Wed, 24 Dec 2008 20:15:07 +0000 (20:15 +0000)]
Refactor pack writing

11 years agoMerge upstream
John Carr [Wed, 24 Dec 2008 20:14:27 +0000 (20:14 +0000)]
Merge upstream

11 years agoAdd simple add_pack() command that will return a file object for a temporary pack...
Jelmer Vernooij [Wed, 24 Dec 2008 19:46:55 +0000 (19:46 +0000)]
Add simple add_pack() command that will return a file object for a temporary pack filename.

11 years agoAdd simple dul-fetch-pack command.
Jelmer Vernooij [Wed, 24 Dec 2008 19:44:53 +0000 (19:44 +0000)]
Add simple dul-fetch-pack command.

11 years agoUse standard pack write functions in daemon.
Jelmer Vernooij [Wed, 24 Dec 2008 15:55:48 +0000 (15:55 +0000)]
Use standard pack write functions in daemon.

11 years agoPass fileobject rather than filename to write_pack_data().
Jelmer Vernooij [Wed, 24 Dec 2008 15:49:29 +0000 (15:49 +0000)]
Pass fileobject rather than filename to write_pack_data().

11 years agoMerge John.
Jelmer Vernooij [Wed, 24 Dec 2008 04:13:03 +0000 (04:13 +0000)]
Merge John.

11 years agoRename Repo.get_tree() -> Repo.tree() for consistency with git-python.
Jelmer Vernooij [Wed, 24 Dec 2008 02:30:06 +0000 (02:30 +0000)]
Rename Repo.get_tree() -> Repo.tree() for consistency with git-python.

11 years agomake .id available for all sha_files.
Jelmer Vernooij [Wed, 24 Dec 2008 02:07:01 +0000 (02:07 +0000)]
make .id available for all sha_files.

11 years agoBlob.text() -> Blob.data
Jelmer Vernooij [Wed, 24 Dec 2008 02:06:03 +0000 (02:06 +0000)]
Blob.text() -> Blob.data

11 years agoOpen packs more lazily.
Jelmer Vernooij [Wed, 24 Dec 2008 01:46:51 +0000 (01:46 +0000)]
Open packs more lazily.

11 years agoTurn more bits into properties.
Jelmer Vernooij [Wed, 24 Dec 2008 01:26:20 +0000 (01:26 +0000)]
Turn more bits into properties.

11 years agoFix parsing pack objects.
Jelmer Vernooij [Wed, 24 Dec 2008 01:19:51 +0000 (01:19 +0000)]
Fix parsing pack objects.

11 years agoRemove unused _contents member.
Jelmer Vernooij [Wed, 24 Dec 2008 01:17:31 +0000 (01:17 +0000)]
Remove unused _contents member.

11 years agoDon't need these imports
John Carr [Tue, 23 Dec 2008 09:42:57 +0000 (09:42 +0000)]
Don't need these imports

11 years agoMissing imports
John Carr [Tue, 23 Dec 2008 09:42:26 +0000 (09:42 +0000)]
Missing imports

11 years agoTurn Commit.parents into a property, for compatibility with python-git.
Jelmer Vernooij [Mon, 22 Dec 2008 20:27:50 +0000 (20:27 +0000)]
Turn Commit.parents into a property, for compatibility with python-git.

11 years agoMove default Git implementation from bin/ to dulwich/ - want to reuse this for dul...
John Carr [Sun, 21 Dec 2008 12:58:57 +0000 (12:58 +0000)]
Move default Git implementation from bin/ to dulwich/ - want to reuse this for dul-receive-pack and dul-upload-pack

11 years agoDifferent capabilities for upload and receive
John Carr [Sun, 21 Dec 2008 12:36:12 +0000 (12:36 +0000)]
Different capabilities for upload and receive

11 years agoSend caps when no refs
John Carr [Fri, 19 Dec 2008 10:37:50 +0000 (10:37 +0000)]
Send caps when no refs

11 years agoStart refactoring to handle the capability exchange
John Carr [Fri, 19 Dec 2008 09:43:18 +0000 (09:43 +0000)]
Start refactoring to handle the capability exchange

11 years agoGenerate and send useful packs
John Carr [Fri, 19 Dec 2008 01:11:06 +0000 (01:11 +0000)]
Generate and send useful packs

11 years agoAfter sending pack, close off.
John Carr [Thu, 18 Dec 2008 14:55:20 +0000 (14:55 +0000)]
After sending pack, close off.

11 years agoFix pack sending
John Carr [Thu, 18 Dec 2008 14:41:57 +0000 (14:41 +0000)]
Fix pack sending

11 years agoMore stuff needed for pack writing
John Carr [Thu, 18 Dec 2008 14:30:29 +0000 (14:30 +0000)]
More stuff needed for pack writing

11 years agoWrite using the sideband for now (need to implement capabilities properly)
John Carr [Thu, 18 Dec 2008 12:31:41 +0000 (12:31 +0000)]
Write using the sideband for now (need to implement capabilities properly)

11 years agoOnly try and load .pack files
John Carr [Thu, 18 Dec 2008 12:31:19 +0000 (12:31 +0000)]
Only try and load .pack files

11 years agoRemove old cruft
John Carr [Thu, 18 Dec 2008 12:26:22 +0000 (12:26 +0000)]
Remove old cruft

11 years agoFix typos
John Carr [Thu, 18 Dec 2008 12:25:24 +0000 (12:25 +0000)]
Fix typos

11 years agosha_queue now holds tuple(type, sha)
John Carr [Thu, 18 Dec 2008 12:19:22 +0000 (12:19 +0000)]
sha_queue now holds tuple(type, sha)

11 years agoStub out 'sha1 as we go' implementation
John Carr [Thu, 18 Dec 2008 12:16:48 +0000 (12:16 +0000)]
Stub out 'sha1 as we go' implementation

11 years agoStart stubbing out packer
John Carr [Thu, 18 Dec 2008 12:02:02 +0000 (12:02 +0000)]
Start stubbing out packer

11 years agogit push handling fixes
John Carr [Thu, 18 Dec 2008 11:28:33 +0000 (11:28 +0000)]
git push handling fixes

11 years agoStore pack with correct suffix and also update refs appropriately
John Carr [Thu, 18 Dec 2008 10:39:41 +0000 (10:39 +0000)]
Store pack with correct suffix and also update refs appropriately

11 years agoReally simple API for updating refs
John Carr [Thu, 18 Dec 2008 10:25:50 +0000 (10:25 +0000)]
Really simple API for updating refs

11 years agoMerge fix for opening pack files.
Jelmer Vernooij [Wed, 17 Dec 2008 20:52:42 +0000 (20:52 +0000)]
Merge fix for opening pack files.

11 years agoMerge john.
Jelmer Vernooij [Wed, 17 Dec 2008 20:44:43 +0000 (20:44 +0000)]
Merge john.

11 years agodul-daemon: Implement has_revision in backend
John Carr [Wed, 17 Dec 2008 17:24:23 +0000 (17:24 +0000)]
dul-daemon: Implement has_revision in backend

11 years agoAdd comments
John Carr [Wed, 17 Dec 2008 16:56:23 +0000 (16:56 +0000)]
Add comments

11 years agoPop from the front, or we just keep examining the same object forever
John Carr [Wed, 17 Dec 2008 15:58:55 +0000 (15:58 +0000)]
Pop from the front, or we just keep examining the same object forever

11 years agoFix off by 20 bug in iterator
John Carr [Wed, 17 Dec 2008 15:35:08 +0000 (15:35 +0000)]
Fix off by 20 bug in iterator

11 years agoAdd some extra checks to the protocol and enchance dul-daemon
John Carr [Wed, 17 Dec 2008 11:36:34 +0000 (11:36 +0000)]
Add some extra checks to the protocol and enchance dul-daemon

11 years agodul-daemon can accept incoming packs (store them in the repository, and index them).
John Carr [Wed, 17 Dec 2008 11:22:47 +0000 (11:22 +0000)]
dul-daemon can accept incoming packs (store them in the repository, and index them).

11 years agoFix off-by-one
John Carr [Wed, 17 Dec 2008 00:39:24 +0000 (00:39 +0000)]
Fix off-by-one

11 years agoReturn list of heads from a git repository
John Carr [Wed, 17 Dec 2008 00:33:31 +0000 (00:33 +0000)]
Return list of heads from a git repository

11 years agoRepo class fails to load jhbuild git-svn clone because there are tags in refs/tags...
John Carr [Wed, 17 Dec 2008 00:33:02 +0000 (00:33 +0000)]
Repo class fails to load jhbuild git-svn clone because there are tags in refs/tags/svn/foo. Support loading refs from sub directories

11 years ago\0x0a is a typo. Use \n as its prettier
John Carr [Tue, 16 Dec 2008 23:58:26 +0000 (23:58 +0000)]
\0x0a is a typo. Use \n as its prettier

11 years agoCheck to only open pack files.
Jelmer Vernooij [Tue, 16 Dec 2008 23:49:48 +0000 (23:49 +0000)]
Check to only open pack files.

11 years agoMore doc strings
John Carr [Tue, 16 Dec 2008 23:49:05 +0000 (23:49 +0000)]
More doc strings

11 years agoTidy up. Document.
John Carr [Tue, 16 Dec 2008 23:42:29 +0000 (23:42 +0000)]
Tidy up. Document.

11 years agoFix conflict to work around bug in bzr..
Jelmer Vernooij [Tue, 16 Dec 2008 23:17:26 +0000 (23:17 +0000)]
Fix conflict to work around bug in bzr..

11 years agoMerge server implementation.
Jelmer Vernooij [Tue, 16 Dec 2008 22:59:38 +0000 (22:59 +0000)]
Merge server implementation.

11 years agoAdd a test program
John Carr [Tue, 16 Dec 2008 22:27:07 +0000 (22:27 +0000)]
Add a test program

11 years agoServer side git protocols
John Carr [Tue, 16 Dec 2008 21:56:27 +0000 (21:56 +0000)]
Server side git protocols

11 years agoSupport writing packs (no deltas are written yet though).
Jelmer Vernooij [Fri, 12 Dec 2008 23:01:47 +0000 (23:01 +0000)]
Support writing packs (no deltas are written yet though).

11 years agoLook in packs when looking for objects.
Jelmer Vernooij [Fri, 12 Dec 2008 17:43:05 +0000 (17:43 +0000)]
Look in packs when looking for objects.

11 years agoAdd close operation, be lazier when opening pack files.
Jelmer Vernooij [Fri, 12 Dec 2008 17:29:46 +0000 (17:29 +0000)]
Add close operation, be lazier when opening pack files.

11 years agoDeltas work.
Jelmer Vernooij [Fri, 12 Dec 2008 17:24:53 +0000 (17:24 +0000)]
Deltas work.

11 years agoFix offsets in pack files.
Jelmer Vernooij [Fri, 12 Dec 2008 17:09:23 +0000 (17:09 +0000)]
Fix offsets in pack files.

11 years agoremove unused multi_ord.
Jelmer Vernooij [Fri, 12 Dec 2008 15:57:07 +0000 (15:57 +0000)]
remove unused multi_ord.

11 years agoChange README to be about Dulwich rather than Python-git.
Jelmer Vernooij [Fri, 12 Dec 2008 15:37:07 +0000 (15:37 +0000)]
Change README to be about Dulwich rather than Python-git.

11 years agoAdd iterentries().
Jelmer Vernooij [Thu, 11 Dec 2008 16:52:29 +0000 (16:52 +0000)]
Add iterentries().

11 years agoSome more work resolving objects.
Jelmer Vernooij [Thu, 11 Dec 2008 16:46:11 +0000 (16:46 +0000)]
Some more work resolving objects.