<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    How to figure out where a Jira were committed
</h3>
<span style="margin-bottom: 10px;">
    modified by <a href="http://community.jboss.org/people/max.andersen%40jboss.com">Max Andersen</a> in <i>JBoss Tools</i> - <a href="http://community.jboss.org/docs/DOC-16014">View the full document</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Noone should ever forget to set the proper fix version on a jira when you resolve or close it but sometimes we forget.</p><p>Below i'm outlining how you can figure out when/where things are actually committed.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h1>Find the matching commit</h1><p>First find the commit that matches the issue. For that the simplest way is to go to the Subversion Commit tab of the issue.</p><h2><a href="http://community.jboss.org/servlet/JiveServlet/showImage/10525/jira_commits.png"><span> http://community.jboss.org/servlet/JiveServlet/downloadImage/10525/450-144/jira_commits.png </span></a></h2><p><br/>This of course assumes you reference the jira in the commit message. If the jira is not referenced go hunt down the developer</p><p>and make him find it - if that is yourself, well - good hunting. svn log or <a class="jive-link-external-small" href="http://fisheye.jboss.org">http://fisheye.jboss.org</a> might be of help to you.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h1>Figure out what version the commit is for</h1><p>When you got the commit you know the date and if it were committed in trunk or a branch.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Now if that is not enough to figure out what specific release it was in you need to start using svn log to be sure of when a commit actually happend - using the release date of JBoss Tools is not good since the release date might be a few days after the tag actually happend.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thus svn log it is. You can use it to find when specific tags or branches happened.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>To find the branch date of 3.2.x you do the following on a command line:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">svn log https://svn.jboss.org/repos/jbosstools/branches/jbosstools-3.1.x -v --stop-on-copy
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This command goes back on the branch (or tag) and spits out the full log until it were created (i.e. when it were "copied")</p><p>This should give a long output which ends with something like this:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">------------------------------------------------------------------------
r20399 | nickboldt | 2010-02-20 01:39:20 +0100 (Sat, 20 Feb 2010) | 1 line
Changed paths:
&#160;&#160; D /branches/jbosstools-3.1.0.RC2
&#160;&#160; A /branches/jbosstools-3.1.x (from /branches/jbosstools-3.1.0.RC2:20398)

rename branch from RC2 to .x
------------------------------------------------------------------------
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This means that 3.1.x were done at "2010-02-20 01:39:20 +0100" and copied from the 3.1.0.RC2 branch, thus if your commit were done to this 3.1.0.RC2 branch before that date it is in 3.1.x. Of course if your commit were done in trunk you will then need to check if the RC2 branch were done before or after your trunk commit.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>To know if your fix made it into a specific version (which you will need to know to set the proper fix version months after it actually happend) then you just use svn log on the specific tag. i.e. here it is for 3.2.0:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">svn log https://svn.jboss.org/repos/jbosstools/tags/jbosstools-3.1.0.GA -v --stop-on-copy
------------------------------------------------------------------------
r20694 | nickboldt | 2010-03-06 00:46:43 +0100 (Sat, 06 Mar 2010) | 1 line
Changed paths:
&#160;&#160; A /tags/jbosstools-3.1.0.GA (from /branches/jbosstools-3.1.x:20693)

tag 3.1.0.GA
------------------------------------------------------------------------
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Which reveals the actual 3.1.0.GA were done on "2010-03-06 00:46:43 +0100" about 3 weeks after the branch were created.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>If you don't know the exact name of the tags/branches simply browse <a class="jive-link-external-small" href="https://svn.jboss.org/repos/jbosstools/tags">https://svn.jboss.org/repos/jbosstools/tags</a> or <a class="jive-link-external-small" href="https://svn.jboss.org/repos/jbosstools/tags">https://svn.jboss.org/repos/jbosstools/branches</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h1>What if my code does not live in JBoss Tools repo ?</h1><p>This is the case for a few components such as Drools, Savara, Teiid and others. They cab do the similar tricks outlined above, but in that repo and match up what version in JBoss Tools it works with. If if in doubt on what version of Drools, Savara,etc. made it into a specific release, the simplest way is currently to ask on jbosstools-dev.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>TBD: Link/page/resource where this can be found out.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h1>Update the Jira</h1><p>If an issue is already resolved or closed you need to reopen the issue, put a comment on why (i.e. "reopen to set fix version"), set the fix version and then resolve or close it (i.e. whatever it was before) and then leave additional comments for what were found. i.e. if you had to track down the specific svn commit because the jira weren't referenced then putting in a rev id or even better the fisheye link to the related commit would be good. That avoids you or others to have to do the same hunting once more.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h1>Other resources</h1><p><a class="jive-link-external-small" href="https://jira.jboss.org/browse/JBIDE#selectedTab=com.atlassian.jira.plugin.system.project%3Achangelog-panel">JBoss Tools jira changelog</a> have trunk/branches listed + release dates (but note that is not the same day the tag where made, its TAG day + Day for QE and Release)</p><p><a class="jive-link-external-small" href="https://jira.jboss.org/browse/JBDS#selectedTab=com.atlassian.jira.plugin.system.project%3Achangelog-panel"><span>JBoss Developer Studio roadmap</span></a> with rough maps to what JBoss Tools version it is based on</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>...and remember, all this could be avoided if you just always set the fix version properly when resolving/closing the issue <span> ;) </span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Comment by <a href="http://community.jboss.org/docs/DOC-16014">going to Community</a></p>

        <p style="margin: 0;">Create a new document in JBoss Tools at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2128">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>