/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to dulwich/client.py

  • Committer: Jelmer Vernooij
  • Date: 2009-01-14 18:24:38 UTC
  • mto: (0.222.3 dulwich)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20090114182438-c0tn5eczyupi4ztn
Fix download url, add version number.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#
4
4
# This program is free software; you can redistribute it and/or
5
5
# modify it under the terms of the GNU General Public License
6
 
# as published by the Free Software Foundation; version 2
7
 
# of the License.
 
6
# as published by the Free Software Foundation; either version 2
 
7
# or (at your option) a later version of the License.
8
8
#
9
9
# This program is distributed in the hope that it will be useful,
10
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
75
75
            self.proto.write_pkt_line(None)
76
76
            return
77
77
        self.proto.write_pkt_line("%s %s %s\0%s" % (changed_refs[0][0], changed_refs[0][1], changed_refs[0][2], self.capabilities()))
 
78
        want = []
 
79
        have = []
78
80
        for changed_ref in changed_refs[:]:
79
81
            self.proto.write_pkt_line("%s %s %s" % changed_refs)
 
82
            want.append(changed_refs[1])
 
83
            if changed_refs[0] != "0"*40:
 
84
                have.append(changed_refs[0])
80
85
        self.proto.write_pkt_line(None)
81
 
        # FIXME: Send pack
 
86
        # FIXME: This is implementation specific
 
87
        # shas = generate_pack_contents(want, have, None)
 
88
        # write_pack_data(self.write, shas, len(shas))
82
89
 
83
90
    def fetch_pack(self, path, determine_wants, graph_walker, pack_data, progress):
84
91
        """Retrieve a pack from a git smart server.