tests/test-racy-mutations.t
branchstable
changeset 49046 dd384ad01d88
parent 48977 bd752712ccaf
child 49047 c827bb7b5806
equal deleted inserted replaced
49008:dd98bd0b6501 49046:dd384ad01d88
    36   > [debug]
    36   > [debug]
    37   > revlog.verifyposition.changelog = fail
    37   > revlog.verifyposition.changelog = fail
    38   > EOF
    38   > EOF
    39 #endif
    39 #endif
    40 
    40 
       
    41   $ cat >> .hg/hgrc << EOF
       
    42   > [ui]
       
    43   > editor=sh $TESTTMP/waitlock_editor.sh
       
    44   > EOF
       
    45 
    41   $ echo foo > foo
    46   $ echo foo > foo
    42   $ (WAITLOCK_ANNOUNCE="${EDITOR_STARTED}" \
    47   $ (unset HGEDITOR;
       
    48   >      WAITLOCK_ANNOUNCE="${EDITOR_STARTED}" \
    43   >      WAITLOCK_FILE="${MISCHIEF_MANAGED}" \
    49   >      WAITLOCK_FILE="${MISCHIEF_MANAGED}" \
    44   >           HGEDITOR="sh $TESTTMP/waitlock_editor.sh" \
       
    45   >           hg commit -qAm 'r1 (foo)' --edit foo > .foo_commit_out 2>&1 ; touch "${JOBS_FINISHED}") &
    50   >           hg commit -qAm 'r1 (foo)' --edit foo > .foo_commit_out 2>&1 ; touch "${JOBS_FINISHED}") &
    46 
    51 
    47 Wait for the "editor" to actually start
    52 Wait for the "editor" to actually start
    48   $ WAITLOCK_FILE="${EDITOR_STARTED}" sh "$TESTTMP/waitlock_editor.sh"
    53   $ sh "$RUNTESTDIR/testlib/wait-on-file" 5 "${EDITOR_STARTED}"
       
    54 
       
    55   $ cat >> .hg/hgrc << EOF
       
    56   > [ui]
       
    57   > editor=
       
    58   > EOF
    49 
    59 
    50 Break the locks, and make another commit.
    60 Break the locks, and make another commit.
    51   $ hg debuglocks -LW
    61   $ hg debuglocks -LW
    52   $ echo bar > bar
    62   $ echo bar > bar
    53   $ hg commit -qAm 'r2 (bar)' bar
    63   $ hg commit -qAm 'r2 (bar)' bar