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.

Demo:

step...@jareth:~/cvs/fossil/foo$ f=~/cvs/fossil/fossil/fossil
step...@jareth:~/cvs/fossil/foo$ $f open ../foo.fsl
step...@jareth:~/cvs/fossil/foo$ cp ../whalloc/*.[ch] .
step...@jareth:~/cvs/fossil/foo$ $f add foo.c
ADDED  foo.c
step...@jareth:~/cvs/fossil/foo$ echo "Test of --comment-file" > msg
step...@jareth:~/cvs/fossil/foo$ $f commit -M msg foo.c
New_Version: 99721d647756507d922a4e0d8744e1573292987f
step...@jareth:~/cvs/fossil/foo$ f time
=== 2009-12-09 ===
21:56:39 [99721d6477] *CURRENT* Test of --comment-file (user: stephan tags:
         trunk)
21:55:32 [91a381e625] initial empty check-in (user: stephan tags: trunk)
step...@jareth:~/cvs/fossil/foo$ echo '/*touch*/' >> foo.c
step...@jareth:~/cvs/fossil/foo$ $f commit foo.c
emacs "/home/stephan/cvs/fossil/foo/ci-comment-12A6999BA351.txt"
New_Version: 3643c910cecf5e66340916637a9a546c08b6e93f
step...@jareth:~/cvs/fossil/foo$ $f time
=== 2009-12-09 ===
21:58:54 [3643c910ce] *CURRENT* edited message in $EDITOR (user: stephan
tags:
         trunk)
21:56:39 [99721d6477] Test of --comment-file (user: stephan tags: trunk)
21:55:32 [91a381e625] initial empty check-in (user: stephan tags: trunk)


-m trumps -M, and if neither are given it falls back to the $EDITOR.

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

Reply via email to