Using "scm diff" with UUIDs as beforetype
![]()
I have a question regarding how to interface to the RTC command line tool "scm" in a very specific automated nightly build scenario:
Let's assume we have a sandbox with the local copy of a repository workspace already set up. After the automated build updates the local content using "scm accept" to bring in the latest changes from the stream, we want to find out "file revisions" of all files now loaded into the sandbox. It looks like "scm --show-uuid y list remotefiles" is doing exactly that: showing each file (and directory) in the local sandbox together with the object selector and version selector of the file in its current state. Then it looks like you can make use of the object selector and version selector in the command "scm get file" to fetch the contents of a single file in the future in a very specific version (like it was recorded earlier with "scm list remotefiles" above). What I am missing now is the possibility to use the version selector together with the "scm diff" command's "beforetype" in order to diff the version of the file currently in the sandbox against an older version using a previously recorded version selector. Alternatively - if there is no way to diff using a version selector UUID - is there a way to get the numbers of the latest changesets the files in the sandbox were modified in? So that we can record the most current changeset for each file (instead of the version selector) and then use "scm changeset extract" instead of "scm get file" to fetch the file and "scm diff" with "changeset" as "beforetype"? Thanks for your help in advance! |