pab233 Posted November 11, 2013 Report Share Posted November 11, 2013 Hi, When doing a "Diff between ..." of either a branch or a change set, is there any way that I can export the output to be used in a report? To explain, the software I am writing needs to be approved by a government department. Whenever the software is changed, we have to provide the revised source code, an explanation of what changes were made, and a differences report, ie a line by line comparison of what has changed between the old code and the new code. And no, getting them to do the diff themselves is not acceptable. We have to supply the differences list. So, is there any way I can get the difference report in a usable format? I am using 4.1.10.450 - Oporto. Cheers Paul Link to comment Share on other sites More sharing options...
manu Posted November 14, 2013 Report Share Posted November 14, 2013 Hi Paul, yes, you can use the command line to get the differences of a branch or a changeset. Let's see an example for a changeset, you have two options: 1) cm diff cs:11@repo@server:port 2) cm find "revisions where changeset=11 on repository ‘repo@server:port’” For both commands you can use format rules, so for example you can get only the owner by: --format={owner} You can review the full list of --format fields in the cm find help: http://plasticscm.com/guides/cmfind/main.shtml The cm find format fields are the same for the cm diff command. Please tell me if you need any example. Link to comment Share on other sites More sharing options...
manu Posted November 14, 2013 Report Share Posted November 14, 2013 Forget about what I said regaring the format options for the diff command. The diff command is having it's own format fields and they are: status path revid parentrevid srccmpath dstcmpath type repository newline Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.