- if ($config{rcs} eq "svn" && $config{notify}) {
- # Support running directly as hooks/post-commit by passing
- # $2 in REV in the environment.
- $envsave.=<<"EOF"
- if (argc == 3)
- asprintf(&newenviron[i++], "REV=%s", argv[2]);
- else if ((s=getenv("REV")))
- asprintf(&newenviron[i++], "%s=%s", "REV", s);
-EOF
- }
-
- # This is only set by plugins, which append to it on startup, so
- # avoid storing it in the wrapper.
- $config{headercontent}="";