<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 23, 2017 at 3:01 PM, Niels de Vos <span dir="ltr">&lt;<a href="mailto:ndevos@redhat.com" target="_blank">ndevos@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-m_1018567546707729272HOEnZb"><div class="gmail-m_1018567546707729272h5">On Fri, Jun 23, 2017 at 01:47:57PM +0530, Pranith Kumar Karampuri wrote:<br>
&gt; On Fri, Jun 23, 2017 at 1:30 PM, Niels de Vos &lt;<a href="mailto:ndevos@redhat.com" target="_blank">ndevos@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; On Fri, Jun 23, 2017 at 09:15:21AM +0530, Pranith Kumar Karampuri wrote:<br>
&gt; &gt; &gt; hi,<br>
&gt; &gt; &gt;      Now that we are doing backports with same Change-Id, we can find the<br>
&gt; &gt; &gt; patches and their backports both online and in the tree without any extra<br>
&gt; &gt; &gt; information in the commit message. So shall we stop adding text similar<br>
&gt; &gt; to:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;     &gt; Reviewed-on: <a href="https://review.gluster.org/17414" rel="noreferrer" target="_blank">https://review.gluster.org/174<wbr>14</a><br>
&gt; &gt; &gt;     &gt; Smoke: Gluster Build System &lt;<a href="mailto:jenkins@build.gluster.org" target="_blank">jenkins@build.gluster.org</a>&gt;<br>
&gt; &gt; &gt;     &gt; Reviewed-by: Pranith Kumar Karampuri &lt;<a href="mailto:pkarampu@redhat.com" target="_blank">pkarampu@redhat.com</a>&gt;<br>
&gt; &gt; &gt;     &gt; Tested-by: Pranith Kumar Karampuri &lt;<a href="mailto:pkarampu@redhat.com" target="_blank">pkarampu@redhat.com</a>&gt;<br>
&gt; &gt; &gt;     &gt; NetBSD-regression: NetBSD Build System &lt;<a href="mailto:jenkins@build.gluster.org" target="_blank">jenkins@build.gluster.org</a>&gt;<br>
&gt; &gt; &gt;     &gt; Reviewed-by: Amar Tumballi &lt;<a href="mailto:amarts@redhat.com" target="_blank">amarts@redhat.com</a>&gt;<br>
&gt; &gt; &gt;     &gt; CentOS-regression: Gluster Build System &lt;<a href="mailto:jenkins@build.gluster.org" target="_blank">jenkins@build.gluster.org</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;     (cherry picked from commit de92c363c95d16966dbcc9d8763fd4<wbr>448dd84d13)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; in the patches?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Do you see any other value from this information that I might be missing?<br>
&gt; &gt;<br>
&gt; &gt; I think it is good practise to mention where the backport comes from,<br>
&gt; &gt; who developed and reviewed the original. At least the commit-id is<br>
&gt; &gt; important, that way the backport can easily be compared to the original.<br>
&gt; &gt; git does not know about Change-Ids, but does know commmit-ids :)<br>
&gt; &gt;<br>
&gt;<br>
&gt; Change-ID captures all this information. You can know the patch in all<br>
&gt; branches with Change-ID, now that we are following same Change-ID across<br>
&gt; branches.<br>
<br>
</div></div>However a Change-Id is not standard git, it is purely a Gerrit thing. I<br>
can&#39;t cherry-pick or &#39;git show&#39; a Change-Id, but that works fine with a<br>
git-commit.<br></blockquote><div><br></div><div>Where do we mention git commit-id now? If we do the backport using gerrit, it adds it as &quot;(cherry picked from commit de92c363c95d16966dbcc9d8763fd4<wbr>448dd84d13)&quot;, otherwise I don&#39;t think it gets mentioned, right?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I also like to give credits to the people that originally wrote and<br>
reviewed the change. It is not required, but it is nice to have.<br></blockquote><div><br></div><div>If you do the backport using standard commands Author and committer are correctly shown in the patch, I think the tool already handles it. As for the reviewer etc. as this information is available on the actual patches, if the person who is checking for it really wants it, can find out.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span><br>
&gt; &gt; We should try to have all the needed details in the git repository, and<br>
&gt; &gt; not rely on Gerrit for patch verification/checking. When I&#39;m working on<br>
&gt; &gt; a patch and wonder why/when something related was changed, I&#39;ll use the<br>
&gt; &gt; local history, and do not want to depend on Gerrit.<br>
&gt; &gt;<br>
&gt;<br>
&gt; Change-ID is mentioned in the commit which is there in the git log, so we<br>
&gt; can figure out the information without needing internet/gerrit. So that<br>
&gt; part is not a problem.<br>
<br>
</span>Yes, of course I can figure it out, but it is additional work. Most<br>
tools do not know about Change-Ids, like browsing through the code on<br>
GitHub; a commit-id will be linked, a Change-Id not.<br>
<span><br></span></blockquote><div><br></div><div>We will discuss this further after my question above about commit-id is answered.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>
&gt; All of this information was important to mention earlier because there was<br>
&gt; no common thing binding all together. With same Change-ID across branches<br>
&gt; for a patch, it seems unnecessary to mention this information in the commit<br>
&gt; message.<br>
<br>
</span>Not everyone is familiar with how Gerrit handles Change-Ids. A<br>
git-commit is something that other (new) contributors understand better.<br>
I prefer to make it as easy as possible for people to go through the git<br>
log and compare/check/verify whatever they are looking for. Limiting<br>
references to Change-Ids makes their task a little more difficult.<br></blockquote><div><br></div><div>Same here: We will discuss this further after my question above about commit-id is answered.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-m_1018567546707729272HOEnZb"><font color="#888888"><br>
Niels<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail-m_1018567546707729272gmail_signature"><div dir="ltr">Pranith<br></div></div>
</div></div>