Skip to content

Commit

Permalink
yaco: v2.5 enums are not compatible with previous versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bamiaux committed Sep 26, 2018
1 parent 7790593 commit a94ba8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions YaLibs/YaToolsLib/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,13 @@ namespace ver
return INVALID;

const auto change_struc_ids = 0x0202000E;
const auto change_enum_ids = 0x02050000;
if(curr_ver >= change_struc_ids && repo_ver < change_struc_ids)
return INCOMPATIBLE;

if(curr_ver >= change_enum_ids && repo_ver < change_enum_ids)
return INCOMPATIBLE;

if(repo_ver < curr_ver)
return OLDER;

Expand Down
3 changes: 2 additions & 1 deletion tests/tests/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def get_current_version(self):
return runtests.sysexec(self.yaco_dir, ["git", "describe", "--long", "--dirty"]).strip()

# 2.2-14: struc ids now depend on random tag
min_valid_version = "v2.2-14-g00000000"
# 2.5: enum ids now depend on random tag
min_valid_version = "v2.5-g00000000"

def test_git_upgrade_version(self):
a, b = self.setup_cmder()
Expand Down

0 comments on commit a94ba8b

Please sign in to comment.