Merge branch 'stable-2.8'

* stable-2.8:
  Bump JSch to 1.5.0 to fix Java7 compatibility
  Extend AddBranchResult with toString method implementation
  Get rid of JdbcSQLException while numbers are read from cache
  Set git submodules back to relative paths
  Handle KeyboardInterrupt in buck GWT compiler wrapper script
This commit is contained in:
Shawn Pearce
2013-11-05 11:17:22 -08:00
4 changed files with 19 additions and 14 deletions

10
.gitmodules vendored
View File

@@ -1,20 +1,20 @@
[submodule "plugins/commit-message-length-validator"]
path = plugins/commit-message-length-validator
url = https://gerrit.googlesource.com/plugins/commit-message-length-validator
url = ../plugins/commit-message-length-validator
[submodule "plugins/cookbook-plugin"]
path = plugins/cookbook-plugin
url = https://gerrit.googlesource.com/plugins/cookbook-plugin
url = ../plugins/cookbook-plugin
[submodule "plugins/download-commands"]
path = plugins/download-commands
url = https://gerrit.googlesource.com/plugins/download-commands
url = ../plugins/download-commands
[submodule "plugins/replication"]
path = plugins/replication
url = https://gerrit.googlesource.com/plugins/replication
url = ../plugins/replication
[submodule "plugins/reviewnotes"]
path = plugins/reviewnotes
url = https://gerrit.googlesource.com/plugins/reviewnotes
url = ../plugins/reviewnotes

View File

@@ -28,6 +28,7 @@ import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Timestamp;
import java.sql.Types;
import java.util.Calendar;
import java.util.Map;
import java.util.concurrent.ArrayBlockingQueue;
@@ -268,7 +269,7 @@ public class H2CacheImpl<K, V> extends AbstractLoadingCache<K, V> {
}
void set(PreparedStatement ps, int col, K value) throws SQLException {
ps.setObject(col, value);
ps.setObject(col, value, Types.JAVA_OBJECT);
}
Funnel<K> funnel() {
@@ -489,7 +490,7 @@ public class H2CacheImpl<K, V> extends AbstractLoadingCache<K, V> {
}
try {
keyType.set(c.put, 1, key);
c.put.setObject(2, holder.value);
c.put.setObject(2, holder.value, Types.JAVA_OBJECT);
c.put.setTimestamp(3, new Timestamp(holder.created));
c.put.setTimestamp(4, TimeUtil.nowTs());
c.put.executeUpdate();

View File

@@ -106,8 +106,8 @@ maven_jar(
maven_jar(
name = 'jsch',
id = 'com.jcraft:jsch:0.1.44-1',
sha1 = '2e9ae08de5a71bd0e0d3ba2558598181bfa71d4e',
id = 'com.jcraft:jsch:0.1.50',
sha1 = 'fae4a0b1f2a96cb8f58f38da2650814c991cea01',
license = 'jsch',
)

View File

@@ -54,8 +54,12 @@ cmd = [
'-localWorkers', str(cpu_count()),
] + opt + [module]
gwt = Popen(cmd, stdout = PIPE, stderr = PIPE)
out, err = gwt.communicate()
if gwt.returncode != 0:
print(out + err, file=stderr)
exit(gwt.returncode)
try:
gwt = Popen(cmd, stdout=PIPE, stderr=PIPE)
out, err = gwt.communicate()
if gwt.returncode != 0:
print(out + err, file=stderr)
exit(gwt.returncode)
except KeyboardInterrupt:
print("Interrupted by user", file=stderr)
exit(1)