Ejemplo n.º 1
0
 def setUp(self):
     super(ProtocolGraphWalkerEmptyTestCase, self).setUp()
     self._repo = MemoryRepo.init_bare([], {})
     backend = DictBackend({b'/': self._repo})
     self._walker = _ProtocolGraphWalker(
         TestUploadPackHandler(backend, [b'/', b'host=lolcats'],
                               TestProto()), self._repo.object_store,
         self._repo.get_peeled, self._repo.refs.get_symrefs)
Ejemplo n.º 2
0
 def setUp(self):
     super(ProtocolGraphWalkerEmptyTestCase, self).setUp()
     self._repo = MemoryRepo.init_bare([], {})
     backend = DictBackend({b'/': self._repo})
     self._walker = _ProtocolGraphWalker(
             TestUploadPackHandler(backend, [b'/', b'host=lolcats'],
                                   TestProto()),
             self._repo.object_store, self._repo.get_peeled,
             self._repo.refs.get_symrefs)
Ejemplo n.º 3
0
 def setUp(self):
     super(ProtocolGraphWalkerTestCase, self).setUp()
     # Create the following commit tree:
     #   3---5
     #  /
     # 1---2---4
     commits = [
         make_commit(id=ONE, parents=[], commit_time=111),
         make_commit(id=TWO, parents=[ONE], commit_time=222),
         make_commit(id=THREE, parents=[ONE], commit_time=333),
         make_commit(id=FOUR, parents=[TWO], commit_time=444),
         make_commit(id=FIVE, parents=[THREE], commit_time=555),
     ]
     self._repo = MemoryRepo.init_bare(commits, {})
     backend = DictBackend({b'/': self._repo})
     self._walker = _ProtocolGraphWalker(
         TestUploadPackHandler(backend, [b'/', b'host=lolcats'],
                               TestProto()), self._repo.object_store,
         self._repo.get_peeled, self._repo.refs.get_symrefs)
Ejemplo n.º 4
0
 def setUp(self):
     super(ProtocolGraphWalkerTestCase, self).setUp()
     # Create the following commit tree:
     #   3---5
     #  /
     # 1---2---4
     commits = [
       make_commit(id=ONE, parents=[], commit_time=111),
       make_commit(id=TWO, parents=[ONE], commit_time=222),
       make_commit(id=THREE, parents=[ONE], commit_time=333),
       make_commit(id=FOUR, parents=[TWO], commit_time=444),
       make_commit(id=FIVE, parents=[THREE], commit_time=555),
       ]
     self._repo = MemoryRepo.init_bare(commits, {})
     backend = DictBackend({b'/': self._repo})
     self._walker = _ProtocolGraphWalker(
             TestUploadPackHandler(backend, [b'/', b'host=lolcats'],
                                   TestProto()),
             self._repo.object_store, self._repo.get_peeled,
             self._repo.refs.get_symrefs)