Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

        def add_file(config, file):
    logging.debug("Adding %s" % file)
    cmd = config["vcs_add"] if "vcs_add" in config else DARCS_ADD
    cmd = cmd.split(' ')
    cmd.append(file)
    check_call(cmd)
        


src/m/u/musdex-11.07.04/musdex/commands.py   musdex(Download)
            if not os.path.exists(arcloc):
                os.makedirs(arcloc)
                vcs.add_file(arcloc)
            for f, t in arch.combine(force=True):
                index[f] = t
            for f, t in files:
                index[f] = t
                if f != arcloc: vcs.add_file(config, f)
 
        entry = {'filename': archive}
                    logging.debug("Post-extraction: %s(%s)" % (fmt, f))
                    fmt(f)
            if f != arcloc and f not in arcman: vcs.add_file(config, f)
 
    if index_updated: save_index(config, index)

src/m/u/musdex-11.07.04/musdex/config.py   musdex(Download)
    if new_conf:
        logging.info("Adding new configuration file to vcs: %s" % conf)
        vcs.add_file(config, conf)
 
# TODO: Perhaps the index should instead be a less verbose format?