Sets the specified comparison method. See Remarks for more info.
revspec
Revisions used to compare. (Use 'cmhelpobjectspec' to learn more about rev specs.)
Help
Remarks
The metrics are: number of changed, added, and deleted lines.Output format parameters (--format option): This command accepts a format string to show the output. The output parameters of this command are the following:
Option / Argument
Description
{0}
Number of changed lines.
{1}
Number of added lines.
{2}
Number of deleted lines.
Comparison methods (--comparisonmethod option)
Option / Argument
Description
ignoreeol
Ignores the end of line differences.
ignorewhitespaces
Ignores the whitespace differences.
ignoreeolandwhitespaces
Ignores the end of line and whitespace differences.
recognizeall
Detects the end of line and whitespace differences.
Examples
cm diffmetrics file.txt#cs:2 file.txt#br:/main/scm0211 --format="There are {0} changed, {1} added and {2} deleted lines."
(Retrieves diffmetrics results formatted.)
cm dm file.txt#cs:2 file.txt#cs:3 --encoding=utf-8 --comparisonmethod=ignorewhitespaces