[llvm] r201160 - Add a note about using "Differential Revision:" in commit messages
Mark Seaborn
mseaborn at chromium.org
Tue Feb 11 08:58:03 PST 2014
Author: mseaborn
Date: Tue Feb 11 10:58:03 2014
New Revision: 201160
URL: http://llvm.org/viewvc/llvm-project?rev=201160&view=rev
Log:
Add a note about using "Differential Revision:" in commit messages
I noticed this convention from the commit logs. It seems like it
would be useful to document it, to encourage other committers to link
back to code reviews in their commits.
Differential Revision: http://llvm-reviews.chandlerc.com/D2678
Modified:
llvm/trunk/docs/Phabricator.rst
Modified: llvm/trunk/docs/Phabricator.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/Phabricator.rst?rev=201160&r1=201159&r2=201160&view=diff
==============================================================================
--- llvm/trunk/docs/Phabricator.rst (original)
+++ llvm/trunk/docs/Phabricator.rst Tue Feb 11 10:58:03 2014
@@ -94,6 +94,26 @@ when a review changes state, for example
the web interface. Thus, please type LGTM into the comment box to accept
a change from Phabricator.
+Committing a change
+-------------------
+
+When committing an LLVM change that has been reviewed using
+Phabricator, the convention is for the commit message to end with the
+line:
+
+::
+
+ Differential Revision: <URL>
+
+where ``<URL>`` is the URL for the code review, starting with
+``http://llvm-reviews.chandlerc.com/``.
+
+Note that Arcanist will add this automatically.
+
+This allows people reading the version history to see the review for
+context. This also allows Phabricator to detect the commit, close the
+review, and add a link from the review to the commit.
+
Status
------
More information about the llvm-commits
mailing list