# HG changeset patch
# User Chris Cannam
# Date 1291416144 0
# Node ID 97faf861618b8cc2ca211e8d5443c523f008bf65
# Parent de39da2f9f4d6abc59fd47d5f13ce046b78cfed2
* Experiment with removing revision numbers from display (hashes only)
diff -r de39da2f9f4d -r 97faf861618b changeset.cpp
--- a/changeset.cpp Fri Dec 03 20:37:40 2010 +0000
+++ b/changeset.cpp Fri Dec 03 22:42:24 2010 +0000
@@ -69,17 +69,19 @@
<< "tags"
<< "comment";
- propTexts << QObject::tr("Identifier")
- << QObject::tr("Author")
- << QObject::tr("Date")
- << QObject::tr("Branch")
- << QObject::tr("Tag")
- << QObject::tr("Comment");
+ propTexts << QObject::tr("Identifier:")
+ << QObject::tr("Author:")
+ << QObject::tr("Date:")
+ << QObject::tr("Branch:")
+ << QObject::tr("Tag:")
+ << QObject::tr("Comment:");
for (int i = 0; i < propNames.size(); ++i) {
QString prop = propNames[i];
QString value;
- if (prop == "comment") {
+ if (prop == "id") {
+ value = hashOf(id());
+ } else if (prop == "comment") {
value = c;
} else if (prop == "tags") {
value = tags().join(" ");
diff -r de39da2f9f4d -r 97faf861618b changesetitem.cpp
--- a/changesetitem.cpp Fri Dec 03 20:37:40 2010 +0000
+++ b/changesetitem.cpp Fri Dec 03 22:42:24 2010 +0000
@@ -108,8 +108,8 @@
m_parentDiffActions.clear();
QMenu *menu = new QMenu;
- QLabel *label = new QLabel(tr(" Revision: %1")
- .arg(m_changeset->id()));
+ QLabel *label = new QLabel(tr(" Revision: %1")
+ .arg(Changeset::hashOf(m_changeset->id())));
QWidgetAction *wa = new QWidgetAction(menu);
wa->setDefaultWidget(label);
menu->addAction(wa);
@@ -124,7 +124,8 @@
foreach (QString parentId, m_changeset->parents()) {
QAction *diffParent =
- menu->addAction(tr("Diff to parent %1").arg(parentId));
+ menu->addAction(tr("Diff to parent %1")
+ .arg(Changeset::hashOf(parentId)));
connect(diffParent, SIGNAL(triggered()),
this, SLOT(diffToParentActivated()));
m_parentDiffActions[diffParent] = parentId;
diff -r de39da2f9f4d -r 97faf861618b uncommitteditem.cpp
--- a/uncommitteditem.cpp Fri Dec 03 20:37:40 2010 +0000
+++ b/uncommitteditem.cpp Fri Dec 03 22:42:24 2010 +0000
@@ -68,7 +68,7 @@
UncommittedItem::activateMenu()
{
QMenu *menu = new QMenu;
- QLabel *label = new QLabel(tr(" Uncommitted changes"));
+ QLabel *label = new QLabel(tr(" Uncommitted changes"));
QWidgetAction *wa = new QWidgetAction(menu);
wa->setDefaultWidget(label);
menu->addAction(wa);