Prechádzať zdrojové kódy

remove extraneous repo.serialize

milki 11 rokov pred
rodič
commit
dfcae2a18e
2 zmenil súbory, kde vykonal 0 pridanie a 14 odobranie
  1. 0 7
      dulwich/repo.py
  2. 0 7
      dulwich/tests/test_grafts.py

+ 0 - 7
dulwich/repo.py

@@ -561,13 +561,6 @@ class BaseRepo(object):
         for sha in to_remove:
             del self.graftpoints[sha]
 
-    def serialize_graftpoints(self):
-        """Get the string representation of the graftpoints
-
-        This format is writable to a graftpoint file.
-        """
-        return serialize_graftpoints(self.graftpoints)
-
     def do_commit(self, message=None, committer=None,
                   author=None, commit_timestamp=None,
                   commit_timezone=None, author_timestamp=None,

+ 0 - 7
dulwich/tests/test_grafts.py

@@ -135,13 +135,6 @@ class GraftsInRepositoryBase(object):
         self.assertEqual([e.commit.id for e in r.get_walker()],
                          self._shas[::-1])
 
-    def test_seralize_grafts(self):
-        r = self.get_repo_with_grafts({self._shas[-1]: [self._shas[0]]})
-
-        grafts = r.serialize_graftpoints()
-        self.assertEqual(["%s %s" % (self._shas[-1], self._shas[0])],
-                         grafts.splitlines())
-
     def test_object_store_fail_invalid_parents(self):
         r = self._repo