Re: Any way to prevent Evolve's `metaedit` from opening the message?

2023-04-08 Thread Matt Harbison
> On Apr 7, 2023, at 1:56 PM, Marcos Cruz > wrote: > > Faheem Mitha escribió/skribis/wrote/scrit (2023-04-07T22:18:48+0530): > >> Yes, normally metaedit is intended to edit the existing commit message. >> Hence it's natural to open an editor. What's the problem with that? > > I'm converting

Re: Any way to prevent Evolve's `metaedit` from opening the message?

2023-04-08 Thread Pierre-Yves David
On 4/7/23 20:32, Anton Shestakov wrote: Yeah, I think metaedit was created as an ad-hoc solution to edit commit messages, and then grew some flags for user and date, and even --fold for some reason. Internally it can prevent editor from opening (e.g. when -m or -l is present), but there's no

Re: Any way to prevent Evolve's `metaedit` from opening the message?

2023-04-08 Thread Marcos Cruz
Aurélien Campéas escribió/skribis/wrote/scrit (2023-04-08T13:07:10+0200): > How about "hg amend -u ..." ? IIRC it doesnt prompt for a commit message > (unless -e is there). You are right. But it fixes the parent of the working directory, not a specific revision. I have done a test: a shell

Re: Any way to prevent Evolve's `metaedit` from opening the message?

2023-04-08 Thread Aurélien Campéas
Le 07/04/2023 à 16:09, Marcos Cruz a écrit : Evolve's `metaedit --user` and `metaedit --date` always open the commit message in order to edit it. There's no way to prevent it? > How about "hg amend -u ..." ? IIRC it doesnt prompt for a commit message (unless -e is there).

Re: Any way to prevent Evolve's `metaedit` from opening the message?

2023-04-08 Thread Marcos Cruz
Faheem Mitha escribió/skribis/wrote/scrit (2023-04-08T11:43:46+0530): > On Fri, 7 Apr 2023, Anton Shestakov wrote: > > Anyway, to disable editor try `HGEDITOR=true hg metaedit ...`. > > That works for me. But where is this documented? It has nothing to do with Mercurial or Evolve, if you mean

Re: Any way to prevent Evolve's `metaedit` from opening the message?

2023-04-08 Thread Marcos Cruz
Anton Shestakov escribió/skribis/wrote/scrit (2023-04-07T15:32:55-0300): > I think metaedit was created as an ad-hoc solution to edit commit > messages, and then grew some flags for user and date, and even --foldi > It's not a very well-designed command IMO. In fact, when you change the user or

Re: Any way to prevent Evolve's `metaedit` from opening the message?

2023-04-08 Thread Faheem Mitha
Hi Anton Shestakov, On Fri, 7 Apr 2023, Anton Shestakov wrote: Yeah, I think metaedit was created as an ad-hoc solution to edit commit messages, and then grew some flags for user and date, and even --fold for some reason. Internally it can prevent editor from opening (e.g. when -m or -l is

Re: Any way to prevent Evolve's `metaedit` from opening the message?

2023-04-08 Thread Faheem Mitha
Hi Marcos, On Fri, 7 Apr 2023, Marcos Cruz wrote: Faheem Mitha escribió/skribis/wrote/scrit (2023-04-07T23:39:45+0530): If you just want to change the user or date of the commit, there are separate flags for that. Namely, -u, -U, -d, and -D. Have you not looked at the help? See below.