Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
17063:3fbc6e3abdbd | 17064:168cc52ad7c2 |
---|---|
1 #!/bin/sh | |
2 | |
3 . "$TESTDIR/histedit-helpers.sh" | |
4 | |
5 cat >> $HGRCPATH <<EOF | |
6 [extensions] | |
7 graphlog= | |
8 histedit= | |
9 EOF | |
10 | |
11 EDITED=`pwd`/editedhistory | |
12 cat > $EDITED <<EOF | |
13 pick e860deea161a e | |
14 pick 652413bf663e f | |
15 fold 177f92b77385 c | |
16 pick 055a42cdd887 d | |
17 EOF | |
18 initrepo () | |
19 { | |
20 hg init r | |
21 cd r | |
22 for x in a b c d e f ; do | |
23 echo $x > $x | |
24 hg add $x | |
25 hg ci -m $x | |
26 done | |
27 } | |
28 | |
29 initrepo | |
30 | |
31 echo % log before edit | |
32 hg log --graph | |
33 | |
34 echo % edit the history | |
35 HGEDITOR="cat $EDITED > " hg histedit 177f92b77385 2>&1 | fixbundle | |
36 | |
37 echo % log after edit | |
38 hg log --graph | |
39 | |
40 echo % post-fold manifest | |
41 hg manifest | |
42 | |
43 echo % EOF |