def switch_version(path, version=None, use_sudo=False, user=None):
 cmd = ['bzr', 'update']
 if version:
  cmd.extend(['-r', version])
 cmd.append(path)
 cmd = ' '.join(cmd)
 _run(cmd, use_sudo=use_sudo, user=user)

def switch_version ( path , version = None , use_sudo = False , user = None ) : cmd = [ 'bzr' , 'update' ] if version : cmd . extend ( [ '-r' , version ] ) cmd . append ( path ) cmd = ' ' . join ( cmd ) _run ( cmd , use_sudo = use_sudo , user = user )
switch working tree to specified revno/revid .