From 8d761e4130891324d6e522354e8e477acd998b0a Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Sat, 05 Jan 2013 12:36:32 +0000 Subject: Allow to specify revisions when pullin --- (limited to 'commands') diff --git a/commands/pull b/commands/pull index 4e3ca8f..34f757c 100755 --- a/commands/pull +++ b/commands/pull @@ -9,6 +9,7 @@ from devbot import build parser = argparse.ArgumentParser() parser.add_argument("module", nargs="?", help="name of the module to pull") +parser.add_argument("--revisions", help="json dict with the revisions to pull") args = parser.parse_args() common.setup(log_name="pull") @@ -17,5 +18,9 @@ if args.module: if not build.pull_one(args.module): sys.exit(1) else: - if not build.pull(): + revisions = {} + if args.revisions: + revisions = json.loads(args.revisions) + + if not build.pull(revisions): sys.exit(1) -- cgit v0.9.1