incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [38/38] git commit: [#6218] Added docstring to get_heads/branches/tags explaining why it's not a property
Date Mon, 03 Jun 2013 19:19:37 GMT
[#6218] Added docstring to get_heads/branches/tags explaining why it's not a property

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/2c463e28
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/2c463e28
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/2c463e28

Branch: refs/heads/cj/6218
Commit: 2c463e28126af7c870a643ccf0a6966a412929a6
Parents: 0028dd4
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Mon Jun 3 19:18:39 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Mon Jun 3 19:18:39 2013 +0000

----------------------------------------------------------------------
 Allura/allura/model/repository.py |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/2c463e28/Allura/allura/model/repository.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repository.py b/Allura/allura/model/repository.py
index 78e16e2..dfb92f1 100644
--- a/Allura/allura/model/repository.py
+++ b/Allura/allura/model/repository.py
@@ -331,10 +331,31 @@ class Repository(Artifact, ActivityObject):
     def is_empty(self):
         return self._impl.is_empty()
     def get_heads(self):
+        """
+        Return list of heads for the repo.
+
+        It's get_heads() instead of a heads (lazy) property because it would
+        conflict with the now deprecated heads field.  Eventually, we should
+        try to remove the deprecated fields and clean this up.
+        """
         return self._impl.heads
     def get_branches(self):
+        """
+        Return list of branches for the repo.
+
+        It's get_branches() instead of a branches (lazy) property because it
+        would conflict with the now deprecated branches field.  Eventually, we
+        should try to remove the deprecated fields and clean this up.
+        """
         return self._impl.branches
     def get_tags(self):
+        """
+        Return list of tags for the repo.
+
+        It's get_tags() instead of a tags (lazy) property because it
+        would conflict with the now deprecated tags field.  Eventually, we
+        should try to remove the deprecated fields and clean this up.
+        """
         return self._impl.tags
 
     def _log(self, rev, skip, limit):


Mime
View raw message