Show More
@@ -2805,6 +2805,10 b' def diffstatdata(lines):' | |||
|
2805 | 2805 | elif (line.startswith('GIT binary patch') or |
|
2806 | 2806 | line.startswith('Binary file')): |
|
2807 | 2807 | isbinary = True |
|
2808 | elif line.startswith('rename from'): | |
|
2809 | filename = line.split()[-1] | |
|
2810 | elif line.startswith('rename to'): | |
|
2811 | filename += ' => %s' % line.split()[-1] | |
|
2808 | 2812 | addresult() |
|
2809 | 2813 | return results |
|
2810 | 2814 |
@@ -236,3 +236,22 b" and starting with '++' should count as a" | |||
|
236 | 236 | $ hg diff --root . --stat |
|
237 | 237 | file | 2 +- |
|
238 | 238 | 1 files changed, 1 insertions(+), 1 deletions(-) |
|
239 | ||
|
240 | When a file is renamed, --git shouldn't loss the info about old file | |
|
241 | $ hg init issue6025 | |
|
242 | $ cd issue6025 | |
|
243 | $ echo > a | |
|
244 | $ hg ci -Am 'add a' | |
|
245 | adding a | |
|
246 | $ hg mv a b | |
|
247 | $ hg diff --git | |
|
248 | diff --git a/a b/b | |
|
249 | rename from a | |
|
250 | rename to b | |
|
251 | $ hg diff --stat | |
|
252 | a | 1 - | |
|
253 | b | 1 + | |
|
254 | 2 files changed, 1 insertions(+), 1 deletions(-) | |
|
255 | $ hg diff --stat --git | |
|
256 | a => b | 0 | |
|
257 | 1 files changed, 0 insertions(+), 0 deletions(-) |
General Comments 0
You need to be logged in to leave comments.
Login now