Show More
@@ -104,6 +104,36 b' class MergeFailureReason(object):' | |||||
104 | MISSING_SOURCE_REF = 10 |
|
104 | MISSING_SOURCE_REF = 10 | |
105 |
|
105 | |||
106 |
|
106 | |||
|
107 | class UpdateFailureReason(object): | |||
|
108 | """ | |||
|
109 | Enumeration with all the reasons why the pull request update could fail. | |||
|
110 | ||||
|
111 | DO NOT change the number of the reasons, as they may be stored in the | |||
|
112 | database. | |||
|
113 | ||||
|
114 | Changing the name of a reason is acceptable and encouraged to deprecate old | |||
|
115 | reasons. | |||
|
116 | """ | |||
|
117 | ||||
|
118 | # Everything went well. | |||
|
119 | NONE = 0 | |||
|
120 | ||||
|
121 | # An unexpected exception was raised. Check the logs for more details. | |||
|
122 | UNKNOWN = 1 | |||
|
123 | ||||
|
124 | # The pull request is up to date. | |||
|
125 | NO_CHANGE = 2 | |||
|
126 | ||||
|
127 | # The pull request has a reference type that is not supported for update. | |||
|
128 | WRONG_REF_TPYE = 3 | |||
|
129 | ||||
|
130 | # Update failed because the target reference is missing. | |||
|
131 | MISSING_TARGET_REF = 4 | |||
|
132 | ||||
|
133 | # Update failed because the source reference is missing. | |||
|
134 | MISSING_SOURCE_REF = 5 | |||
|
135 | ||||
|
136 | ||||
107 | class BaseRepository(object): |
|
137 | class BaseRepository(object): | |
108 | """ |
|
138 | """ | |
109 | Base Repository for final backends |
|
139 | Base Repository for final backends |
General Comments 0
You need to be logged in to leave comments.
Login now