Before testing a new build we would like to calculate some kind of matrix showing which parts of the code changed by whom. The matrix will than be used to plan testing. Is there a possibility to query for the count of lines that changed between two file versions? Can I query this information directly using SQL?
Regards, Alex
File History --> Calculating count of changed lines
Moderator: SourceGear
File History --> Calculating count of changed lines
update4u Software AG
Re: File History --> Calculating count of changed lines
Sorry -- this information actually does not exist in the database.aluetjen wrote:Before testing a new build we would like to calculate some kind of matrix showing which parts of the code changed by whom. The matrix will than be used to plan testing. Is there a possibility to query for the count of lines that changed between two file versions? Can I query this information directly using SQL?
Regards, Alex
The database does store most versions of a file as a "delta", a set of differences against another version. However, for performance and other reasons, this delta is a binary delta, not a line-based text delta.
In other words, the only way to calculate the number of lines changed between two versions of a file is to retrieve both versions and run a line-based textual diff.
Eric Sink
Software Craftsman
SourceGear
Software Craftsman
SourceGear
Re: File History --> Calculating count of changed lines
It would be great if we could tell sdmg.exe to write the detected diffs to a XML file instead of interactivly showing them...ericsink wrote:aluetjen wrote:In other words, the only way to calculate the number of lines changed between two versions of a file is to retrieve both versions and run a line-based textual diff.
update4u Software AG
If you're willing to get into the ClientAPI, you can use the Blame feature to generate a list of changed lines from one version of a file to the next. Eric is right, in that the files will be fetched and compared, but the server will doing the fetching and comparing, and only the list of who changed what line will be sent to the client. Experiment with the Show Blame menu item to see if it has the kind of information that you want.
If you're interested, I could help you out with that.
-Jeremy
If you're interested, I could help you out with that.
-Jeremy