hgbook-zh_TW / fr / examples / template.svnstyle

Romain PELISSE 547d3aa 

Romain Pelisse 1dd00ab 
Romain PELISSE 547d3aa 


svn() {
  cat $EXAMPLE_DIR/svn-short.txt

#$ name: short

svn log -r9653

#$ name:

hg init myrepo
cd myrepo

echo hello > hello
hg commit -Am'added hello'

echo hello >> hello
echo goodbye > goodbye
echo '   added line to end of <<hello>> file.' > ../msg
echo '' >> ../msg
echo 'in addition, added a file with the helpful name (at least i hope that some might consider it so) of goodbye.' >> ../msg

hg commit -Al../msg

hg tag mytag
hg tag v0.1

echo 'changeset = "{node|short}\n"' >

#$ name: id

hg log -r0 --template '{node}'

#$ name: simplest
#$ ignore: \d+-\d+-\d+ \d+:\d+ \+.*

hg log -r1 --style

#$ name:

echo 'changeset =' >

#$ name: syntax.input


#$ name: syntax.error

hg log -r1 --style

#$ name:

cp $EXAMPLE_DIR/svn.template .

#$ name: template

cat svn.template

#$ name: style


#$ name: result
#$ ignore: \| 200[78].*

hg log -r1 --style
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.