diff options
Diffstat (limited to 'subcmds/upload.py')
| -rw-r--r-- | subcmds/upload.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py index 07bd4d81..69efa107 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
| @@ -103,6 +103,14 @@ or in the .git/config within the project. For example: | |||
| 103 | autoupload = true | 103 | autoupload = true |
| 104 | autocopy = johndoe@company.com,my-team-alias@company.com | 104 | autocopy = johndoe@company.com,my-team-alias@company.com |
| 105 | 105 | ||
| 106 | review.URL.uploadtopic: | ||
| 107 | |||
| 108 | To add a topic branch whenever uploading a commit, you can set a | ||
| 109 | per-project or global Git option to do so. If review.URL.uploadtopic | ||
| 110 | is set to "true" then repo will assume you always want the equivalent | ||
| 111 | of the -t option to the repo command. If unset or set to "false" then | ||
| 112 | repo will make use of only the command line option. | ||
| 113 | |||
| 106 | References | 114 | References |
| 107 | ---------- | 115 | ---------- |
| 108 | 116 | ||
| @@ -311,6 +319,11 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ | |||
| 311 | branch.error = 'User aborted' | 319 | branch.error = 'User aborted' |
| 312 | continue | 320 | continue |
| 313 | 321 | ||
| 322 | # Check if topic branches should be sent to the server during upload | ||
| 323 | if opt.auto_topic is not True: | ||
| 324 | key = 'review.%s.uploadtopic' % branch.project.remote.review | ||
| 325 | opt.auto_topic = branch.project.config.GetBoolean(key) | ||
| 326 | |||
| 314 | branch.UploadForReview(people, auto_topic=opt.auto_topic) | 327 | branch.UploadForReview(people, auto_topic=opt.auto_topic) |
| 315 | branch.uploaded = True | 328 | branch.uploaded = True |
| 316 | except UploadError, e: | 329 | except UploadError, e: |
