Author: rob.stryker(a)jboss.com
Date: 2011-10-26 09:12:32 -0400 (Wed, 26 Oct 2011)
New Revision: 36009
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/ExpressPublishMethod.java
Log:
JBIDE-10045 - trunk
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/ExpressPublishMethod.java
===================================================================
---
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/ExpressPublishMethod.java 2011-10-26
12:54:43 UTC (rev 36008)
+++
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/ExpressPublishMethod.java 2011-10-26
13:12:32 UTC (rev 36009)
@@ -66,8 +66,8 @@
return IServer.PUBLISH_STATE_UNKNOWN;
}
- int changed = EGitUtils.countCommitableChanges(p, new NullProgressMonitor() );
- if( changed == 0 || (kind == IServer.PUBLISH_FULL || state ==
IServer.PUBLISH_STATE_FULL)) {
+ if((kind == IServer.PUBLISH_FULL || state == IServer.PUBLISH_STATE_FULL)) {
+ int changed = EGitUtils.countCommitableChanges(p, new NullProgressMonitor() );
if( changed != 0 && requestCommitAndPushApproval(module, changed)) {
monitor.beginTask("Publishing " + p.getName(), 200);
EGitUtils.commit(p, new SubProgressMonitor(monitor, 100));
@@ -81,7 +81,7 @@
return IServer.PUBLISH_STATE_NONE;
}
}
- return IServer.PUBLISH_STATE_INCREMENTAL;
+ return state;
}
private void shareProjects(final IProject[] projects) {
Show replies by date