Download PDF - Monotone
Transcript
Chapter 4: Command Reference 165 Permit automate commands to be run against a database that is being used to serve netsync connections. Input/Output format This command takes input and produces output in exactly the same format as automate stdio. Note that the commands run with automate remote_stdio may conform to a different interface version, because they are handled by a remote instance of monotone. There will be some extra chatter on stderr unless --quiet is given. Error Conditions If left idle for too long or there are network problems, the connection to the server may be dropped. This will not be detected while monotone is waiting for input. Instead, when a complete command has been entered and monotone tries to send it to the remote server it will print a message to stderr and exit with code 1. Notes If no database is specified, a :memory: database is used. On the server side the get_remote_automate_permitted hook has to be configured to include every command which should be executable over this interface. For both, the client and the server, keyboard interaction is disabled, just as if --non-interactive is specified. Actions which require operations on password-encrypted private keys will therefor fail unless the [get passphrase], page 190 hook is set up locally and / or remotely. mtn automate roots Arguments: None. Added in: 4.3 Purpose: Prints the roots of the revision graph, i.e. all revisions that have no parents. Sample output: 276264b0b3f1e70fc1835a700e6e61bdbe4c3f2f Output format: Zero or more lines, each a root of the revision graph. Each line consists of a revision ID, in hexadecimal, followed by a newline. The lines are printed in alphabetically sorted order. Error conditions: None.