monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Issue 146 - mtn_automate cannot be called from hooks (s


From: code
Subject: [Monotone-devel] Issue 146 - mtn_automate cannot be called from hooks (specifically validate_change) (monotone)
Date: Sat, 19 Feb 2011 01:10:35 +0100 (CET)

Hello,

A new issue has been created and assigned
to you:

146 - mtn_automate cannot be called from hooks (specifically validate_change)
Project: monotone
Status: New
Reported by: Judson Lester
Labels:
 Type:Defect
 Priority:Medium

Description:

Steps to reproduce the problem:
-------------------------------

I'm trying to use validate_change to refuse a commit if there are files that 
are unknown - I have a hard time with commits that are broken because they 
don't include new files needed to run.  So:

1. Write a validate_change hook that includes: 
 local bool, str = mtn_automate("inventory")
 print(str)
2. mtn commit

Expected result:
----------------
Around the commit, there should be output of the contents of the workspace

Actual results:
---------------
mtn: lua: misuse: It is illegal to call the mtn_automate() lua extension,
mtn: lua: misuse: unless from a command function defined by register_command().


Output of `mtn version --full`:
-------------------------------

--
Issue: https://code.monotone.ca/p/monotone/issues/146/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]