Mercurial > hg-website
comparison templates/guide/example.sh @ 397:29d4b5e45423
Use flask to render site and get rid of submodules
We don't want to use statically generated html files anymore. We are using
flask to do the routing and render the templates for now. This means we also
get rid of the submoduels and put everything together in templates/.
author | David Soria Parra <davidsp@fb.com> |
---|---|
date | Fri, 07 Mar 2014 14:47:13 -0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
396:b3036c323c2d | 397:29d4b5e45423 |
---|---|
1 #!/bin/sh | |
2 | |
3 # Example script which shows the actions in the workflow guide. | |
4 | |
5 | |
6 # make sure , project does not exist before starting. | |
7 rm -r project feature1 | |
8 | |
9 # plain output | |
10 export HGPLAIN=1 | |
11 | |
12 echo init, add and commit | |
13 | |
14 hg init project | |
15 cd project | |
16 echo "[ui]" >> .hg/hgrc | |
17 echo "username = Mr. Johnson <johnson@smith.com>" >> .hg/hgrc | |
18 echo 'print("Hello")' > hello.py | |
19 hg add | |
20 #hg commit | |
21 hg commit --date "2011-11-20 11:00" -m "Initial commit." | |
22 hg log | |
23 | |
24 echo status | |
25 | |
26 echo 'print("Hello World")' > hello.py | |
27 hg status | |
28 hg diff | |
29 #hg commit | |
30 hg commit --date "2011-11-20 11:11" -m "Say Hello World, not just Hello." | |
31 hg log | |
32 | |
33 echo move and copy | |
34 | |
35 hg cp hello.py copy | |
36 hg mv hello.py target | |
37 hg status | |
38 hg diff | |
39 hg ci --date "2011-11-20 11:20" -m "Copy and move." | |
40 | |
41 echo log | |
42 hg log | |
43 | |
44 echo Lone developer with nonlinear history | |
45 | |
46 hg update 1 | |
47 hg identify -n | |
48 | |
49 echo 'print("Hello Mercurial")' > hello.py | |
50 hg ci --date "2011-11-20 20:00" -m "Greet Mercurial" | |
51 hg merge | |
52 hg ci --date "2011-11-20 20:11" -m "merge greeting and copy+move." | |
53 | |
54 hg log | |
55 | |
56 cd .. | |
57 hg clone project feature1 | |
58 cd feature1 | |
59 hg update 3 | |
60 echo 'print("Hello feature1")' > hello.py | |
61 hg commit --date "2011-11-20 20:11:11" -m "Greet feature1" | |
62 cd ../project | |
63 hg in ../feature1 | |
64 hg pull ../feature1 | |
65 hg merge | |
66 hg commit --date "2011-11-20 20:20" -m "merged feature1" | |
67 hg log -r -1:-3 | |
68 hg rollback | |
69 hg commit --date "2011-11-20 20:20:11 +1100" -m "Merged Feature 1" | |
70 hg log -r -1:-2 | |
71 | |
72 echo sharing changes | |
73 hg out ../feature1 |