git cl: cache also LABELS data on a change.
This removes 1 RPC when tbr-ing second or later patchset.
Since tests cover TBR only in first upload, there are
no test changes. Since adding test is real PITA here,
keep them as is.
R=ehmaldonado
Change-Id: I90801b06727ce2131a703d6cd6c24ffad798bc8a
Reviewed-on: https://chromium-review.googlesource.com/1242212
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py
index 4528368..a267e95 100755
--- a/tests/git_cl_test.py
+++ b/tests/git_cl_test.py
@@ -1088,7 +1088,8 @@
calls += [
(('GetChangeDetail', 'chromium-review.googlesource.com',
'my%2Frepo~123456',
- ['DETAILED_ACCOUNTS', 'CURRENT_REVISION', 'CURRENT_COMMIT']),
+ ['DETAILED_ACCOUNTS', 'CURRENT_REVISION', 'CURRENT_COMMIT', 'LABELS']
+ ),
{
'owner': {'email': (other_cl_owner or 'owner@example.com')},
'change_id': '123456789',