equal
deleted
inserted
replaced
1 #!/bin/sh |
|
2 |
|
3 cat >> $HGRCPATH <<EOF |
|
4 [extensions] |
|
5 graphlog= |
|
6 histedit= |
|
7 EOF |
|
8 |
|
9 EDITED=`pwd`/editedhistory |
|
10 cat > $EDITED <<EOF |
|
11 pick 177f92b77385 c |
|
12 pick e860deea161a e |
|
13 pick 652413bf663e f |
|
14 pick 055a42cdd887 d |
|
15 EOF |
|
16 initrepo () |
|
17 { |
|
18 hg init r |
|
19 cd r |
|
20 for x in a b c ; do |
|
21 echo $x > $x |
|
22 hg add $x |
|
23 hg ci -m $x |
|
24 done |
|
25 |
|
26 cd .. |
|
27 hg clone r r2 | grep -v updating |
|
28 cd r2 |
|
29 for x in d e f ; do |
|
30 echo $x > $x |
|
31 hg add $x |
|
32 hg ci -m $x |
|
33 done |
|
34 |
|
35 cd .. |
|
36 hg init r3 |
|
37 cd r3 |
|
38 for x in g h i ; do |
|
39 echo $x > $x |
|
40 hg add $x |
|
41 hg ci -m $x |
|
42 done |
|
43 cd .. |
|
44 } |
|
45 |
|
46 initrepo |
|
47 |
|
48 echo % show the edit commands offered by outgoing |
|
49 cd r2 |
|
50 HGEDITOR=cat hg histedit --outgoing ../r | grep -v comparing | grep -v searching |
|
51 cd .. |
|
52 |
|
53 echo % show the error from unrelated repos |
|
54 cd r3 |
|
55 HGEDITOR=cat hg histedit --outgoing ../r | grep -v comparing | grep -v searching |
|
56 cd .. |
|
57 |
|
58 echo % show the error from unrelated repos |
|
59 cd r3 |
|
60 HGEDITOR=cat hg histedit --force --outgoing ../r |
|
61 cd .. |
|