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