Commits

Jens Alfke committed 5fa84dc

Get the "--locally modified--" and "(no changes)" messages in the comment column for the current revision to update correctly after its status changes.

Comments (0)

Files changed (1)

Source/HgUncommittedRevision.m

     return [NSSet setWithObject: @"root.isUncommitted"];
 }
 
+- (NSString*) shortComment
+{
+    if (_comment.length)
+        return super.shortComment;
+    else
+        return self.comment;    // special messages
+}
+
 - (NSString*) formattedDescription                  {return _comment;}
 - (void) setFormattedDescription: (NSString*)str    {self.comment = str;}