From 261db178f2e91b68f45a6535009367b56af75769 Mon Sep 17 00:00:00 2001 From: Aron Pammer Date: Mon, 26 Jun 2017 11:01:27 +0200 Subject: [PATCH 1/2] fixed repository_compare examples --- docs/gl_objects/projects.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/gl_objects/projects.py b/docs/gl_objects/projects.py index c9593cc5f..8db4ea79c 100644 --- a/docs/gl_objects/projects.py +++ b/docs/gl_objects/projects.py @@ -178,11 +178,11 @@ result = project.repository_compare('master', 'branch1') # get the commits -for i in commit: - print(result.commits) +for commit in result.commits: + print(commit) # get the diffs -for file_diff in commit.diffs: +for file_diff in result.diffs: print(file_diff) # end repository compare From 73be8f9a64b8a8db39f1a9d39b7bd677e1c68b0a Mon Sep 17 00:00:00 2001 From: Aron Pammer Date: Sun, 9 Jul 2017 11:07:47 +0200 Subject: [PATCH 2/2] Changed attribution reference --- docs/gl_objects/projects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/gl_objects/projects.py b/docs/gl_objects/projects.py index 8db4ea79c..428f3578a 100644 --- a/docs/gl_objects/projects.py +++ b/docs/gl_objects/projects.py @@ -178,11 +178,11 @@ result = project.repository_compare('master', 'branch1') # get the commits -for commit in result.commits: +for commit in result['commits']: print(commit) # get the diffs -for file_diff in result.diffs: +for file_diff in result['diffs']: print(file_diff) # end repository compare