The latest releast is always tagged with openacs-5-1-compat, so if you follow the upgrade instructions on openacs.org, it should update correctly.
You can also upgrade by using the remote repository feature if you're not using CVS.
Basically, the default upgrade instructions should work.
And I always provide upgrade scripts when they are necessary.