##// END OF EJS Templates
templatekw: force noprefix=False to insure diffstat consistency (issue4755)...
Matthieu Laneuville -
r30811:cf1e15f9 default
parent child Browse files
Show More
@@ -299,7 +299,7 b' def showdiffstat(repo, ctx, templ, **arg'
299 """String. Statistics of changes with the following format:
299 """String. Statistics of changes with the following format:
300 "modified files: +added/-removed lines"
300 "modified files: +added/-removed lines"
301 """
301 """
302 stats = patch.diffstatdata(util.iterlines(ctx.diff()))
302 stats = patch.diffstatdata(util.iterlines(ctx.diff(noprefix=False)))
303 maxname, maxtotal, adds, removes, binary = patch.diffstatsum(stats)
303 maxname, maxtotal, adds, removes, binary = patch.diffstatsum(stats)
304 return '%s: +%s/-%s' % (len(stats), adds, removes)
304 return '%s: +%s/-%s' % (len(stats), adds, removes)
305
305
@@ -1517,6 +1517,13 b' prepare a stack of patches depending on '
1517 |
1517 |
1518 o initial [Babar] 2: +8/-0
1518 o initial [Babar] 2: +8/-0
1519
1519
1520 Adding those config options should not change the output of diffstat. Bugfix #4755.
1521
1522 $ hg log -r . --template '{diffstat}\n'
1523 1: +1/-0
1524 $ hg log -r . --template '{diffstat}\n' --config diff.git=1 \
1525 > --config diff.noprefix=1
1526 1: +1/-0
1520
1527
1521 Importing with some success and some errors:
1528 Importing with some success and some errors:
1522
1529
General Comments 0
You need to be logged in to leave comments. Login now