Mercurial > evolve-talk
comparison basic-session @ 10:80b765f69c5f
Define a basic session that shows off basic Evolve use
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Sat, 08 Mar 2014 21:29:42 -0500 |
parents | 39800c8f0532 |
children | c48ed0e2ab41 |
comparison
equal
deleted
inserted
replaced
9:39800c8f0532 | 10:80b765f69c5f |
---|---|
1 | |
2 # Let's grab the Python Code of Conduct and have a look | 1 # Let's grab the Python Code of Conduct and have a look |
3 | |
4 hg clone http://hg.python.org/coc/ | 2 hg clone http://hg.python.org/coc/ |
5 cd coc | 3 cd coc |
6 hg log -G | 4 hg log -G |
5 ls | |
7 | 6 |
8 # Now let's add a couple of bookmarks | 7 # Now let's add a couple of bookmarks |
9 hg book upstream | 8 hg book upstream |
10 hg book jordi | 9 hg book jordi |
11 | 10 |
11 # And make two changes | |
12 fold -s -w 72 CodeOfConduct.rst > /tmp/coc && mv /tmp/coc CodeOfConduct.rst | |
13 sed -i 's/ $//' CodeOfConduct.rst | |
14 hg ci -m "Word-wrap CodeOfConduct" | |
15 sed -i 's/Python/Cobra/g' CodeOfConduct.rst | |
16 hg ci -m "Change Python's name to something much cooler" | |
17 | |
18 # Where were we? | |
19 hg log -G | |
20 hg diff -c 3 | |
21 | |
22 # Wait, Cobra is not a community | |
23 sed -i 's/community/command/g' CodeOfConduct.rst | |
24 hg ci -m "Cobra Command is not a community" | |
25 | |
26 hg log -G | |
27 | |
28 # Command should be capitalised | |
29 sed -i 's/command/Command/g' CodeOfConduct.rst | |
30 hg amend | |
31 | |
32 hg log -G | |
33 | |
34 # Wait, we forgot to update the README | |
35 hg gdown | |
36 hg log -G | |
37 sed -i "s/Python Software Foundation/Cobra Commander HQ/g" README | |
38 sed -i "s/PSF/CCHQ/g" README | |
39 hg amend | |
40 | |
41 # What's this about unstable csets? | |
42 hg log -G | |
43 hg evolve --all | |
44 hg log -G | |
45 | |
46 !RET |