Commit 4f0b0a12 authored by Steve McIntyre's avatar Steve McIntyre

Fix ordering of count_changes() properly

parent 2c43b292
......@@ -336,7 +336,7 @@ sub count_changes
print "ERROR: commit $rev2 not found in revisions of $file\n";
return undef;
}
return $pos2 - $pos1;
return $pos1 - $pos2;
}
# return the type of the input argument (file, dir, symlink, etc)
......
......@@ -261,7 +261,7 @@ sub check_translation
# Here we compare the original version with the translated one and print
# a note for the user if their first or last numbers are too far apart
# From translation-check.wml
my $version_diff = $VCS->count_changes($orig_file, $version, $translation);
my $version_diff = $VCS->count_changes($orig_file, $translation, $version);
if (!defined $version_diff) {
print "check_translation: error from count_changes for orig_file $orig_file, file $file\n";
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment