diff --git a/git_cl.py b/git_cl.py index 5a66386e6..b9d8acf11 100755 --- a/git_cl.py +++ b/git_cl.py @@ -2452,7 +2452,7 @@ class _GerritChangelistImpl(_ChangelistCodereviewBase): # Warm change details cache now to avoid RPCs later, reducing latency for # developers. self._GetChangeDetail( - ['DETAILED_ACCOUNTS', 'CURRENT_REVISION', 'CURRENT_COMMIT']) + ['DETAILED_ACCOUNTS', 'CURRENT_REVISION', 'CURRENT_COMMIT', 'LABELS']) status = self._GetChangeDetail()['status'] if status in ('MERGED', 'ABANDONED'): diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py index 452836819..a267e9549 100755 --- a/tests/git_cl_test.py +++ b/tests/git_cl_test.py @@ -1088,7 +1088,8 @@ class TestGitCl(TestCase): 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',