tests/test-editor-filename.t
changeset 45877 ac362d5a7893
parent 42566 f802a75da585
child 49621 55c6ebd11cb9
equal deleted inserted replaced
45876:568c05d8f3d2 45877:ac362d5a7893
    15 Verify that the path for a commit editor has the expected suffix.
    15 Verify that the path for a commit editor has the expected suffix.
    16 
    16 
    17   $ hg commit
    17   $ hg commit
    18   *.commit.hg.txt (glob)
    18   *.commit.hg.txt (glob)
    19   abort: edit failed: sh exited with status 1
    19   abort: edit failed: sh exited with status 1
    20   [255]
    20   [250]
    21 
    21 
    22 Verify that the path for a histedit editor has the expected suffix.
    22 Verify that the path for a histedit editor has the expected suffix.
    23 
    23 
    24   $ cat >> $HGRCPATH <<EOF
    24   $ cat >> $HGRCPATH <<EOF
    25   > [extensions]
    25   > [extensions]
    28   > EOF
    28   > EOF
    29   $ hg commit --message 'At least one commit for histedit.'
    29   $ hg commit --message 'At least one commit for histedit.'
    30   $ hg histedit
    30   $ hg histedit
    31   *.histedit.hg.txt (glob)
    31   *.histedit.hg.txt (glob)
    32   abort: edit failed: sh exited with status 1
    32   abort: edit failed: sh exited with status 1
    33   [255]
    33   [250]
    34 
    34 
    35 Verify that when performing an action that has the side-effect of creating an
    35 Verify that when performing an action that has the side-effect of creating an
    36 editor for a diff, the file ends in .diff.
    36 editor for a diff, the file ends in .diff.
    37 
    37 
    38   $ echo 1 > one
    38   $ echo 1 > one
    59   editor exited with exit code 1
    59   editor exited with exit code 1
    60   record change 1/2 to 'one'?
    60   record change 1/2 to 'one'?
    61   (enter ? for help) [Ynesfdaq?] q
    61   (enter ? for help) [Ynesfdaq?] q
    62   
    62   
    63   abort: user quit
    63   abort: user quit
    64   [255]
    64   [250]