Mercurial > hg
view tests/test-histedit-fold @ 17070:ad0d6c2b3279
obsolete: introduction of obsolete markers
Markers are stored as binary records in a log structured file in
.hg/store/obsstore.
author | Pierre-Yves.David@ens-lyon.org |
---|---|
date | Thu, 07 Jun 2012 19:07:39 +0200 |
parents | 168cc52ad7c2 |
children |
line wrap: on
line source
#!/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