Mercurial > hg-talk
view session2.sh @ 4:aa2b23a68003
Add a few more hg log commands
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Thu, 06 Nov 2014 16:53:24 -0500 |
parents | 624bfe6018f3 |
children |
line wrap: on
line source
#doitlive commentecho: true #doitlive prompt: {user.blue}@{TTY.MAGENTA}mtlpyladies{TTY.RESET}:{dir.green}$ #Let's get a remote repo... hg clone ssh://gnuoctave@octave.org/hg/evolve-talk/ cd evolve-talk #doitlive pause: #And let's look around... ls hg log hg bookmarks hg branches #We can clone our repo locally too, useful for super-safe throw-away things cd .. hg clone evolve-talk evolve-talk-backup #Note that each repo has a different default path cd evolve-talk hg path cd ../evolve-talk-backup hg path #doitlive pause: #Short little commit... cd ../evolve-talk sed -i 's/evolve/revolt/gi' talk.tex hg diff hg ci -m "Change the name of Evolve to revolt" #doitlive pause: #This added a new commit to our log... hg glog #Let's compare with the remote repo hg outgoing hg incoming #And let's push our change to the remote repo! hg push #doitlive pause: #Another silly little local commit... sed -i 's/jordi/loldi/g' evolve-session hg st hg diff hg ci -m "Change Jordi's name to Loldi." #doitlive pause: #Let's add another remote path to our local clone cd ../evolve-talk-backup hg config --local #And let's compare with two different locations hg inc hg inc default hg inc upstream hg out hg out upstream hg log #Let's pull from each hg pull upstream hg log hg pull default hg log