D464: editor: use an unambiguous path suffix for editor files

ryanmce (Ryan McElroy) phabricator at mercurial-scm.org
Tue Aug 29 14:06:18 EDT 2017


ryanmce added a comment.


  > You could do that, but what I'd do is make an "editor" that prints the filename to stderr or something, and then invoke some commands that call that editor to see what the filename is like.
  
  Yeah, that's what I had in mind too. Something like:
  
  `editor.sh`:
  
    #!/bin/bash
    echo "$@"
    exit 1
  
  `test-editor-filename.t`:
  
    $ hg commit --config ui.editor=editor.sh
    *.commit.hg.txt (glob)
    [1]

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D464

To: mbolin, quark, durin42, #hg-reviewers, ryanmce
Cc: smf, ryanmce, mercurial-devel


More information about the Mercurial-devel mailing list