#!/bin/sh # @ 3: 'move2' # | # o 2: 'move1' # | # | o 1: 'change' # |/ # o 0: 'add' hg init copies cd copies echo a > a echo b > b echo c > c hg ci -Am add echo a >> a echo b >> b echo c >> c hg ci -m change hg up -qC 0 hg cp a d hg mv b e hg mv c f hg ci -m move1 hg mv e g hg mv f c hg ci -m move2 hg bundle -a ../renames.hg cd .. (CommandList children: [ (C {(hg)} {(init)} {(copies)}) (C {(cd)} {(copies)}) (SimpleCommand words: [{(echo)} {(a)}] redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(a)} spids:[40])] ) (SimpleCommand words: [{(echo)} {(b)}] redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(b)} spids:[48])] ) (SimpleCommand words: [{(echo)} {(c)}] redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(c)} spids:[56])] ) (C {(hg)} {(ci)} {(-Am)} {(add)}) (SimpleCommand words: [{(echo)} {(a)}] redirects: [(Redir op_id:Redir_DGreat fd:-1 arg_word:{(a)} spids:[72])] ) (SimpleCommand words: [{(echo)} {(b)}] redirects: [(Redir op_id:Redir_DGreat fd:-1 arg_word:{(b)} spids:[80])] ) (SimpleCommand words: [{(echo)} {(c)}] redirects: [(Redir op_id:Redir_DGreat fd:-1 arg_word:{(c)} spids:[88])] ) (C {(hg)} {(ci)} {(-m)} {(change)}) (C {(hg)} {(up)} {(-qC)} {(0)}) (C {(hg)} {(cp)} {(a)} {(d)}) (C {(hg)} {(mv)} {(b)} {(e)}) (C {(hg)} {(mv)} {(c)} {(f)}) (C {(hg)} {(ci)} {(-m)} {(move1)}) (C {(hg)} {(mv)} {(e)} {(g)}) (C {(hg)} {(mv)} {(f)} {(c)}) (C {(hg)} {(ci)} {(-m)} {(move2)}) (C {(hg)} {(bundle)} {(-a)} {(../renames.hg)}) (C {(cd)} {(..)}) ] )