Maybe try something like suggested here:
https://stackoverflow.com/questions/1568484/need-to-restore-a-deleted-branch-in-subversion
Mendix runs on SVN, so any SVN solution would fix this for Mendix as well.