code: def _setCurrentRev(self, rev, branch='default'):
          
          self.lastRev[branch] = str(rev)
          return self.setState('lastRev', self.lastRev)
docs: Return a deferred to set current revision in persistent state.