Commits

Jens Alfke committed 80e5645

Clear the uncommitted-revision comments after committing.

  • Participants
  • Parent commits 5e0ddb3

Comments (0)

Files changed (5)

File Source/HgRevision.m

 }
 
 
-#if 0
-//@synthesize parent=_parent, parent2=_parent2;
-#else // add some sanity checks (see issue #11)
+// some sanity checks (see issue #11)
 - (HgRevision*) parent  {return _parent;}
 - (HgRevision*) parent2 {return _parent2;}
 
         _parent2 = [parent retain];
     }
 }
-#endif
 
 
 - (BOOL) descendsFrom: (HgRevision*)ancestor

File Source/HgUncommittedRevision.m

                         error: outError] )
         return NO;
     
+    self.comment = nil;     // I don't represent the revision with that comment anymore...
     return YES;
 }
 

File Source/RepoController.h

 // internal:
 @property (readonly) HgTempDir* tempDir;
 @property (retain) HgOperation *currentOperation;
+- (void) _updateInfoView;
 
 @end
 

File Source/RepoController.m

 @interface RepoController ()
 - (void) _updateWindowTitle;
 - (void) _expandPaths;
-- (void) _updateInfoView;
 @end
 
 

File Source/RepoController_Actions.m

         if( [_repo.uncommittedRevision commitFiles: files message: _commitMessageField.string error: &error] ) {
             _commitMessageField.string = @"";
             [_repo updateStatus: &error];
+            [self _updateInfoView];
         } else {
             [self presentError: error];
         }