hi,
You can use *svnlook changed -t txn REPOS_PATH *in the hook.
You may need to parse the result .
Thanks,
Prakash
On Tue, Mar 4, 2008 at 9:13 PM, Robert Denton <robert_at_headsprout.com> wrote:
> This is an interesting approach, but how do you determine the name(s) of
> the files being committed? In my case, I do not need to see the contents of
> the files being committed, rather, I need to be able to look at the names of
> the files being committed to decided if further action is required.
>
> In a post commit hook, I believe the only vars passed to the hook are the
> /path/to/repo itself (not specific enough) and the revision number.
>
> Robert
>
> ------------------------------
> *From:* prakash tiwary [mailto:prakash.tiwary_at_gmail.com]
> *To:* scott carter [mailto:scottallencarter_at_gmail.com]
> *Cc:* users_at_subversion.tigris.org
> *Sent:* Sun, 02 Mar 2008 23:33:38 -0800
> *Subject:* Re: Getting file source in commit hook
>
>
> Hi,
> I think, You can achieve it by using *svnlook cat -t* txn REPOS_PATH
> PATH_IN_REPOS in precommit hook.
> # txn is transaction name
> # REPOS_PATH : repository path
> # PATH_IN_REPOS : path of file.
> See the pre-commit hook documentation.
>
> Thanks & Regards,
> Prakash
>
>
> On Mon, Mar 3, 2008 at 12:52 PM, scott carter <scottallencarter_at_gmail.com>
> wrote:
>
> > Hello -
> >
> > I have a task that I am hoping is somewhat common but not quite sure how
> > to accomplish it. I need to get the content of to-be-committed files in a
> > pre-commit hook. The reason for this if because we use the Jalopy code
> > formatter, and I have been tasked with checking that to-be-commits conform
> > to our coding standards. This is very easy to do in Jalopy, but I need to
> > get the content of the to-be-committed files in the pre-commit hook to run
> > the script. How can I do this on the server side?
> >
> > Thanks in advance.
> >
>
>
Received on 2008-03-04 16:57:03 CET