vcs: Deprecate generic missing commit merge error reason.
There are two more specific error reasons (target/source ref missing) which should be used instead.
This commit is contained in:
parent
66a336156c
commit
0236ad15ca
2 changed files with 3 additions and 2 deletions
|
|
@ -94,8 +94,9 @@ class MergeFailureReason(object):
|
|||
# The target repository is locked
|
||||
TARGET_IS_LOCKED = 7
|
||||
|
||||
# Deprecated, use MISSING_TARGET_REF or MISSING_SOURCE_REF instead.
|
||||
# A involved commit could not be found.
|
||||
MISSING_COMMIT = 8
|
||||
_DEPRECATED_MISSING_COMMIT = 8
|
||||
|
||||
# The target repo reference is missing.
|
||||
MISSING_TARGET_REF = 9
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class PullRequestModel(BaseModel):
|
|||
MergeFailureReason.TARGET_IS_LOCKED: lazy_ugettext(
|
||||
'This pull request cannot be merged because the target repository'
|
||||
' is locked.'),
|
||||
MergeFailureReason.MISSING_COMMIT: lazy_ugettext(
|
||||
MergeFailureReason._DEPRECATED_MISSING_COMMIT: lazy_ugettext(
|
||||
'This pull request cannot be merged because the target or the '
|
||||
'source reference is missing.'),
|
||||
MergeFailureReason.MISSING_TARGET_REF: lazy_ugettext(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue