فهرست منبع

Add git.repo.Repo.__repr__.

Jelmer Vernooij 16 سال پیش
والد
کامیت
539ff6a9b9
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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"],