igor@333: #!/bin/bash igor@333: igor@333: svn() { igor@333: cat $EXAMPLE_DIR/svn-short.txt igor@333: } igor@333: igor@333: #$ name: short igor@333: igor@333: svn log -r9653 igor@333: igor@333: #$ name: igor@333: igor@333: hg init myrepo igor@333: cd myrepo igor@333: igor@333: echo hello > hello igor@333: hg commit -Am'added hello' igor@333: igor@333: echo hello >> hello igor@333: echo goodbye > goodbye igor@333: echo ' added line to end of <> file.' > ../msg igor@333: echo '' >> ../msg igor@333: echo 'in addition, added a file with the helpful name (at least i hope that some might consider it so) of goodbye.' >> ../msg igor@333: igor@333: hg commit -Al../msg igor@333: igor@333: hg tag mytag igor@333: hg tag v0.1 igor@333: igor@333: echo 'changeset = "{node|short}\n"' > svn.style igor@333: igor@333: #$ name: id igor@333: igor@333: hg log -r0 --template '{node}' igor@333: igor@333: #$ name: simplest igor@333: igor@333: cat svn.style igor@333: hg log -r1 --style svn.style igor@333: igor@333: #$ name: igor@333: igor@333: echo 'changeset =' > broken.style igor@333: igor@333: #$ name: syntax.input igor@333: igor@333: cat broken.style igor@333: igor@333: #$ name: syntax.error igor@333: igor@333: hg log -r1 --style broken.style igor@333: igor@333: #$ name: igor@333: igor@333: cp $EXAMPLE_DIR/svn.style . igor@333: cp $EXAMPLE_DIR/svn.template . igor@333: igor@333: #$ name: template igor@333: igor@333: cat svn.template igor@333: igor@333: #$ name: style igor@333: igor@333: cat svn.style igor@333: igor@333: #$ name: result igor@333: #$ ignore: \| 200[78].* igor@333: igor@333: hg log -r1 --style svn.style igor@333: