Page MenuHomePhabricator

Prompt when creating a new commit from working copy changes in immutable history repositories should used $EDITOR
Closed, ResolvedPublic

Description

When prompted during an arc diff for commit message, arrow keys are not usable. Instead of moving the cursor, the control characters are entered on the console instead of navigating through the message in order to make corrections or insert. The delete key can be used to move backwards to make corrections.

System: OS X 10.9

Event Timeline

cspeckmim raised the priority of this task from to Needs Triage.
cspeckmim updated the task description. (Show Details)
cspeckmim added a subscriber: cspeckmim.

Ummmm, isn't that whatever editor you use? We don't have a console.

Yeah, I think this is either a terminal configuration issue or an $EDITOR problem.

What does this show?

echo $EDITOR

...and does this "fix" it?

arc set-config editor nano

I have nano configured as my editor, and it does load when writing out the full commit message. But when I use arc diff this is what happens:

  1. From console, uncommitted files are listed and I am prompted whether to add to diff or not.
  2. I select yes to add them to diff.
  3. From console I am prompted to enter a commit message for these files.
  4. I enter a commit message and hit enter.
  5. My editor (nano) is opened for me to enter a commit message which includes summary, test plan, reviewers, subscribers.

The problem I'm seeing is in step 3. I have attached a screenshot

console.png (262×758 px, 52 KB)

                              .__           __  .__             ___.                    __   
  ____ _____    ____   ____   |__| ______ _/  |_|  |__   ____   \_ |__   ____   _______/  |_ 
 /    \\__  \  /    \ /  _ \  |  |/  ___/ \   __\  |  \_/ __ \   | __ \_/ __ \ /  ___/\   __\
|   |  \/ __ \|   |  (  <_> ) |  |\___ \   |  | |   Y  \  ___/   | \_\ \  ___/ \___ \  |  |  
|___|  (____  /___|  /\____/  |__/____  >  |__| |___|  /\___  >  |___  /\___  >____  > |__|  
     \/     \/     \/                 \/             \/     \/       \/     \/     \/

Aaah, okay. We should pop $EDITOR for that, I think it's just hg + immutable history specific.

epriestley renamed this task from Arcanist console user input has some limitations to Prompt when creating a new commit from working copy changes in immutable history repositories should used $EDITOR.Feb 20 2015, 11:30 PM
epriestley triaged this task as Normal priority.
epriestley added a project: Arcanist.

I tried arc set-config editor nano and it didn't change the process.
I am using mercurial and in .arcconfig:

"history.immutable": false