Commits

Anonymous committed c6e3f58

test

  • Participants
  • Parent commits c7bf2da

Comments (0)

Files changed (2)

scripts/pullall.py

+#!/usr/bin/env python
+
+from fabric.api import local, lcd, prompt, settings
+
+DIRS=['/home/kchida/workspace/kchida_aws/kchida_aws',
+      '/home/kchida/dot-files',
+      '/home/kchida/ProgrammingStuff/my_notes']
+for directory in DIRS:
+    with lcd(directory):
+        with settings(warn_only=True):
+            local('git fetch origin && git merge origin')
+            local('hg pull && hg update')

scripts/pushall.py

 
 from fabric.api import local, lcd, prompt, settings
 
+DIRS=['/home/kchida/workspace/kchida_aws/kchida_aws',
+      '/home/kchida/dot-files',
+      '/home/kchida/ProgrammingStuff/my_notes']
 message = prompt('Enter your commit message: ')
-with settings(warn_only=True):
-    local('git add -A . && git commit -m "%s" && git push origin' % message)
-    local('hg addremove && hg commit -m "%s" -u kchida && hg push' % message)
+for directory in DIRS:
+    with lcd(directory):
+        with settings(warn_only=True):
+            local('git add -A . && git commit -m "%s" && git push origin' % message)
+            local('hg addremove && hg commit -m "%s" -u kchida && hg push' % message)