Consistently refer to Change-Id in documentation
Some parts were referring to "Change-ID". Change-Id: I5a3d23c854ffc4dc64b3292807eb32e8156bc2db
This commit is contained in:
parent
430d50527a
commit
2c6f638cb2
@ -27,7 +27,7 @@ SHA-1s.
|
||||
--project::
|
||||
-p::
|
||||
Name of the project the intended change is contained within. This
|
||||
option must be supplied before Change-ID in order to take effect.
|
||||
option must be supplied before Change-Id in order to take effect.
|
||||
|
||||
--add::
|
||||
-a::
|
||||
|
@ -6,7 +6,7 @@ that belongs to another project.
|
||||
This error message means that the user explicitly pushed a commit to
|
||||
a change that belongs to another project by specifying it as target
|
||||
ref. This way of adding a new patch set to a change is deprecated as
|
||||
explained link:user-upload.html#manual_replacement_mapping[here]. It is recommended to only rely on Change-IDs for
|
||||
explained link:user-upload.html#manual_replacement_mapping[here]. It is recommended to only rely on Change-Ids for
|
||||
link:user-upload.html#push_replace[replacing changes].
|
||||
|
||||
|
||||
|
@ -6,7 +6,7 @@ that cannot be found.
|
||||
This error message means that the user explicitly pushed a commit to
|
||||
a non-existing change by specifying it as target ref. This way of
|
||||
adding a new patch set to a change is deprecated as explained link:user-upload.html#manual_replacement_mapping[here].
|
||||
It is recommended to only rely on Change-IDs for link:user-upload.html#push_replace[replacing changes].
|
||||
It is recommended to only rely on Change-Ids for link:user-upload.html#push_replace[replacing changes].
|
||||
|
||||
|
||||
GERRIT
|
||||
|
@ -1,20 +1,20 @@
|
||||
= \... has duplicates
|
||||
|
||||
With this error message Gerrit rejects to push a commit if its commit
|
||||
message contains a Change-ID for which multiple changes can be found
|
||||
message contains a Change-Id for which multiple changes can be found
|
||||
in the project.
|
||||
|
||||
This error means that there is an inconsistency in Gerrit since for
|
||||
one project there are multiple changes that have the same Change-ID.
|
||||
Every change is expected to have an unique Change-ID.
|
||||
one project there are multiple changes that have the same Change-Id.
|
||||
Every change is expected to have an unique Change-Id.
|
||||
|
||||
Since this error should never occur in practice, you should inform
|
||||
your Gerrit administrator if you hit this problem and/or
|
||||
link:http://code.google.com/p/gerrit/issues/list[open a Gerrit issue].
|
||||
|
||||
In any case to not be blocked with your work, you can simply create a
|
||||
new Change-ID for your commit and then push it as new change to
|
||||
Gerrit. How to exchange the Change-ID in the commit message of your
|
||||
new Change-Id for your commit and then push it as new change to
|
||||
Gerrit. How to exchange the Change-Id in the commit message of your
|
||||
commit is explained link:error-push-fails-due-to-commit-message.html[here].
|
||||
|
||||
|
||||
|
@ -45,7 +45,7 @@ of a commit message, for details, see link:user-changeid.html[Change-Id Lines].
|
||||
|
||||
If the Change-Id is contained in the commit message but not in its
|
||||
last paragraph you have to update the commit message and move the
|
||||
Change-ID into the last paragraph. How to update the commit message
|
||||
Change-Id into the last paragraph. How to update the commit message
|
||||
is explained link:error-push-fails-due-to-commit-message.html[here].
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
= squash commits first
|
||||
|
||||
With this error message Gerrit rejects to push a commit if it
|
||||
contains the same Change-ID as a predecessor commit.
|
||||
contains the same Change-Id as a predecessor commit.
|
||||
|
||||
The reason for rejecting such a commit is that it would introduce, for
|
||||
the corresponding change in Gerrit, a dependency upon itself. Gerrit
|
||||
@ -14,7 +14,7 @@ This error is quite common, it appears when a user tries to address
|
||||
review comments and creates a new commit instead of amending the
|
||||
existing commit. Another possibility for this error, although less
|
||||
likely, is that the user tried to create a patch series with multiple
|
||||
changes to be reviewed and accidentally included the same Change-ID
|
||||
changes to be reviewed and accidentally included the same Change-Id
|
||||
into the different commit messages.
|
||||
|
||||
|
||||
@ -22,8 +22,8 @@ into the different commit messages.
|
||||
|
||||
Here an example about how the push is failing. Please note that the
|
||||
two commits 'one commit' and 'another commit' both have the same
|
||||
Change-ID (of course in real life it can happen that there are more
|
||||
than two commits that have the same Change-ID).
|
||||
Change-Id (of course in real life it can happen that there are more
|
||||
than two commits that have the same Change-Id).
|
||||
|
||||
----
|
||||
$ git log
|
||||
@ -54,11 +54,11 @@ than two commits that have the same Change-ID).
|
||||
error: failed to push some refs to 'ssh://JohnDoe@host:29418/myProject'
|
||||
----
|
||||
|
||||
If it was the intention to rework on a change and to push a new patch
|
||||
If it was the intention to rework on a change and push a new patch
|
||||
set the problem can be fixed by squashing the commits that contain the
|
||||
same Change-ID. The squashed commit can then be pushed to Gerrit.
|
||||
same Change-Id. The squashed commit can then be pushed to Gerrit.
|
||||
To squash the commits use git rebase to do an interactive rebase. For
|
||||
the example above where the last two commits have the same Change-ID
|
||||
the example above where the last two commits have the same Change-Id
|
||||
this means an interactive rebase for the last two commits should be
|
||||
done. For further details about the git rebase command please check
|
||||
the link:http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html[Git documentation for rebase].
|
||||
@ -92,11 +92,11 @@ the link:http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html[Git doc
|
||||
|
||||
If it was the intention to create a patch series with multiple
|
||||
changes to be reviewed, each commit message should contain the
|
||||
Change-ID of the corresponding change in Gerrit. If a change in
|
||||
Gerrit does not exist yet, the Change-ID should be generated (either
|
||||
by using a link:cmd-hook-commit-msg.html[commit hook] or by using EGit) or the Change-ID could be
|
||||
Change-Id of the corresponding change in Gerrit. If a change in
|
||||
Gerrit does not exist yet, the Change-Id should be generated (either
|
||||
by using a link:cmd-hook-commit-msg.html[commit hook] or by using EGit) or the Change-Id could be
|
||||
removed (not recommended since then amending this commit to create
|
||||
subsequent patch sets is more error prone). To change the Change-ID
|
||||
subsequent patch sets is more error prone). To change the Change-Id
|
||||
of an existing commit do an interactive link:http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html[git rebase] and fix the
|
||||
affected commit messages.
|
||||
|
||||
|
@ -251,7 +251,7 @@ As long as we set up the
|
||||
link:user-changeid.html[Change-Id commit-msg hook]
|
||||
before we uploaded the change, re-working it is easy. All we need
|
||||
to do to upload a re-worked change is to push another commit that has
|
||||
the same Change-Id in the message. Since the hook added a Change-ID in
|
||||
the same Change-Id in the message. Since the hook added a Change-Id in
|
||||
our initial commit we can simply checkout and then amend that commit.
|
||||
Then push it to Gerrit in the same way as we did to create the review. E.g.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user