Monday, January 11, 2010

How to find if an object is associated with a task and if so - what is it's check out status?

ccm query "name=<file name> and is_associated_object_of('task<task ID>#1:task:probtrac')" -u -f %status
If an object is associated with this specific task, the output will contain its status (working for checked out files, integrate - for checked in), if the file is not associated with this task, output will present an empty new line.
example:
>ccm query "name='strings.xml' and is_associated_object_of('task180795#1:task:probtrac')" -u -f %status
>integrate

No comments:

Post a Comment