calling $promote()  updates the version object with the return from the promote call.  In this case it is a task object which could have unpredictable side effects.