[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Informative envvars for hooks

From: Daniel Shahaf <danielsh_at_elego.de>
Date: Mon, 6 Feb 2012 15:09:09 +0200

We could set some informative variables in the hooks' environment, such as:

- $SVN_MAJOR_VERSION, $SVN_MINOR_VERSION, $SVN_PATCH_VERSION
  Same as the #define's of the same name.

- $SVN_SERVER_CAPABILITIES
  Example: by advertising here that the server has the "validate
  revprops are in LF" capability, hooks would know to skip doing
  those validations themselves when run under a new server.

- $SVN_CLIENT_IP
  So people don't have to manually compute it by tailing their log files.

I'm sure y'all have other ideas :). Are there particular bits of
information we'd like to make available this way?
Received on 2012-02-06 14:10:04 CET

This is an archived mail posted to the Subversion Dev mailing list.