Download PDF - Monotone

Transcript
Chapter 4: Command Reference
137
Purpose:
Prints the contents of the manifest associated with the given revision.
Sample output:
format_version "1"
dir ""
file ".htaccess"
content [e3915658cb464d05f21332e03d30dca5d94fe776]
file "AUTHORS"
content [80d8f3f75c9b517ec462233e155f7dfb93379f67]
file "ChangeLog"
content [fc74a48c7f73eedcbe1ea709755fbe819b29736c]
Output format:
There is one basic io stanza for each file or directory in the manifest.
’format_version’
used in case this format ever needs to change.
format: (’format_version’, the string "1")
occurs: exactly once
’dir’:
represents a directory. The path "" (the empty string) is used
to represent the root of the tree.
format: (’dir’, pathname)
occurs: one or more times
’file’:
represents a file.
format: (’file’, pathname), (’content’, file id)
occurs: zero or more times
In addition, ’dir’ and ’file’ stanzas may have attr information included. These are appended to the stanza below the basic dir/file
information, with one line describing each attr. These lines take
the form (’attr’, attr name, attr value).
Stanzas are sorted by the path string.
Error conditions:
If the revision ID specified is unknown or invalid prints an error
message to stderr and exits with status 1.
mtn automate get_option option
Arguments:
The option argument specifies the option name of the option to be
output.
Added in: