#!/bin/sh . "$TESTDIR/histedit-helpers.sh" cat >> $HGRCPATH < $EDITED < $x hg add $x hg ci -m $x done echo a >> e hg ci -m 'does not commute with e' } initrepo echo % log before edit hg log --graph echo % edit the history HGEDITOR="cat $EDITED > " hg histedit 177f92b77385 2>&1 | fixbundle echo % abort the edit hg histedit --abort 2>&1 | fixbundle echo echo echo % second edit set hg log --graph echo % edit the history HGEDITOR="cat $EDITED > " hg histedit 177f92b77385 2>&1 | fixbundle echo % fix up echo a > e hg add e hg histedit --continue 2>&1 | fixbundle echo echo % just continue this time hg histedit --continue 2>&1 | fixbundle echo % log after edit hg log --graph echo % start over cd .. rm -r r initrepo cat > $EDITED <&1 | fixbundle echo echo a > e hg add e HGEDITOR="cat $EDITED > " hg histedit --continue 2>&1 | fixbundle echo % second edit also fails, but just continue hg histedit --continue 2>&1 | fixbundle echo % post message fix hg log --graph echo % EOF