[issue1062] hgeditor should check for existence of argument

Ted Pavlic mercurial-bugs at selenic.com
Mon Mar 31 16:41:13 CDT 2008


New submission from Ted Pavlic <ted at tedpavlic.com>:

It would be nice if the hgeditor would make sure that "$1" existed, just incase
HGEDITOR is ever called for non-commit reasons. 

For example, right now there's a block starting with

( grep '^HG: ...

and ending with

cat "$1" > "$HGTMP/msg"

It would be nice if this block was wrapped by...

if [ -f "$1" ]; then

   INSERT BLOCK HERE

else

   touch "$HGTMP/msg"
   touch "$HGTMP/diff"

fi

----------
messages: 5763
nosy: TedPavlic
priority: wish
status: unread
title: hgeditor should check for existence of argument

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1062>
____________________________________________________



More information about the Mercurial-devel mailing list