diff --git a/gclient.py b/gclient.py index 228abf7b2c..3a70aa9ae4 100755 --- a/gclient.py +++ b/gclient.py @@ -1853,6 +1853,9 @@ class CipdDependency(Dependency): self.url, self.root.root_dir, self.name, self.outbuf, out_cb, root=self._cipd_root, package=self._cipd_package) + def hierarchy(self, include_url=False): + return self.parent.hierarchy(include_url) + ' -> ' + self._cipd_subdir + def ToLines(self): """Return a list of lines representing this in a DEPS file.""" s = [] diff --git a/tests/gclient_smoketest.py b/tests/gclient_smoketest.py index 9d34df804c..bded04e85f 100755 --- a/tests/gclient_smoketest.py +++ b/tests/gclient_smoketest.py @@ -1397,7 +1397,7 @@ class GClientSmokeGIT(GClientSmokeBase): ' "url": "' + self.git_base + 'repo_14",', ' },', '', - ' # src -> src/another_cipd_dep:package1', + ' # src -> src/another_cipd_dep', ' "src/another_cipd_dep": {', ' "packages": [', ' {', @@ -1412,7 +1412,7 @@ class GClientSmokeGIT(GClientSmokeBase): ' "dep_type": "cipd",', ' },', '', - ' # src -> src/cipd_dep:package0', + ' # src -> src/cipd_dep', ' "src/cipd_dep": {', ' "packages": [', ' {',