Revision Number in History View - Kiln Knowledge Exchange most recent 30 from http://kiln.stackexchange.com2013-05-25T18:34:11Zhttp://kiln.stackexchange.com/feeds/question/305http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://kiln.stackexchange.com/questions/305/revision-number-in-history-viewRevision Number in History ViewScott Porad2009-11-16T19:09:55Z2013-01-10T14:44:42Z
<p>I am looking at the history view of a repo: how can I see the revision number of a given revision? </p>
<p>One way I know is that I can click into the revision and see the GUID, but a) I want the revision number, not the GUID, and b) I don't want to click.</p>
http://kiln.stackexchange.com/questions/305/revision-number-in-history-view/306#306Answer by Jason Rosoff for Revision Number in History ViewJason Rosoff2009-11-16T19:29:56Z2009-11-16T21:02:34Z<p>This request made me smile a little as the revision ID/changeset ID column has been added and removed from that view many times since we started Kiln. </p>
<p>This is a little tricky because the revision number for a given changeset is subjective because it varies depending on which repository or clone you are looking at. In other words, the revision with changeset ID "8fa3c1" could have revision ID 307 on the server, and 310 on your local clone of that repository. We found that this was getting people confused when they tried to use it, and also found that it was rarely being used. </p>
<p>Thus we ended up with the current design of only showing the changeset ID, and only when you are looking at an individual changeset (so it doesn't distract from the much more frequently used information in the current changeset view).</p>
<p>We will definitely keep an eye on this to see if some kind of consensus forms to change our current reasoning.</p>
http://kiln.stackexchange.com/questions/305/revision-number-in-history-view/347#347Answer by quux for Revision Number in History Viewquux2009-12-02T12:11:58Z2009-12-02T12:11:58Z<p>I voted this up, because I do have a want. Revision numbers is close to that want, but not precisely it. I documented my want at <a href="http://kiln.stackexchange.com/questions/346" rel="nofollow">http://kiln.stackexchange.com/questions/346</a>.</p>
http://kiln.stackexchange.com/questions/305/revision-number-in-history-view/3159#3159Answer by Mike for Revision Number in History ViewMike2011-03-01T13:39:14Z2011-03-01T13:39:14Z<p>Why don't you add this info back but make it OFF for each user by default?</p>
<p>And if the user turns it on you display a warning.</p>
<p>This way you can have the best of both worlds.</p>
http://kiln.stackexchange.com/questions/305/revision-number-in-history-view/5089#5089Answer by adambox for Revision Number in History Viewadambox2013-01-10T14:44:42Z2013-01-10T14:44:42Z<p>You can add the changeset hashes (guids) to history views with this Kiln Glaze:</p>
<pre><code>name: Changeset Hash
description: Shows the changeset ID for each changeset in a list.
author: John Isaacks and Tyler Hicks-Wright
version: 1.0.0.0
js:
$('[id^=changesetList] tr').each(function () {
var tr = $(this);
var sid = tr.attr('sid');
if(sid)
{
var first = $('<span>')
.addClass('csetHash')
.text(sid.substring(0,10));
var rest = $('<span>')
.addClass('hashRest')
.text(sid.substring(10))
.hide();
rest.appendTo(first);
tr.find('td span.changesetDescription').append(first);
}
});
$('.csetHash').hover(
function(){
$(this).find('.hashRest').css('display','');
},
function(){
$(this).find('.hashRest').css('display','none');
}
);
css:
.csetHash
{
color: #777;
}
</code></pre>