~ubuntu-branches/ubuntu/quantal/dulwich/quantal

« back to all changes in this revision

Viewing changes to dulwich/tests/compat/test_client.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-01-21 22:24:12 UTC
  • mfrom: (1.2.19)
  • Revision ID: package-import@ubuntu.com-20120121222412-yqh8ndrfsatp7ga0
Tags: 0.8.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
        map(lambda r: dest.refs.set_if_equals(r[0], None, r[1]), refs.items())
192
192
        self.assertDestEqualsSrc()
193
193
 
 
194
    def test_fetch_pack_zero_sha(self):
 
195
        # zero sha1s are already present on the client, and should
 
196
        # be ignored
 
197
        c = self._client()
 
198
        dest = repo.Repo(os.path.join(self.gitroot, 'dest'))
 
199
        refs = c.fetch(self._build_path('/server_new.export'), dest,
 
200
            lambda refs: [protocol.ZERO_SHA])
 
201
        map(lambda r: dest.refs.set_if_equals(r[0], None, r[1]), refs.items())
 
202
 
194
203
    def test_send_remove_branch(self):
195
204
        dest = repo.Repo(os.path.join(self.gitroot, 'dest'))
196
205
        dummy_commit = self.make_dummy_commit(dest)