"D. Richard Hipp" <[email protected]> wrote:
> On Dec 9, 2009, at 5:00 PM, Stephan Beal wrote:
> 
> > On Wed, Dec 9, 2009 at 6:39 PM, Jeremy Cowgar <[email protected]>  
> > wrote:
> > It seems that fossil is in need of two things:
> >
> > 1. Save the commit message to a file when the commit failed
> > 2. Provide a means of making fossil read the commit message from a  
> > file
> >
> > i've just added -M/--comment-file which does #2. If there are no  
> > objections to using -M/--comment-file for this, i will commit it.
> 
> I was looking into storing the commit comment in the local _FOSSIL_  
> database and automatically reinitializing the commit message to the  
> old comment on the second attempt to commit after the first attempt  
> failed.  In other words, make it fully automatic.  Check back tomorrow  
> and see if I don't have something working....
> 

I don't think that the -M/--comment-file really has much to do with a failing 
commit or the previous commit message. It would help with this problem, of 
course, but your solution is equally as well.

The place that I really see -M/--comment-file working is with scripting and 
integration of fossil into 3rd party products. Many editors/IDE's provide the 
ability to commit from the editor. They will bring up a dialog or query the 
user in some manner, write the message to disk and call svn, cvs, hg or 
whatever withe the commit message file. We too should provide that option if we 
want to see fossil become more widely accepted.

Now, on another note (a bit more personal to my work flow)... I will keep a 
file open in my editor that is changes. I'll document my changes in that file. 
Then, when I commit, I simply pass it on the command line. Thus, I never forget 
what I did between commits. Once I commit, I clear the file and start the 
process over again.

On both accounts, the -M/--comment-file are necessary and a good idea, apart 
from the problem being discussed.

Jeremy

_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to