Mercurial > hg
changeset 27154:3bc7919fb215
histedit: edit with custom filename
For instance, Emacs allows to open file with special features enabled
(AKA mode) based on the path/name of the file [1]. For such cases, use
'hg-histedit-XXX.txt' as filename pattern.
[1] https://www.gnu.org/software/emacs/manual/html_node/emacs/Choosing-Modes.html
author | Mykola Nikishov <mn@mn.com.ua> |
---|---|
date | Sat, 21 Nov 2015 17:40:26 +0200 |
parents | 3553e40d0770 |
children | 8d3c5797a175 |
files | hgext/histedit.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/histedit.py Sat Nov 21 22:04:09 2015 +0200 +++ b/hgext/histedit.py Sat Nov 21 17:40:26 2015 +0200 @@ -1126,7 +1126,7 @@ rules = '\n'.join([makedesc(repo, act, rev) for [act, rev] in rules]) rules += '\n\n' rules += editcomment - rules = ui.edit(rules, ui.username()) + rules = ui.edit(rules, ui.username(), {'prefix': 'histedit'}) # Save edit rules in .hg/histedit-last-edit.txt in case # the user needs to ask for help after something