John Carr [Mon, 29 Dec 2008 22:36:50 +0000 (22:36 +0000)]
Merge upstream
John Carr [Mon, 29 Dec 2008 21:03:24 +0000 (21:03 +0000)]
Closer to clone working
John Carr [Mon, 29 Dec 2008 19:13:50 +0000 (19:13 +0000)]
Fix fetch_object use of determine_wants. Fix repo.get_refs() - there might not be a HEAD.
John Carr [Mon, 29 Dec 2008 19:02:36 +0000 (19:02 +0000)]
Merge upstream
Jelmer Vernooij [Mon, 29 Dec 2008 15:57:19 +0000 (15:57 +0000)]
Fetch all prerequisite revisions.
Jelmer Vernooij [Sun, 28 Dec 2008 18:29:51 +0000 (18:29 +0000)]
Split up fetch_objects().
Jelmer Vernooij [Sun, 28 Dec 2008 17:53:43 +0000 (17:53 +0000)]
Raise exception when no git repository is found.
Jelmer Vernooij [Sun, 28 Dec 2008 17:34:16 +0000 (17:34 +0000)]
Add simple log command.
Jelmer Vernooij [Sat, 27 Dec 2008 02:18:02 +0000 (02:18 +0000)]
Rename basedir -> controldir.
Jelmer Vernooij [Sat, 27 Dec 2008 02:09:42 +0000 (02:09 +0000)]
Make get_refs() use a dictionary.
Jelmer Vernooij [Sat, 27 Dec 2008 02:08:09 +0000 (02:08 +0000)]
Add get_refs() call.
Jelmer Vernooij [Sat, 27 Dec 2008 01:54:52 +0000 (01:54 +0000)]
Add git.repo.Repo.__repr__.
Jelmer Vernooij [Sat, 27 Dec 2008 01:50:19 +0000 (01:50 +0000)]
Skip yielding objects until we've figured out the sha's.
Jelmer Vernooij [Sat, 27 Dec 2008 01:40:40 +0000 (01:40 +0000)]
Fix fetch_objects().
Jelmer Vernooij [Sat, 27 Dec 2008 01:27:20 +0000 (01:27 +0000)]
Make server upload pack code use fetch objects callbacks.
Jelmer Vernooij [Sat, 27 Dec 2008 00:33:58 +0000 (00:33 +0000)]
Fix test path.
Jelmer Vernooij [Fri, 26 Dec 2008 17:50:41 +0000 (17:50 +0000)]
Simplify pack reading.
Jelmer Vernooij [Fri, 26 Dec 2008 15:44:43 +0000 (15:44 +0000)]
Import client from main package.
Jelmer Vernooij [Fri, 26 Dec 2008 13:38:25 +0000 (13:38 +0000)]
Fix iterentries test.
Jelmer Vernooij [Thu, 25 Dec 2008 22:05:48 +0000 (22:05 +0000)]
install scripts.
Jelmer Vernooij [Thu, 25 Dec 2008 22:02:51 +0000 (22:02 +0000)]
Merge dumppack and fetch-pack into a single binary.
Jelmer Vernooij [Thu, 25 Dec 2008 21:42:49 +0000 (21:42 +0000)]
Use uppercase for constants.
John Carr [Thu, 25 Dec 2008 19:15:28 +0000 (19:15 +0000)]
Merge upstream
Jelmer Vernooij [Thu, 25 Dec 2008 16:27:59 +0000 (16:27 +0000)]
Don't 'want' refs we already have.
Jelmer Vernooij [Thu, 25 Dec 2008 16:23:33 +0000 (16:23 +0000)]
Fix ext resolving for PackData.iterentries().
Jelmer Vernooij [Thu, 25 Dec 2008 16:19:48 +0000 (16:19 +0000)]
Fix argument handling in dul-fetch-pack.
Jelmer Vernooij [Thu, 25 Dec 2008 16:17:00 +0000 (16:17 +0000)]
Fix typos.
Jelmer Vernooij [Thu, 25 Dec 2008 16:09:16 +0000 (16:09 +0000)]
Resolve deltas using other packs.
Jelmer Vernooij [Thu, 25 Dec 2008 15:31:00 +0000 (15:31 +0000)]
use separate store for packs.
John Carr [Thu, 25 Dec 2008 14:56:34 +0000 (14:56 +0000)]
Pushing for clients
John Carr [Thu, 25 Dec 2008 14:38:28 +0000 (14:38 +0000)]
Share the code to work out which objects to send
Jelmer Vernooij [Thu, 25 Dec 2008 13:50:59 +0000 (13:50 +0000)]
Merge John.
John Carr [Thu, 25 Dec 2008 13:42:57 +0000 (13:42 +0000)]
Fix pack generation
John Carr [Thu, 25 Dec 2008 13:21:50 +0000 (13:21 +0000)]
Update to latest dulwich API
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
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.
John Carr [Thu, 25 Dec 2008 07:44:19 +0000 (07:44 +0000)]
Fix typos
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
John Carr [Thu, 25 Dec 2008 07:29:10 +0000 (07:29 +0000)]
Rename mixin so nosetests leaves it alone
John Carr [Thu, 25 Dec 2008 07:11:20 +0000 (07:11 +0000)]
Only TCPGitClient cares about host
John Carr [Thu, 25 Dec 2008 06:54:39 +0000 (06:54 +0000)]
Merge upstream
Jelmer Vernooij [Thu, 25 Dec 2008 00:54:56 +0000 (00:54 +0000)]
Fix imports, fix pack fetching when there are no changes.
John Carr [Wed, 24 Dec 2008 23:51:08 +0000 (23:51 +0000)]
Make dul-daemon start once more :)
John Carr [Wed, 24 Dec 2008 23:35:48 +0000 (23:35 +0000)]
Move the git:// specific bits to TCPGitClient
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
John Carr [Wed, 24 Dec 2008 23:29:03 +0000 (23:29 +0000)]
Move send_cmd and read_cmd out of the protocol.
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
John Carr [Wed, 24 Dec 2008 23:13:57 +0000 (23:13 +0000)]
Merge upstream
Jelmer Vernooij [Wed, 24 Dec 2008 22:58:16 +0000 (22:58 +0000)]
Share capabilities extractor, port number.
Jelmer Vernooij [Wed, 24 Dec 2008 22:51:55 +0000 (22:51 +0000)]
Share port constant.
Jelmer Vernooij [Wed, 24 Dec 2008 22:50:25 +0000 (22:50 +0000)]
Merge John.
John Carr [Wed, 24 Dec 2008 22:48:53 +0000 (22:48 +0000)]
Missed one
John Carr [Wed, 24 Dec 2008 22:47:35 +0000 (22:47 +0000)]
Factor out common code
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.
John Carr [Wed, 24 Dec 2008 22:43:28 +0000 (22:43 +0000)]
Tidy up
John Carr [Wed, 24 Dec 2008 22:42:23 +0000 (22:42 +0000)]
Use common, shared, code
John Carr [Wed, 24 Dec 2008 22:37:45 +0000 (22:37 +0000)]
Share some code between client and server
John Carr [Wed, 24 Dec 2008 22:17:26 +0000 (22:17 +0000)]
Merge upstream
Jelmer Vernooij [Wed, 24 Dec 2008 22:08:18 +0000 (22:08 +0000)]
Don't retrieve all pack files when fetching.
John Carr [Wed, 24 Dec 2008 22:05:36 +0000 (22:05 +0000)]
More typo. I suck at refactoring :(
John Carr [Wed, 24 Dec 2008 22:04:06 +0000 (22:04 +0000)]
More typo :(
John Carr [Wed, 24 Dec 2008 22:03:28 +0000 (22:03 +0000)]
Typo?
Jelmer Vernooij [Wed, 24 Dec 2008 21:00:27 +0000 (21:00 +0000)]
Abstract away magic in moving pack files into place.
John Carr [Wed, 24 Dec 2008 20:43:49 +0000 (20:43 +0000)]
dul-upload-pack and dul-receive-pack
Jelmer Vernooij [Wed, 24 Dec 2008 20:27:49 +0000 (20:27 +0000)]
Sort entries before writing index file.
John Carr [Wed, 24 Dec 2008 20:25:23 +0000 (20:25 +0000)]
Brain dump protocol details
Jelmer Vernooij [Wed, 24 Dec 2008 20:23:20 +0000 (20:23 +0000)]
Print object names sha1 in dumppack.
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).
John Carr [Wed, 24 Dec 2008 20:15:07 +0000 (20:15 +0000)]
Refactor pack writing
John Carr [Wed, 24 Dec 2008 20:14:27 +0000 (20:14 +0000)]
Merge upstream
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.
Jelmer Vernooij [Wed, 24 Dec 2008 19:44:53 +0000 (19:44 +0000)]
Add simple dul-fetch-pack command.
Jelmer Vernooij [Wed, 24 Dec 2008 15:55:48 +0000 (15:55 +0000)]
Use standard pack write functions in daemon.
Jelmer Vernooij [Wed, 24 Dec 2008 15:49:29 +0000 (15:49 +0000)]
Pass fileobject rather than filename to write_pack_data().
Jelmer Vernooij [Wed, 24 Dec 2008 04:13:03 +0000 (04:13 +0000)]
Merge John.
Jelmer Vernooij [Wed, 24 Dec 2008 02:30:06 +0000 (02:30 +0000)]
Rename Repo.get_tree() -> Repo.tree() for consistency with git-python.
Jelmer Vernooij [Wed, 24 Dec 2008 02:07:01 +0000 (02:07 +0000)]
make .id available for all sha_files.
Jelmer Vernooij [Wed, 24 Dec 2008 02:06:03 +0000 (02:06 +0000)]
Blob.text() -> Blob.data
Jelmer Vernooij [Wed, 24 Dec 2008 01:46:51 +0000 (01:46 +0000)]
Open packs more lazily.
Jelmer Vernooij [Wed, 24 Dec 2008 01:26:20 +0000 (01:26 +0000)]
Turn more bits into properties.
Jelmer Vernooij [Wed, 24 Dec 2008 01:19:51 +0000 (01:19 +0000)]
Fix parsing pack objects.
Jelmer Vernooij [Wed, 24 Dec 2008 01:17:31 +0000 (01:17 +0000)]
Remove unused _contents member.
John Carr [Tue, 23 Dec 2008 09:42:57 +0000 (09:42 +0000)]
Don't need these imports
John Carr [Tue, 23 Dec 2008 09:42:26 +0000 (09:42 +0000)]
Missing imports
Jelmer Vernooij [Mon, 22 Dec 2008 20:27:50 +0000 (20:27 +0000)]
Turn Commit.parents into a property, for compatibility with python-git.
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
John Carr [Sun, 21 Dec 2008 12:36:12 +0000 (12:36 +0000)]
Different capabilities for upload and receive
John Carr [Fri, 19 Dec 2008 10:37:50 +0000 (10:37 +0000)]
Send caps when no refs
John Carr [Fri, 19 Dec 2008 09:43:18 +0000 (09:43 +0000)]
Start refactoring to handle the capability exchange
John Carr [Fri, 19 Dec 2008 01:11:06 +0000 (01:11 +0000)]
Generate and send useful packs
John Carr [Thu, 18 Dec 2008 14:55:20 +0000 (14:55 +0000)]
After sending pack, close off.
John Carr [Thu, 18 Dec 2008 14:41:57 +0000 (14:41 +0000)]
Fix pack sending
John Carr [Thu, 18 Dec 2008 14:30:29 +0000 (14:30 +0000)]
More stuff needed for pack writing
John Carr [Thu, 18 Dec 2008 12:31:41 +0000 (12:31 +0000)]
Write using the sideband for now (need to implement capabilities properly)
John Carr [Thu, 18 Dec 2008 12:31:19 +0000 (12:31 +0000)]
Only try and load .pack files
John Carr [Thu, 18 Dec 2008 12:26:22 +0000 (12:26 +0000)]
Remove old cruft
John Carr [Thu, 18 Dec 2008 12:25:24 +0000 (12:25 +0000)]
Fix typos
John Carr [Thu, 18 Dec 2008 12:19:22 +0000 (12:19 +0000)]
sha_queue now holds tuple(type, sha)
John Carr [Thu, 18 Dec 2008 12:16:48 +0000 (12:16 +0000)]
Stub out 'sha1 as we go' implementation
John Carr [Thu, 18 Dec 2008 12:02:02 +0000 (12:02 +0000)]
Start stubbing out packer