Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2013-01-05 12:36:32 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2013-01-05 12:36:32 (GMT)
commit8d761e4130891324d6e522354e8e477acd998b0a (patch)
tree1fc892bfea9d0c35d21dddcfd5e39dec64378a29 /commands
parent3e36ee3ae1d63b0f8079349e6a13eb6b37f3e6d5 (diff)
Allow to specify revisions when pullin
Diffstat (limited to 'commands')
-rwxr-xr-xcommands/pull7
1 files changed, 6 insertions, 1 deletions
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)