tests/printenv.py
changeset 17018 e7fdfc702d9f
parent 16982 9c892c830a72
child 25477 a372f7b4463b
equal deleted inserted replaced
17017:953faba28e91 17018:e7fdfc702d9f
     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.