Commits

Mikhail Korobov committed 08a3dff

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

  • Participants
  • Parent commits b6ffa67

Comments (0)

Files changed (1)

File 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()
+