Bruce Zu
cd6572d435
Prevent duplicate commits in same project when uploading to refs/changes/n
...
Under certain circumstances, when pushing to 'refs/changes/n', the same
commit can be pushed onto multiple changes even if they are on the same
branch.
As a result of this, if the commit sha1 is used as change identifier
in the 'review' ssh command, it will fail with the error:
'fatal: <SHA1> matches multiple patch sets.'
This commit performs the same check as when pushing to 'refs/for/branch'
to prevent this, and will show "commit already exists (in the project)"
error message to reject uploading a commit to an existing change via
`refs/changes/n` if the commit was already successfully pushed to a change
in project scope.
Bug: issue 2374
Change-Id: I1c000b2cc3e155617cdc9c295a46ce2107ec47ca
2014-03-11 08:26:36 +00:00
..
2011-12-28 12:33:39 -07:00
2013-06-14 20:30:32 +02:00
2014-01-27 20:53:24 +01:00
2013-10-18 01:28:23 +00:00
2013-09-27 09:31:32 -07:00
2012-03-30 16:12:42 +02:00
2013-05-10 16:17:10 +01:00
2013-08-24 12:10:25 +09:00
2012-07-16 13:53:22 +02:00
2013-09-16 22:26:48 +09:00
2012-03-21 17:43:29 +01:00
2013-03-20 21:36:09 -07:00
2013-08-17 00:46:36 +02:00
2013-08-08 15:11:31 +09:00
2013-11-27 21:22:06 +01:00
2012-03-21 17:43:29 +01:00
2013-02-08 14:48:38 +01:00
2013-05-08 07:51:59 -07:00
2012-08-31 15:53:04 +02:00
2013-05-01 12:19:28 +02:00
2012-07-26 16:24:47 -05:00
2013-09-26 10:56:18 +09:00
2012-07-17 16:07:02 +02:00
2012-07-18 12:48:36 +02:00
2012-07-17 16:07:02 +02:00
2013-05-02 14:29:41 +00:00
2013-02-27 16:07:30 -08:00
2011-10-27 00:28:11 +02:00
2013-11-28 12:25:22 +09:00
2012-09-13 09:15:02 +02:00
2013-06-14 20:30:32 +02:00
2011-11-16 09:34:26 +01:00
2013-09-16 22:26:48 +09:00
2012-07-16 13:53:22 +02:00
2013-06-11 01:36:31 -05:00
2013-06-11 01:36:31 -05:00
2013-06-24 10:16:28 +09:00
2013-10-31 13:49:25 +01:00
2013-06-11 13:56:13 -07:00
2013-03-04 11:13:36 -08:00
2013-03-26 10:50:19 +01:00
2013-08-29 15:14:50 -07:00
2013-09-18 12:52:17 -07:00
2013-01-07 17:30:55 +09:00
2012-06-12 14:54:54 +02:00
2014-02-17 14:29:21 -05:00
2013-05-10 10:23:31 -07:00
2013-11-07 15:21:41 +09:00
2013-09-27 20:15:08 +02:00
2013-11-28 12:25:16 +09:00
2013-07-11 22:32:36 +09:00
2013-10-16 16:52:12 +02:00
2013-06-05 08:55:10 +02:00
2012-06-12 14:54:54 +02:00
2013-04-10 10:47:03 -07:00
2013-08-08 11:32:21 +09:00
2013-10-08 17:45:39 +00:00
2013-08-29 15:14:50 -07:00
2013-10-17 00:14:47 +09:00
2013-07-10 22:10:20 +09:00
2013-11-28 12:25:16 +09:00
2013-05-21 20:28:56 -07:00
2014-01-23 09:29:16 +01:00
2013-12-10 16:40:50 +09:00
2013-12-04 17:21:41 +09:00
2013-06-21 11:01:45 -07:00
2013-08-29 15:14:50 -07:00
2013-05-30 17:03:31 +02:00
2014-02-19 10:29:34 +01:00
2012-12-12 13:09:05 +01:00
2012-06-27 10:10:23 +02:00
2012-06-12 14:54:54 +02:00
2012-06-12 14:54:54 +02:00
2011-02-03 08:53:46 +01:00
2014-03-11 08:26:36 +00:00
2011-04-08 11:00:40 +02:00
2013-08-29 15:14:50 -07:00
2012-06-26 09:24:47 +02:00
2012-11-13 12:18:16 +09:00
2012-06-26 09:24:47 +02:00
2013-02-19 08:39:18 +01:00
2013-07-05 09:21:35 +02:00
2012-11-13 12:18:16 +09:00
2012-06-12 14:54:54 +02:00
2011-01-25 15:33:40 +01:00
2014-03-11 08:26:36 +00:00
2012-06-12 14:54:54 +02:00
2012-06-12 14:54:54 +02:00
2012-06-12 14:54:54 +02:00
2011-02-04 10:22:50 +01:00
2012-11-13 12:18:16 +09:00
2011-01-12 07:12:36 -08:00
2012-06-12 14:54:54 +02:00
2014-02-20 14:49:17 +01:00
2013-02-19 08:39:18 +01:00
2012-06-12 14:54:54 +02:00
2012-06-12 14:54:54 +02:00
2012-01-23 16:46:57 +01:00
2013-05-18 14:08:02 -07:00
2013-03-14 14:22:27 -07:00
2014-01-17 11:49:51 +09:00
2013-09-18 12:52:17 -07:00
2012-11-28 16:54:10 +09:00
2013-10-24 18:55:29 +09:00
2014-02-12 17:11:23 +09:00
2013-03-14 14:22:27 -07:00
2013-09-27 14:13:17 +09:00
2013-07-05 23:13:08 +02:00
2013-12-10 16:40:50 +09:00
2013-12-10 16:40:50 +09:00
2013-08-23 12:32:07 +09:00
2013-12-10 18:41:38 +09:00
2013-12-10 16:40:50 +09:00
2013-06-24 10:16:28 +09:00
2013-08-23 17:06:38 +09:00
2011-10-27 02:24:06 +02:00
2013-10-08 11:18:31 -07:00
2013-05-14 17:45:32 +09:00
2012-10-23 10:32:25 -04:00
2013-09-18 13:13:29 -07:00
2013-10-08 10:27:08 -07:00
2013-07-12 13:21:15 +02:00
2014-02-21 12:30:53 +09:00
2014-03-06 07:19:15 +00:00
2013-11-06 09:24:47 +01:00
2013-08-06 16:25:24 -04:00
2013-10-24 11:26:01 +09:00
2013-09-27 14:13:17 +09:00
2013-08-30 16:03:25 +02:00
2013-05-10 16:17:10 +01:00
2013-08-09 13:14:11 +08:00
2013-07-08 16:51:55 +09:00
2014-01-13 13:34:25 +00:00
2013-11-28 12:25:16 +09:00
2013-05-08 00:17:16 +02:00
2013-04-22 11:57:40 -07:00