[Asterisk-code-review] release summary.py: Import referenced function and allow a r... (repotools[master])

Kevin Harwell asteriskteam at digium.com
Thu Feb 22 18:24:46 CST 2018


Kevin Harwell has uploaded this change for review. ( https://gerrit.asterisk.org/8378


Change subject: release_summary.py: Import referenced function and allow a remote_url
......................................................................

release_summary.py: Import referenced function and allow a remote_url

The release summary script cloned and checked out its own repository if needed.
However, the 'get_repo' function was not being imported. Also there was no way
to specify a remote_url so it would always use the default one.

This patch adds the import for 'get_repo' and also adds the remote_url as a
parameter that can be passed to the script.

Change-Id: I041bcb26c9ef2382879e1b8c39f2e99b6725ba68
---
M release_summary.py
1 file changed, 5 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/repotools refs/changes/78/8378/1

diff --git a/release_summary.py b/release_summary.py
index de475a8..9b4a77d 100755
--- a/release_summary.py
+++ b/release_summary.py
@@ -17,7 +17,7 @@
 
 from digium_jira import get_jira_client, DigiumJiraVersion
 from digium_jira_user import AsteriskUser
-from digium_git import DigiumGitRepo
+from digium_git import get_repo, DigiumGitRepo
 
 # Maximum column width for diffstat and plain text output
 MAX_WIDTH = 80
@@ -653,6 +653,9 @@
     parser.add_option("-l", "--local-root", action="store", type="string",
         dest="local_root", default="/tmp",
         help="Root location on disk to store Git repositories")
+    parser.add_option("-r", "--remote-url", action="store", type="string",
+                      dest="remote_url", help="The remote url",
+                      default="")
     parser.add_option("-s", "--start-tag", action="store", type="string",
         dest="start_tag", default="", help="Tag to start from")
     parser.add_option("-e", "--end-tag", action="store", type="string",
@@ -707,6 +710,7 @@
     release_options.local_root = options.local_root
     release_options.start_tag = options.start_tag
     release_options.end_tag = options.end_tag
+    release_options.remote_url = options.remote_url
 
     summary = ReleaseSummary(release_options, jira=jira, debug=True)
     summary.to_html()

-- 
To view, visit https://gerrit.asterisk.org/8378
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: repotools
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I041bcb26c9ef2382879e1b8c39f2e99b6725ba68
Gerrit-Change-Number: 8378
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180222/535e5967/attachment-0001.html>


More information about the asterisk-code-review mailing list