[PATCH] Re: [Monotone-devel] .mt-template implementation

2005-09-20 Thread Badai Aqrandista


Hi,

This is a patch to use .mt-template as MT/log's template.

Any comments?

---
Badai Aqrandista
Cheepy (?)





From: Nathaniel Smith [EMAIL PROTECTED]
To: monotone-devel@nongnu.org
Subject: Re: [Monotone-devel] .mt-template implementation
Date: Fri, 16 Sep 2005 16:03:06 -0700

On Sat, Sep 17, 2005 at 12:55:37AM +1000, Badai Aqrandista wrote:
 I'm trying to implement .mt-template explained in the 'quickie tasks'...
 However, because I am not familiar with how things are done in monotone,
 I'd like to have some suggestion as to how I should implement this...

Cool, thanks for helping out.  This is definitely the right place to
ask (or on IRC, if you felt like a more interactive format --
#monotone on irc.oftc.net).

 Should .mt-template be used only when commit message is typed in an 
editor

 and MT/log is empty? Or should it be used to create MT/log on setup or
 after commit?

My suggestion would be that it should be used to create MT/log on
setup or after commit.  That way people who like MT/log and people
who don't, see the same behavior.

One little gotcha to watch out for here is that we should refuse
commit messages whose text is identical to the template -- just like
we refuse commit messages that are empty.  This preserves the behavior
people expect where if they just quit out of the commit message editor
without saving, then their commit will be canceled.

 How do small decisions like this is made? Or should I make a
 patch and post it to the list?

Either way works.

-- Nathaniel

--
In mathematics, it's not enough to read the words
you have to hear the music

This email may be read aloud.


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


_
REALESTATE: biggest buy/rent/share listings   
http://ninemsn.realestate.com.au


mt-template.patch
Description: Binary data
___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


[Monotone-devel] .mt-template implementation

2005-09-16 Thread Badai Aqrandista

Hi all,

I'm trying to implement .mt-template explained in the 'quickie tasks'... 
However, because I am not familiar with how things are done in monotone, I'd 
like to have some suggestion as to how I should implement this...


Should .mt-template be used only when commit message is typed in an editor 
and MT/log is empty? Or should it be used to create MT/log on setup or after 
commit? How do small decisions like this is made? Or should I make a patch 
and post it to the list?


Thanks,

---
Badai Aqrandista
Cheepy (?)

_
View 1000s of pictures, profiles and more now at Lavalife 
http://lavalife.com.au




___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel