equal
deleted
inserted
replaced
1 # simple script to be used in hooks |
1 # simple script to be used in hooks |
2 # |
2 # |
3 # put something like this in the repo .hg/hgrc: |
3 # put something like this in the repo .hg/hgrc: |
4 # |
4 # |
5 # [hooks] |
5 # [hooks] |
6 # changegroup = python "$TESTDIR"/printenv.py <hookname> [exit] [output] |
6 # changegroup = python "$TESTDIR/printenv.py" <hookname> [exit] [output] |
7 # |
7 # |
8 # - <hookname> is a mandatory argument (e.g. "changegroup") |
8 # - <hookname> is a mandatory argument (e.g. "changegroup") |
9 # - [exit] is the exit code of the hook (default: 0) |
9 # - [exit] is the exit code of the hook (default: 0) |
10 # - [output] is the name of the output file (default: use sys.stdout) |
10 # - [output] is the name of the output file (default: use sys.stdout) |
11 # the file will be opened in append mode. |
11 # the file will be opened in append mode. |