Nominal/activities/tphols09/IDW/AK-example_session
author Christian Urban <christian.urban@kcl.ac.uk>
Tue, 07 Jan 2025 12:42:42 +0000
changeset 653 2807ec31d144
parent 415 f1be8028a4a9
permissions -rw-r--r--
updated

# Mercurial sample session
#
# Isabelle Developer's Workshop 2009
#

# initialization
cd ~
mkdir alex
mkdir florian

cd ~/alex


hg init playground
cd playground
echo "Hello World" > greeting
hg add greeting
hg commit
hg log
hg serve


cd ~/florian

hg clone ~/alex/playground
cd playground
hg log

# Florian's changes that were hidden in a script:

echo "fun greet str = \"Hello \" ^ str" > code_generator
hg add code_generator
hg ci -m "added code generator" -u haftmann
echo "Hello Universe" > greeting
hg ci -m "generalized scope of greeting" -u wenzelm
echo "Hello Universe[simp]" > greeting
hg ci -m "added [simp]" -u nipkow


cd ~/alex

hg log
echo "Hello IDW" >> greeting
hg ci -m "also greet the workshop"
hg pull ~/florian/playground
hg log
hg glog


hg pull ~/florian/playground
hg up
hg merge
emacs greeting          # fix the conflict
hg resolve -m greeting  # mark as resolved
hg ci -m "merged"
hg glog