Explorar el Código

Add git.repo.Repo.__repr__.

Jelmer Vernooij hace 16 años
padre
commit
539ff6a9b9
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      dulwich/repo.py

+ 3 - 0
dulwich/repo.py

@@ -219,6 +219,9 @@ class Repo(object):
     history.reverse()
     return history
 
+  def __repr__(self):
+      return "<Repo at %r>" % self.path
+
   @classmethod
   def init_bare(cls, path, mkdir=True):
       for d in [["objects"],