[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-commits-nodiffs] Revision fde5a82883e6693d1ec56485eb1b5661c45f
From: |
monotone |
Subject: |
[Monotone-commits-nodiffs] Revision fde5a82883e6693d1ec56485eb1b5661c45f18dc |
Date: |
Thu, 5 Jul 2007 02:05:59 +0200 |
-----------------------------------------------------------------
Revision: fde5a82883e6693d1ec56485eb1b5661c45f18dc
Ancestor: 3c5109b4156afe288df1770853da081b50b7d171
Author: address@hidden
Date: 2007-07-04T16:28:36
Branch: net.venge.monotone.lua_cmds
Modified files:
cmd.hh cmd_automate.cc commands.cc lua_hooks.cc lua_hooks.hh
monotone.cc
ChangeLog:
Add the ability to make new commands for monotone in lua. This involves
a number of other changes:
- Change the parsing of the command line. The initial parse still
occurs before the monotonerc files are read, the secondary parse
now takes place after the monotonerc files are read.
- Add add_alias() and non-const find_command() methods to the command
class.
- Add a "user" group of commands. Empty by default.
- Allow automate commands to be executed with a specific output stream.
- Add lua get_app_state() and check_lua_state() accessor functions.
- Clean up hook_note_mtn_startup()
- Add a new subclass of command: cmd_lua. When instantiated this adds
a command to the "user" group of commands. The new command will call
the supplied lua function with the command line arguments it is given.
- Add a register_command() function accessible from lua. This allows
a cmd_lua to be created from a an rc-file, registering a lua function
as a command.
- Add an alias_command() function accessible from lua. This allows
additional names for already registered commands to be added from an
rc-file.
monotone --db={your.database} diff
--revision=3c5109b4156afe288df1770853da081b50b7d171
--revision=fde5a82883e6693d1ec56485eb1b5661c45f18dc
----------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-commits-nodiffs] Revision fde5a82883e6693d1ec56485eb1b5661c45f18dc,
monotone <=