Commits

Mikhail Korobov committed 08a3dff

Error-prone changes detection is removed from 'push' command.

Comments (0)

Files changed (1)

fab_deploy/deploy.py

 from fabric.contrib.files import upload_template
 
 from fab_deploy.utils import upload_config_template, delete_pyc
-from fab_deploy.virtualenv import pip_install
+from fab_deploy.virtualenv import pip_install, pip_update
 from fab_deploy.django_commands import compress, migrate, syncdb, test
 from fab_deploy.system import prepare_server
 from fab_deploy.apache import apache_setup, apache_install, touch
 def push(*args):
     ''' Run it instead of hg push.
     Arguments:
-      * force - run all actions even if nothing changes
       * notest - don't run tests
       * syncdb - run syncdb before code reloading
       * migrate - run migrate before code reloading
     local('hg push %s' % repo)
     delete_pyc()
     with cd('src/'+env.conf['INSTANCE_NAME']):
-        output = run('hg up')
-        updated = '0 files updated, 0 files merged, 0 files removed, 0 files unresolved' not in output
-    if updated or 'force' in args:
-        if 'pip_update' in args:
-            pip_update(restart=False)
-        if 'syncdb' in args:
-            syncdb()
-        if 'migrate' in args:
-            migrate()
-        compress()
-        if 'norestart' not in args:
-            touch()
-        if 'notest' not in args:
-            test()
+        run('hg up')
 
+    if 'pip_update' in args:
+        pip_update(restart=False)
+    if 'syncdb' in args:
+        syncdb()
+    if 'migrate' in args:
+        migrate()
+    compress()
+    if 'norestart' not in args:
+        touch()
+    if 'notest' not in args:
+        test()
+
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.