RETIRED, Gerrit as used by OpenStack
Go to file
Dave Borowitz a828fedfba ConsistencyChecker: Add a field to check expected merged SHA-1
When closing a change by push, the ref update to advance the branch
(ReceiveCommits.java:574) happens before closing the changes
(ReceiveCommits.java:614). This means in the event of some kinds of
database failures, a change might be merged into the destination
branch but never marked merged, *and* the actual commit SHA-1 that was
pushed might differ from any existing patch set.

Without doing a full walk of history, we have no easy way of
recovering from this situation only by inspecting the repo on the
server. The only way to detect a commit matching the change that
should have been inserted as a new patch set would be to inspect the
Change-Id footers, but we wouldn't know how far back in history to
walk. (This is additionally complicated by the fact that a commit with
the same Change-Id may have been merged in from a different branch.)

Fortunately, in the case we're talking about here, the end user should
have some record of the SHA-1 they're looking for, since they
previously ran "git push" on that SHA-1. So, this change provides a
new field in FixInput, expectMergedAs, to provide that SHA-1 and check
that it was actually the SHA-1 the change was merged as. In the event
that there is no patch set for the change at that SHA-1, one is
created.

Since the check would be potentially too expensive to do without
providing this SHA-1, it is only activated when this fix field is
provided.

Change-Id: Ie96633aae39d22694b2e6add072ce9ee82f1e30b
2015-06-12 11:22:30 -04:00
.settings Update import order settings to list all top-level packages 2015-03-25 20:36:56 +00:00
bucklets Rename __standalone_mode__ to STANDALONE_MODE 2014-11-24 08:44:12 +00:00
contrib Fix minor python code style issues 2014-12-18 02:51:06 +00:00
Documentation ConsistencyChecker: Add a field to check expected merged SHA-1 2015-06-12 11:22:30 -04:00
gerrit-acceptance-tests ConsistencyChecker: Add a field to check expected merged SHA-1 2015-06-12 11:22:30 -04:00
gerrit-antlr Kill @Rewrite support in queries 2015-05-27 03:55:33 +00:00
gerrit-cache-h2 Merge branch 'stable-2.11' 2015-04-30 11:56:32 +09:00
gerrit-common Add a Maintain Server global capability 2015-06-12 11:15:57 -04:00
gerrit-extension-api ConsistencyChecker: Add a field to check expected merged SHA-1 2015-06-12 11:22:30 -04:00
gerrit-gwtdebug Organize imports 2014-12-18 11:16:03 +09:00
gerrit-gwtexpui gerrit-gwtexpui: Convert tests to use Google Truth 2015-06-04 09:49:11 +09:00
gerrit-gwtui Merge changes from topic 'remove-gerrit-config-from-client' 2015-06-10 00:14:30 +00:00
gerrit-gwtui-common Remove unused parseJSON method 2015-06-04 02:41:09 +00:00
gerrit-httpd RestApiServlet: Support Rest{Read,Modify}View on the same class 2015-06-12 11:22:28 -04:00
gerrit-launcher Replace C-style array declarations with Java-style declarations 2015-03-19 12:15:43 +09:00
gerrit-lucene Lucene: Prohibit searching empty string over a full-text field 2015-05-29 12:19:12 -07:00
gerrit-main Replace C-style array declarations with Java-style declarations 2015-03-19 12:15:43 +09:00
gerrit-oauth Merge branch 'stable-2.10' into stable-2.11 2015-05-07 10:37:48 +09:00
gerrit-openid Merge branch 'stable-2.10' into stable-2.11 2015-05-07 10:37:48 +09:00
gerrit-patch-commonsnet Replace 'for' loop with 'foreach' 2013-12-04 01:02:53 +04:00
gerrit-patch-jgit Turn on many more Eclipse warnings, and fix them 2014-10-29 15:00:17 -07:00
gerrit-pgm ErrorLogFile: Call ConsoleAppender.activateOptions() 2015-06-09 15:47:38 -07:00
gerrit-plugin-api Set version to 2.11.1 2015-05-08 14:43:55 +09:00
gerrit-plugin-archetype Set version to 2.11.1 2015-05-08 14:43:55 +09:00
gerrit-plugin-gwt-archetype Set version to 2.11.1 2015-05-08 14:43:55 +09:00
gerrit-plugin-gwtui Set version to 2.11.1 2015-05-08 14:43:55 +09:00
gerrit-plugin-js-archetype Set version to 2.11.1 2015-05-08 14:43:55 +09:00
gerrit-prettify Add missing braces around if- for- and while-statements 2015-03-19 12:15:42 +09:00
gerrit-reviewdb Declare guava and junit as exported deps of Google Truth 2015-06-04 09:41:17 +09:00
gerrit-server ConsistencyChecker: Add a field to check expected merged SHA-1 2015-06-12 11:22:30 -04:00
gerrit-solr IndexConfig: Configure maxLimit from Config 2015-04-23 11:30:13 -07:00
gerrit-sshd Add a Maintain Server global capability 2015-06-12 11:15:57 -04:00
gerrit-util-cli Add missing braces around if- for- and while-statements 2015-03-19 12:15:42 +09:00
gerrit-util-http RequestUtilTest: Convert to use Google Truth 2015-06-04 09:41:29 +09:00
gerrit-util-ssl Turn on many more Eclipse warnings, and fix them 2014-10-29 15:00:17 -07:00
gerrit-war Merge branch 'stable-2.11' 2015-05-19 17:50:57 +09:00
lib Upgrade JUnit to 4.11 again 2015-06-11 11:30:06 +09:00
plugins Merge changes from topic 'remove-gerrit-config-from-client' 2015-06-10 00:14:30 +00:00
ReleaseNotes Merge branch 'stable-2.11' 2015-05-27 11:00:46 +09:00
tools Buck: Disable cast checking in GWT compiler only in release mode 2015-06-05 18:47:06 +02:00
website/releases Releases: Update website to use Cloud Storage v1 API 2014-11-21 12:22:59 -08:00
.buckconfig Buck: Disable cast checking in GWT compiler only in release mode 2015-06-05 18:47:06 +02:00
.buckversion Update Buck to newest version 2015-05-10 20:03:16 +02:00
.editorconfig Add basic EditorConfig 2015-03-03 07:12:16 +00:00
.gitignore Revert "Add UNIT_TEST_GERRIT_SITE to .gitignore" 2015-04-27 14:49:03 +09:00
.gitmodules Add singleusergroup plugin 2013-11-09 07:45:00 +01:00
.mailmap Update mailmap 2015-04-08 07:50:41 +00:00
.pydevproject Update PyDev project to use Python 2.7 2014-10-02 15:16:44 +09:00
.watchmanconfig Watchman: Add buck-out dir to ignored directories 2014-08-21 07:32:37 +02:00
BUCK Buck: Disable cast checking in GWT compiler only in release mode 2015-06-05 18:47:06 +02:00
COPYING Initial project setup of Gerrit 2 2008-11-14 16:59:34 -08:00
INSTALL Remove Gerrit 1.x to 2.x import tools 2009-03-27 20:20:10 -07:00
SUBMITTING_PATCHES Update push URL in SUBMITTING_PATCHES 2012-03-29 00:57:14 -04:00
VERSION Set version to 2.11.1 2015-05-08 14:43:55 +09:00