Mercurial > hg
comparison tests/test-strict.t @ 23551:7651621507cf
tests: avoid git diffstat singular/plural output difference
'git diff --stat' output changed with regard to the amount
of changes/insertions/deletions shown.
In older git versions (1.7.7.6), output was shown as:
2 files changed, 2 insertions(+), 1 deletions(-)
In newer versions, output is shown as:
2 files changed, 2 insertions(+), 1 deletion(-)
This patch uses a regex to handle both cases.
author | Mathias De Maré <mathias.demare@gmail.com> |
---|---|
date | Sun, 14 Dec 2014 21:00:58 +0100 |
parents | 3bd577a3283e |
children | 7109d5ddeb0c |
comparison
equal
deleted
inserted
replaced
23550:7fa2189c1e87 | 23551:7651621507cf |
---|