From 38729704f02a3935dab956c01c221ec68f68017d Mon Sep 17 00:00:00 2001 From: "nsylvain@google.com" Date: Tue, 1 Jun 2010 23:42:03 +0000 Subject: [PATCH] Fix broken "gcl diff cl" command. We need to use full paths, not relative path. bug:45589 Review URL: http://codereview.chromium.org/2447002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@48680 0039d316-1c4b-4281-b951-d872f2087c98 --- gcl.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gcl.py b/gcl.py index a1596f1e0..66c6c272f 100755 --- a/gcl.py +++ b/gcl.py @@ -1166,8 +1166,12 @@ def CMDdiff(args): files = change_info.GetFileNames() else: files = GetFilesNotInCL() - return RunShellWithReturnCode(['svn', 'diff'] + files + args, - print_output=True)[1] + + root = GetRepositoryRoot() + cmd = ['svn', 'diff'] + cmd.extend([os.path.join(root, x) for x in files]) + cmd.extend(args) + return RunShellWithReturnCode(cmd, print_output=True)[1] @no_args