Mercurial > evolve-talk
comparison evolve-session @ 18:c56ec3b0ed9c
Rename basic-session to evolve-session
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Sun, 09 Mar 2014 11:41:18 -0400 |
parents | basic-session@e99a93596676 |
children | 17b04830a301 |
comparison
equal
deleted
inserted
replaced
17:c657209f840b | 18:c56ec3b0ed9c |
---|---|
1 # Let's grab the Python Code of Conduct and have a look | |
2 hg clone http://hg.python.org/coc/ | |
3 cd coc | |
4 hg log -G | |
5 ls | |
6 | |
7 # Now let's add a couple of bookmarks | |
8 hg book upstream | |
9 hg book jordi | |
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 prev | |
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 # What if we try to drop an old commit? | |
47 hg prune -r upstream | |
48 | |
49 # Let's go back to where we were | |
50 hg next | |
51 | |
52 !RET |