<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _setCurrentRev(self, rev, branch='default'):
 """Return a deferred to set current revision in persistent state."""

        self.lastRev[branch] = str(rev)
        return self.setState('lastRev', self.lastRev)