cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Get working revision and if modified by CLI

tdalon
4-Participant

Get working revision and if modified by CLI

Hello

Is there a way by command line to get the working revision of a file in my sandbox and if it was modified from the original revision (means appear with Diff in the Sandbox View)?

Many thanks

Kind Regards

Thierry Dalon

1 ACCEPTED SOLUTION

Accepted Solutions
tdalon
4-Participant
(To:tdalon)

Using si diff with --xmlapi I could workaround the hanging issue for binary files.

(The --quiet flag does not work as expected here).

The final solution looks like this:

%Get working revision using:

si revisioninfo --revision:working $file

% Get diff status using:

si diff -r wrev --xmlapi $file

% Parsing the xml output to get the status

View solution in original post

3 REPLIES 3
tdalon
4-Participant
(To:tdalon)

I've found a solution using

si revisioninfo --revision=:working $file

and

si diff

tdalon
4-Participant
(To:tdalon)

I have an issue with the si diff command on a binary file. It hangs.

Does anyone know a workaround?

tdalon
4-Participant
(To:tdalon)

Using si diff with --xmlapi I could workaround the hanging issue for binary files.

(The --quiet flag does not work as expected here).

The final solution looks like this:

%Get working revision using:

si revisioninfo --revision:working $file

% Get diff status using:

si diff -r wrev --xmlapi $file

% Parsing the xml output to get the status

Top Tags