From 84685ba1875db265051cdd043d5dba768c7c42e5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 19 Feb 2020 02:22:22 -0500 Subject: upload: add support for setting hashtags This allows users to specify custom hashtags when uploading, both via the CLI and via the same gitconfig settings as other upload options. Bug: https://crbug.com/gerrit/11174 Change-Id: Ia0959e25b463e5f29d704e4d06e0de793d4fc77c Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/255855 Reviewed-by: David Pursehouse Tested-by: Mike Frysinger --- project.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'project.py') diff --git a/project.py b/project.py index e0e9b7fe..06606fa6 100644 --- a/project.py +++ b/project.py @@ -199,6 +199,7 @@ class ReviewableBranch(object): def UploadForReview(self, people, auto_topic=False, + hashtags=(), draft=False, private=False, notify=None, @@ -209,6 +210,7 @@ class ReviewableBranch(object): self.project.UploadForReview(self.name, people, auto_topic=auto_topic, + hashtags=hashtags, draft=draft, private=private, notify=notify, @@ -1331,6 +1333,7 @@ class Project(object): def UploadForReview(self, branch=None, people=([], []), auto_topic=False, + hashtags=(), draft=False, private=False, notify=None, @@ -1388,6 +1391,7 @@ class Project(object): opts = [] if auto_topic: opts += ['topic=' + branch.name] + opts += ['t=%s' % p for p in hashtags] opts += ['r=%s' % p for p in people[0]] opts += ['cc=%s' % p for p in people[1]] -- cgit v1.2.3-54-g00ecf