# HG changeset patch # User Martin Bornhold # Date 2016-10-27 08:33:55 # Node ID 8558abab01ff9ea52d29f9318f01d368bbcf5dfc # Parent 5b96938c9870d9aa45f27d340df000555720be1f pr: Add UpdateResponse data structure to hold response data when updating commits. diff --git a/rhodecode/model/pull_request.py b/rhodecode/model/pull_request.py --- a/rhodecode/model/pull_request.py +++ b/rhodecode/model/pull_request.py @@ -60,6 +60,12 @@ from rhodecode.model.settings import Vcs log = logging.getLogger(__name__) +# Data structure to hold the response data when updating commits during a pull +# request update. +UpdateResponse = namedtuple( + 'UpdateResponse', 'success, reason, new, old, changes') + + class PullRequestModel(BaseModel): cls = PullRequest