tests/test-editor-filename.t
changeset 34071 3c82b14d2838
parent 34046 6e6452bc441d
child 34075 4bf1889456f3
equal deleted inserted replaced
34070:24ce7b0edaf9 34071:3c82b14d2838
    31   $ hg commit --message 'At least one commit for histedit.'
    31   $ hg commit --message 'At least one commit for histedit.'
    32   $ hg histedit
    32   $ hg histedit
    33   *.histedit.hg.txt (glob)
    33   *.histedit.hg.txt (glob)
    34   abort: edit failed: editor.sh exited with status 1
    34   abort: edit failed: editor.sh exited with status 1
    35   [255]
    35   [255]
       
    36 
       
    37 Verify that when performing an action that has the side-effect of creating an
       
    38 editor for a diff, the file ends in .diff.
       
    39 
       
    40   $ echo 1 > one
       
    41   $ echo 2 > two
       
    42   $ hg add
       
    43   adding one
       
    44   adding two
       
    45   $ hg commit --interactive --config ui.interactive=true --config ui.interface=text << EOF
       
    46   > y
       
    47   > e
       
    48   > q
       
    49   > EOF
       
    50   diff --git a/one b/one
       
    51   new file mode 100644
       
    52   examine changes to 'one'? [Ynesfdaq?] y
       
    53   
       
    54   @@ -0,0 +1,1 @@
       
    55   +1
       
    56   record change 1/2 to 'one'? [Ynesfdaq?] e
       
    57   
       
    58   *.diff (glob)
       
    59   editor exited with exit code 1
       
    60   record change 1/2 to 'one'? [Ynesfdaq?] q
       
    61   
       
    62   abort: user quit
       
    63   [255]