Commits

Josh VanderLinden committed 99daf40

Updated the mpush extension to include an mpull extension to do the same sort of thing

  • Participants
  • Parent commits aac0b0d

Comments (0)

Files changed (1)

     for name, location in ui.configitems('paths'):
         commands.push(ui, repo, location, **opts)
 
+def multi_pull(ui, repo, **opts):
+    """Pulls changesets in from all repos listed in the [paths] section of the config"""
+
+    for name, location in ui.configitems('paths'):
+        commands.pull(ui, repo, location, **opts)
+
 cmdtable = {
-    '^mpush': (multi_push, 
-    commands.table['^push'][1], 
-    commands.table['^push'][2].replace('[DEST]', ''))
+    '^mpush': (multi_push, commands.table['^push'][1], commands.table['^push'][2].replace('[DEST]', '')),
+    '^mpull': (multi_pull, commands.table['^pull'][1], commands.table['^pull'][2].replace('[SOURCE]', ''))
 }