# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1415310501 18000 # Node ID 4f46f63130a61271ee746153a625d7e4f25993c1 # Parent dd7a3a06dfe7a786096e10cb94ba0cce451725f2 Add more pauses to session1.sh diff -r dd7a3a06dfe7 -r 4f46f63130a6 session1.sh --- a/session1.sh Thu Nov 06 16:48:08 2014 -0500 +++ b/session1.sh Thu Nov 06 16:48:21 2014 -0500 @@ -22,23 +22,23 @@ ls cat mars.txt -# +#doitlive pause: #Several ways to get information about our current state hg summary hg status hg diff -# +#doitlive pause: #Add the file hg add mars.txt -# +#doitlive pause: #Let's see how the information changed! hg summary hg status hg diff -# +#doitlive pause: #And we commit the file hg commit -m "Starting to think about Mars" @@ -46,12 +46,13 @@ hg status hg diff -# +#doitlive pause: #Most excitingly, we have a log! hg log echo "The two moons may be a problem for Wolfman" >> mars.txt +#doitlive pause: #Adding more changes will show up differently hg summary hg status @@ -60,6 +61,7 @@ hg commit -m "Concerns about Mars's moons on my furry friend" hg log +#doitlive pause: #Another change, this time adding another file... echo "But the Mummy will appreciate the lack of humidity" >> mars.txt echo "That big red spot is quite the storm." >> jupiter.txt @@ -68,6 +70,7 @@ hg diff hg commit -m "Thoughts about the climate" +#doitlive pause: #Now that we have some history to speak of, let's explore it. hg log --patch --verbose --graph hg log -pvG @@ -84,21 +87,26 @@ hg ann --user --date --number --changeset mars.txt hg ann -udnc --quiet mars.txt +#doitlive pause: #Let's make some mistakes... echo "We will need to manufacture our own oxygen" >> mars.txt hg diff +#doitlive pause: #Nah, never mind, we don't want to record this change, let's just throw it out hg revert mars.txt hg diff +#doitlive pause: #Y'know what, let's actually restore this file to an older version hg rev -r 0 mars.txt hg diff +#doitlive pause: #Hm, but why does that look changed? hg rev mars.txt +#doitlive pause: #Let's *move* around the history instead of just changing individual files hg update --rev 0 cat mars.txt