Mercurial > hg
diff tests/test-histedit-fold @ 17064:168cc52ad7c2
histedit: new extension for interactive history editing
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 27 Jun 2012 17:52:54 -0500 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-histedit-fold Wed Jun 27 17:52:54 2012 -0500 @@ -0,0 +1,43 @@ +#!/bin/sh + +. "$TESTDIR/histedit-helpers.sh" + +cat >> $HGRCPATH <<EOF +[extensions] +graphlog= +histedit= +EOF + +EDITED=`pwd`/editedhistory +cat > $EDITED <<EOF +pick e860deea161a e +pick 652413bf663e f +fold 177f92b77385 c +pick 055a42cdd887 d +EOF +initrepo () +{ + hg init r + cd r + for x in a b c d e f ; do + echo $x > $x + hg add $x + hg ci -m $x + done +} + +initrepo + +echo % log before edit +hg log --graph + +echo % edit the history +HGEDITOR="cat $EDITED > " hg histedit 177f92b77385 2>&1 | fixbundle + +echo % log after edit +hg log --graph + +echo % post-fold manifest +hg manifest + +echo % EOF