Fix missing upstream messaging.

Bug: 1455494
Change-Id: Ie428c228d4a3fe2db1f95dbb9c642034de9eec79
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4858989
Reviewed-by: Gavin Mak <gavinmak@google.com>
Auto-Submit: Joanna Wang <jojwang@chromium.org>
Commit-Queue: Gavin Mak <gavinmak@google.com>
changes/89/4858989/4
Joanna Wang 2 years ago committed by LUCI CQ
parent bcba178212
commit d4dfff088c

@ -1417,8 +1417,9 @@ class Changelist(object):
upstream_branch = self.GetUpstreamBranch()
if not scm.GIT.IsValidRevision(settings.GetRoot(), upstream_branch):
DieWithError(
'The upstream for the current branch (%s) does not exist '
'anymore.\nPlease fix it and try again.' % self.GetBranch())
'The current branch (%s) has an upstream (%s) that does not exist '
'anymore.\nPlease fix it and try again.' %
(self.GetBranch(), upstream_branch))
return git_common.get_or_create_merge_base(self.GetBranch(),
upstream_branch)

Loading…
Cancel
Save