Exemplo n.º 1
0
def run(args):
    args = parser.parse_args(args)
    run_cmd("git clone git://github.com/mozilla/mozilla-central.git %s" % args.directory)

    # TODO: check for failure of command here

    store = get_zilla_data_store()
    store[os.path.abspath(clone_dir)] = {
        "branches": {}
    }
    store.save()
Exemplo n.º 2
0
def run(args):
    args = parser.parse_args(args)
    if args.off and not args.new:
        help()
        sys.exit(1)

    cmd = "git checkout "
    if args.new:
        cmd += "-b "
    cmd += args.branch
    if args.off:
        cmd += " %s" % args.off
    # utils.run_cmd(cmd)

    if args.new:
        store = utils.get_zilla_data_store()
        result = utils.run_cmd("git rev-parse --show-toplevel",
                               stdout=subprocess.PIPE)
        repo_dir = result.stdout.read().strip()
        print repo_dir
        store[repo_dir]["branches"][args.branch] = {
            "off": args.off
        }
        store.save()
Exemplo n.º 3
0
def run(args):
    args = parser.parse_args(args)
    store = utils.get_zilla_data_store()