view en/examples/tour @ 93:97638d862ef3

Network bits.
author Bryan O'Sullivan <bos@serpentine.com>
date Thu, 12 Oct 2006 16:27:00 -0700
parents 72d207927dc4
children 0b97b0bdc830
line wrap: on
line source

#!/bin/bash

#$ name: version

hg version

#$ name: help

hg help init

#$ name: clone

hg clone http://hg.serpentine.com/tutorial/hello

#$ name: ls

ls -l
ls hello

#$ name: ls-a

cd hello
ls -a

#$ name: log

hg log

#$ name: log-r

hg log -r 3
hg log -r ff5d7b70a2a9
hg log -r 1 -r 4

#$ name: log.range

hg log -r 2:4

#$ name: log-v

hg log -v -r 3

#$ name: log-vp

hg log -v -p -r 2

#$ name: reclone

cd ..
hg clone hello my-hello
cd my-hello

#$ name: sed

sed -i '/printf/a\\tprintf("hello again!\\n");' hello.c

#$ name: status

ls
hg status

#$ name: diff

hg diff

#$ name:

export HGEDITOR='echo Added an extra line of output >'

#$ name: commit

hg commit

#$ name: tip

hg tip -vp

#$ name: clone-pull

cd ..
hg clone hello hello-pull

#$ name: incoming

cd hello-pull
hg incoming ../my-hello

#$ name: pull

hg tip
hg pull ../my-hello
hg tip

#$ name: update

grep printf hello.c
hg update tip
grep printf hello.c

#$ name: parents

hg parents

#$ name: older

hg update 2
hg parents

#$ name: clone-push

cd ..
hg clone hello hello-push

#$ name: outgoing

cd my-hello
hg outgoing ../hello-push

#$ name: push

hg push ../hello-push

#$ name: push.nothing

hg push ../hello-push

#$ name: outgoing.net

hg outgoing http://hg.serpentine.com/tutorial/hello

#$ name: push.net

hg push http://hg.serpentine.com/tutorial/hello

#$ name:
exit 0