1. dwt
  2. Murky

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.

  • Participants
  • Parent commits 2945d81
  • Branches default

Comments (0)

Files changed (1)

File Source/HgUncommittedRevision.m

View file
  • Ignore whitespace
     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;}