emacs hg-histedit and an alias

Stanimir Stamenkov s7an10 at netscape.net
Wed Oct 9 15:18:47 UTC 2024


Tue, 08 Oct 2024 22:21:04 +0200, /Uwe Brauer/:

> I use histedit quite a bit, but use the following alias (not sure where 
> I obtainted it from)
> 
> histed = !TMP=$($HG root) $HG histedit "$@"
> 
> hg histed
> 
> Starts histedit but from the directory I start the command, so the 
> editor (gnuclient my case) acts in that directory and not in /tmp which 
> is the default
> 
> So my simple question is, what would be the command line aquivalent of 
> that command
> 
>   hg !TMP=$($HG root) $HG histedit "$@"
> 
> Does not work
> [...]

Maybe:

     TMP=$(hg root) hg histedit "$@"

-- 


More information about the Mercurial mailing list