On Wed, Jun 11, 2008 at 4:17 PM, Ryan Schmidt <
subversion-2008b_at_ryandesign.com> wrote:
> On Jun 11, 2008, at 13:34, Hari Kodungallur wrote:
>
> On Tue, Jun 10, 2008 at 11:24 PM, Angeline Diviya wrote:
>>
>> I downloaded commit-email.pl and placed in the hooks directory, and i
>>> edited post-commit.tmpl file in the hooks directory and converted tat to
>>> exe...
>>>
>>> But it gives NTVDM error whn i commit my working copy....
>>>
>>>
>>> i have attached both the files commit-email.pl and my
>>> post-commit.tmpl....
>>> Please kindly go through it and let me know wat changes should be made in
>>> commit-email.pl and post-commit.tmpl, so tat my mail thing
>>> works..............
>>>
>>
>>
>> Please spend some time to understand the working of svn by reading the
>> free svn book. And specifically regarding hooks (link provided earlier) to
>> solve this issue. Everything is explained in the book.
>>
>> The file "post-commit.tmpl" has to be renamed to a file called
>> "post-commit". The tmpl is just a template file give as an example for you.
>>
>> I have no idea what NTVDM error is. All I know is that this is specific to
>> Windows. And since you are running Windows, please also make sure you have
>> perl installed. There is not going to be any use downloading and trying to
>> execute commit-email.pl (or SVN::Notify) without perl on the machine.
>>
>
> On Windows, the hook script should be a batch file and will need to be
> named "post-commit.bat" (not "post-commit"). Or the hook script can be an
> executable file named "post-commit.exe". I think there are some other
> options as well, but perl is not one of those options. To run a perl script
> as a hook script, you would need to write a batch file (which Subversion
> will call) which calls the perl script.
That's correct. The name of the batch file should be "post-commit.bat" on
Windows.
Just clarifying that I didn't mean to say perl is an option to be called
directly as a hook. When you are calling commit-email.pl from a batch file,
perl will still need to be installed (if not already installed) on that
machine since Windows don't come with perl by default.
thanks,
-Hari
Received on 2008-06-12 02:56:02 CEST