Next: , Previous: Database, Up: Command Reference



5.9 Automation

This section contains subcommands of the monotone automate command, used for scripting monotone. All give output on stdout; they may also give useful chatter on stderr, including warnings and error messages.

monotone automate interface_version
Arguments:
None.
Added in:
0.0
Purpose:
Prints version of the automation interface. Major number increments whenever a backwards incompatible change is made to the automate command; minor number increments whenever any change is made (but is reset when major number increments).
Sample output:
1.2
Output format:
A decimal number, followed by “.” (full stop/period), followed by a decimal number, followed by a newline, followed by end-of-file. The first decimal number is the major version, the second is the minor version.
Error conditions:
None.

monotone automate heads branch
Arguments:
One argument branch, a branch name.
Added in:
0.0
Purpose:
Prints the heads of branch branch.
Sample output:
28ce076c69eadb9b1ca7bdf9d40ce95fe2f29b61 75156724e0e2e3245838f356ec373c50fa469f1f
Output format:
Zero or more lines, each giving the id of one head of the given branch. Each line consists of a revision id, in hexadecimal, followed by a newline. The lines are printed in sorted order.
Error conditions:
If the given branch contains no members, then no lines are printed.