Fix stats output to be always the same and coherent with what is committed.
git cl dcommit statistics were not using --find-copies-harder, scaring the user
off.
R=cmp@chromium.org
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10795003
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@147343 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py
index 7e90140..5ae17f9 100755
--- a/tests/git_cl_test.py
+++ b/tests/git_cl_test.py
@@ -192,8 +192,8 @@
@classmethod
def _dcommit_calls_3(cls):
return [
- ((['git', 'diff', '--stat', 'refs/remotes/origin/master',
- 'refs/heads/working'],),
+ ((['git', 'diff', '--no-ext-diff', '--stat', '--find-copies-harder',
+ 'refs/remotes/origin/master', 'refs/heads/working'],),
(' PRESUBMIT.py | 2 +-\n'
' 1 files changed, 1 insertions(+), 1 deletions(-)\n')),
(('About to commit; enter to confirm.',), None),