accurev getproperty [ -f ] [ -ks |-ku ] [ -p <depot> ] [ -s <stream> |
-u <principal> ] [ -l <file-name> ][ -n <pattern> ]The getproperty command displays the name/value pair for the specified stream or principal property. If the property value is a file, getproperty displays an asterisk (*) for the value. If a target file is specified using the -l option, getproperty writes the file contents to that file.-i: Include properties for hidden streams or principals.
-v: Display property name only.
-x: Display the results in XML format.Shows properties for all streams (-ks) or all principals (-ku). Note that -ks requires the use of -p to specify the depot.Specifies the name of the file to which you want the property value written. This option can be used only for a property value that was originally specified as a file (setting a "profile" property to a .png file, for example).This option creates the file you specify, and the command fails if the file already exists. You can use either a relative or absolute path to specify the file location. If you do not specify a path, AccuRev assumes the file is in the current directory. The file should have an extension appropriate for the data that will be written to it. If the property is an image, the file should have a .png or .jpg extension, for example.Specifies the glob pattern the property name must match; only properties whose name matches the glob pattern are displayed.The glob pattern is a simple pattern that allows "*" to specify one or more unmatched characters or "?" to match exactly one unmatched character. Use the backslash (\) as an escape character to pass a literal "*" or "?". A name with no pattern characters will be exactly matched.Note: The preceding example assumes that the value of the "profile" property was specified as a file.<?xml version="1.0" encoding="utf-8"?>
<properties>
<property
kind="stream"
depotName="test"
streamNumber="2"
streamName="prod_2010"
propertyName="Status">obsolete</property>
<property
kind="stream"
depotName="test"
streamNumber="2"
streamName="prod_2010"
propertyName="Project">Amber</property>
</properties><?xml version="1.0" encoding="utf-8"?>
<properties>
<property
kind="principal"
principalNumber="1"
principalName="jsmith"
propertyName="profile">*</property>
</properties>
AccuRev, Inc. |
Phone: 781-861-8700 |
Fax: 781-861-8704 |
support@accurev.com |