allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [2/5] allura git commit: [#7965] Renamed commits endpoint to commit to reflect new behavior
Date Fri, 20 May 2016 15:22:51 GMT
[#7965] Renamed commits endpoint to commit to reflect new behavior


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

Branch: refs/heads/master
Commit: a69020bfa31b73f7c67e485b90bac5c704987097
Parents: b8dad85
Author: Rohan Verma <rohanverma2004@gmail.com>
Authored: Tue May 10 23:57:03 2016 +0530
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Fri May 20 11:22:17 2016 -0400

----------------------------------------------------------------------
 Allura/allura/controllers/repository.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/a69020bf/Allura/allura/controllers/repository.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/repository.py b/Allura/allura/controllers/repository.py
index e4627b0..3d03d71 100644
--- a/Allura/allura/controllers/repository.py
+++ b/Allura/allura/controllers/repository.py
@@ -334,8 +334,11 @@ class RepoRestController(RepoRootController, AppRestControllerMixin):
             ]}
 
     @expose('json:')
-    def commits(self, rev=None, **kw):
-
+    def commit(self, rev=None, **kw):
+        '''
+        Return the latest commit   : /rest/p/code/commit/ 
+        Return the commit with sha : /rest/p/code/commit/e1a2ad
+        '''
         revisions = islice(c.app.repo.log(rev, id_only=False), 1)
 
         return {


Mime
View raw message