diff options
author | Lauren Perry <lauren.perry@codethink.co.uk> | 2015-02-13 13:23:16 +0000 |
---|---|---|
committer | Lauren Perry <lauren.perry@codethink.co.uk> | 2015-02-25 12:21:58 +0000 |
commit | 44124646579f5d7f0579bc70395723d4c0bdbcb5 (patch) | |
tree | 73ca146a896f70b3f78976b2fbbd3d52cdecbdf7 /distbuild/protocol.py | |
parent | 88e8767791d85aa0d01715f04b7e0f311f54759e (diff) | |
download | morph-44124646579f5d7f0579bc70395723d4c0bdbcb5.tar.gz |
Add protocol versioning for distbuild systems
Diffstat (limited to 'distbuild/protocol.py')
-rw-r--r-- | distbuild/protocol.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/distbuild/protocol.py b/distbuild/protocol.py index ffce1fe7..f2c74819 100644 --- a/distbuild/protocol.py +++ b/distbuild/protocol.py @@ -1,6 +1,6 @@ # distbuild/protocol.py -- abstractions for the JSON messages # -# Copyright (C) 2012, 2014 Codethink Limited +# Copyright (C) 2012, 2014 - 2015 Codethink Limited # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -19,12 +19,20 @@ '''Construct protocol message objects (dicts).''' +# Version refers to an integer that should be incremented by one each time a +# time a change is introduced that would break server/initiator compatibility + + +VERSION = 1 + + _required_fields = { 'build-request': [ 'id', 'repo', 'ref', 'morphology', + 'protocol_version', ], 'build-progress': [ 'id', |