#!/usr/bin/env bash hg init remote cd remote echo "0" >> afile hg add afile hg commit -m "0.0" echo "1" >> afile hg commit -m "0.1" echo "2" >> afile hg commit -m "0.2" echo "3" >> afile hg commit -m "0.3" hg update -C 0 echo "1" >> afile hg commit -m "1.1" echo "2" >> afile hg commit -m "1.2" echo "a line" > fred echo "3" >> afile hg add fred hg commit -m "1.3" hg mv afile adifferentfile hg commit -m "1.3m" hg update -C 3 hg mv afile anotherfile hg commit -m "0.3m" hg bundle -a ../remote.hg cd .. rm -Rf remote (CommandList children: [ (C {(hg)} {(init)} {(remote)}) (C {(cd)} {(remote)}) (SimpleCommand words: [{(echo)} {(DQ (0))}] redirects: [(Redir op_id:Redir_DGreat fd:-1 arg_word:{(afile)} spids:[20])] ) (C {(hg)} {(add)} {(afile)}) (C {(hg)} {(commit)} {(-m)} {(DQ (0.0))}) (SimpleCommand words: [{(echo)} {(DQ (1))}] redirects: [(Redir op_id:Redir_DGreat fd:-1 arg_word:{(afile)} spids:[46])] ) (C {(hg)} {(commit)} {(-m)} {(DQ (0.1))}) (SimpleCommand words: [{(echo)} {(DQ (2))}] redirects: [(Redir op_id:Redir_DGreat fd:-1 arg_word:{(afile)} spids:[66])] ) (C {(hg)} {(commit)} {(-m)} {(DQ (0.2))}) (SimpleCommand words: [{(echo)} {(DQ (3))}] redirects: [(Redir op_id:Redir_DGreat fd:-1 arg_word:{(afile)} spids:[86])] ) (C {(hg)} {(commit)} {(-m)} {(DQ (0.3))}) (C {(hg)} {(update)} {(-C)} {(0)}) (SimpleCommand words: [{(echo)} {(DQ (1))}] redirects: [(Redir op_id:Redir_DGreat fd:-1 arg_word:{(afile)} spids:[114])] ) (C {(hg)} {(commit)} {(-m)} {(DQ (1.1))}) (SimpleCommand words: [{(echo)} {(DQ (2))}] redirects: [(Redir op_id:Redir_DGreat fd:-1 arg_word:{(afile)} spids:[134])] ) (C {(hg)} {(commit)} {(-m)} {(DQ (1.2))}) (SimpleCommand words: [{(echo)} {(DQ ("a line"))}] redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(fred)} spids:[154])] ) (SimpleCommand words: [{(echo)} {(DQ (3))}] redirects: [(Redir op_id:Redir_DGreat fd:-1 arg_word:{(afile)} spids:[164])] ) (C {(hg)} {(add)} {(fred)}) (C {(hg)} {(commit)} {(-m)} {(DQ (1.3))}) (C {(hg)} {(mv)} {(afile)} {(adifferentfile)}) (C {(hg)} {(commit)} {(-m)} {(DQ (1.3m))}) (C {(hg)} {(update)} {(-C)} {(3)}) (C {(hg)} {(mv)} {(afile)} {(anotherfile)}) (C {(hg)} {(commit)} {(-m)} {(DQ (0.3m))}) (C {(hg)} {(bundle)} {(-a)} {(../remote.hg)}) (C {(cd)} {(..)}) (C {(rm)} {(-Rf)} {(remote)}) ] )