Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Unified Diff: git_cl.py

Issue 2324283002: Use 'draft' status to restrict access to private Gerrit reviews (Closed)
Patch Set: Fix extend vs. append Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index c6d283c3c56d6c21b234ab0956548be4ce9406a6..2d9ced9689664dafe547ddd61bc5835e26b5d528 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -2620,6 +2620,9 @@ class _GerritChangelistImpl(_ChangelistCodereviewBase):
if reviewers:
refspec_opts.extend('r=' + email.strip() for email in reviewers)
+ if options.private:
+ refspec_opts.append('draft')
+
refspec_suffix = ''
if refspec_opts:
refspec_suffix = '%' + ','.join(refspec_opts)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698