'once pulled, switch to a particular revno or revid'

def switch_version(self):

    if (self.version.lower() != 'head'):
        args_list = ['revert', '-r', self.version]
    else:
        args_list = ['revert']
    return self._command(args_list, check_rc=True, cwd=self.dest)
