How to get only the changes done to a file in the sandbox?
I want to find out with lscm what changes I did to a file that I have in my sandbox. I know that I can compare it with 'lscm diff' against the current state in the workspace or in the stream. But that does not only show the changes I did locally in the sandbox, but also those changes to the same file that someone else delivered into the stream or check-in to the workspace (or that I myself delivered or checked-in from another sandbox fixing something else in the same file). But I only want to see my local changes in the sandbox i nquestion. For instance an 'lscm diff' of the local file against how the file was at the point in time when it was loaded into the sandbox, would give the desired information. How do I specify that I want to 'lscm diff' the local file against the files as it was at load time?
Regards, Markus.
Regards, Markus.
Accepted answer
2 other answers
lscm diff file <file path> will compare the local changes with that of the latest in the workspace. If your current loaded state was from a baseline then you could use lscm diff file <file path> baseline lt;baseline name/id>. Or if you know the last change set that was accepted (you can run lscm history <file path> and choose the change set based on date/time) you could use lscm diff file <file path> changeset <changeset id>.
By the way, if you have modified the file in the workspace from another sandbox then your current sandbox should report as out of sync.
Comments
Based on the comments, it appears you are trying to preserve your changes from an out-of-sync sandbox.
You might want to add your support to work item:
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=344701
"Improve handling of resynchronizing a workspace component"
You might want to add your support to work item:
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=344701
"Improve handling of resynchronizing a workspace component"
Comments
showing 5 of 10
show 5 more comments