@@ -146,10 +146,10 @@ def find_all(cls, repo, ref, path='', **kwargs):
146146 options .update (kwargs )
147147
148148 output = repo .git .rev_list (ref , '--' , path , ** options )
149- return cls .list_from_string (repo , output )
149+ return cls ._list_from_string (repo , output )
150150
151151 @classmethod
152- def list_from_string (cls , repo , text ):
152+ def _list_from_string (cls , repo , text ):
153153 """
154154 Parse out commit information into a list of Commit objects
155155
@@ -228,7 +228,7 @@ def diff(cls, repo, a, b=None, paths=None):
228228 paths .insert (0 , b )
229229 paths .insert (0 , a )
230230 text = repo .git .diff ('-M' , full_index = True , * paths )
231- return diff .Diff .list_from_string (repo , text )
231+ return diff .Diff ._list_from_string (repo , text )
232232
233233 @property
234234 def diffs (self ):
@@ -240,7 +240,7 @@ def diffs(self):
240240 """
241241 if not self .parents :
242242 d = self .repo .git .show (self .id , '-M' , full_index = True , pretty = 'raw' )
243- return diff .Diff .list_from_string (self .repo , d )
243+ return diff .Diff ._list_from_string (self .repo , d )
244244 else :
245245 return self .diff (self .repo , self .parents [0 ].id , self .id )
246246
@@ -262,7 +262,7 @@ def stats(self):
262262 text = text2
263263 else :
264264 text = self .repo .git .diff (self .parents [0 ].id , self .id , '--' , numstat = True )
265- return stats .Stats .list_from_string (self .repo , text )
265+ return stats .Stats ._list_from_string (self .repo , text )
266266
267267 def __str__ (self ):
268268 """ Convert commit to string which is SHA1 """
@@ -281,4 +281,4 @@ def _actor(cls, line):
281281 """
282282 m = cls .re_actor_epoch .search (line )
283283 actor , epoch = m .groups ()
284- return (Actor .from_string (actor ), time .gmtime (int (epoch )))
284+ return (Actor ._from_string (actor ), time .gmtime (int (epoch )))
0 commit comments