#$ name: dirlist hg init newrepo cd newrepo find . #$ name: echo "a line of text" > foo echo "another life of text" > bar hg commit -A -m "Some files" #$ name: dirlist2 find . #$ name: cd .. #$ name: hginit hg init reponame