monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Badai Aqrandista
Subject: [PATCH] Re: [Monotone-devel] .mt-template implementation
Date: Wed, 21 Sep 2005 01:37:35 +1000


Hi,

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

Any comments?

---
Badai Aqrandista
Cheepy (?)




From: Nathaniel Smith <address@hidden>
To: address@hidden
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
address@hidden
http://lists.nongnu.org/mailman/listinfo/monotone-devel

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

Attachment: mt-template.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]