scripts/support/update_wiki_redirects.py
def commit_family_to_svn(dest_dir):
    """
    Commits a list of families to the svn using rfci -onlydesc

    dest_dir: A destination directory with all
    """

    os.chdir(dest_dir)

    # create a log file
    logging.basicConfig(filename=os.path.join(dest_dir, 'auto_rfci_errors.log'), level=logging.DEBUG)

    family_dirs = [x for x in os.listdir(dest_dir) if os.path.isdir(os.path.join(dest_dir, x))]

    rfci_cmd = "rfci -onlydesc -m \'Wiki Updates\' %s"

    for family_dir in family_dirs:
        cmd = rfci_cmd % family_dir

        try:
            subprocess.call(cmd, shell=True)

        except:
            logging.exception("Failed to commit family %s" % family_dir)

    Commits a list of families to the svn using rfci -onlydesc

    dest_dir: A destination directory with all
    
Commits a list of families to the svn using rfci -onlydesc
dest_dir: A destination directory with all
Commits a list of families to the svn using rfci - onlydesc dest_dir : A destination directory with all
def commit_family_to_svn(dest_dir):
    os.chdir(dest_dir)
    logging.basicConfig(filename=os.path.join(dest_dir, 'auto_rfci_errors.log'), level=logging.DEBUG)
    family_dirs = [x for x in os.listdir(dest_dir) if os.path.isdir(os.path.join(dest_dir, x))]
    rfci_cmd = "rfci -onlydesc -m \'Wiki Updates\' %s"
    for family_dir in family_dirs:
        cmd = rfci_cmd % family_dir
        try:
            subprocess.call(cmd, shell=True)
        except:
            logging.exception("Failed to commit family %s" % family_dir)
def commit_family_to_svn ( dest_dir ) : os . chdir ( dest_dir ) logging . basicConfig ( filename = os . path . join ( dest_dir , 'auto_rfci_errors.log' ) , level = logging . DEBUG ) family_dirs = [ x for x in os . listdir ( dest_dir ) if os . path . isdir ( os . path . join ( dest_dir , x ) ) ] rfci_cmd = "rfci -onlydesc -m \'Wiki Updates\' %s" for family_dir in family_dirs : cmd = rfci_cmd % family_dir try : subprocess . call ( cmd , shell = True ) except : logging . exception ( "Failed to commit family %s" % family_dir )
Commits a list of families to the svn using rfci -onlydesc
dest_dir: A destination directory with all
Commits a list of families to the svn using rfci - onlydesc dest_dir : A destination directory with all
"""
    Commits a list of families to the svn using rfci -onlydesc

    dest_dir: A destination directory with all
    """ # create a log file
dest_dir