si print seems to use si rlog internally
Unfortunatly when you try to configure the output of si print you might fall into the trap
that it behaves like the si rlog command which by default outputs all revisions.
So then it is better to use the more complicated si rlog directly.
You might use the following as template to achieve what you want:
|
|---|
| si rlog --recurse --revision=:member --filter=changed:sync --format="MN:\"\{membername}\" \t MR:{memberrev} \t WR:{workingrev}\n" --noHeaderFormat --noTrailerFormat |
The output here looks like
MN:"release\README.txt" MR:1.1 WR:1.1 (The fields are also separated by TABs)
Note that WR:... may be empty if there is no working file or the revision is unknown in your sandbox.
The main trick to prevent si rlog from ouputtting multiple lines for a certain member (one for each revision)
is to use the option --revision=:member
Extraxt from the CLI Reference for Configuration Management
--format options use the same values as --fields, but similar to a JAVA MessageFormat string (that is, it requires { } to surround
each field). The --fields option automatically adds a newline on the end, but you must supply the newline for formats with a \n
...
Regards
Jürgen