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

Re: Getting file source in commit hook

From: Paul Koning <Paul_Koning_at_dell.com>
Date: Tue, 4 Mar 2008 10:49:02 -0500

>>>>> "Robert" == Robert Denton <robert_at_headsprout.com> writes:

 Robert> This is an interesting approach, but how do you determine the
 Robert> name(s) of the files being committed? In my case, I do not
 Robert> need to see the contents of the files being committed,
 Robert> rather, I need to be able to look at the names of the files
 Robert> being committed to decided if further action is required. In
 Robert> a post commit hook, I believe the only vars passed to the
 Robert> hook are the /path/to/repo itself (not specific enough) and
 Robert> the revision number.

Use svnlook. Given the repo and the revision (or, in a pre-xxx hook,
the transaction ID) you can ask svnlook for many things. The files
(path names) touched, the directories touched, the current content of
any file, the log message, the author of the change, etc........

    paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-04 22:58:05 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.