Commit 05bcb89b authored by Paweł Hajdan, Jr's avatar Paweł Hajdan, Jr Committed by Commit Bot

gclient flatten: preserve vars in pinned deps

Bug: 570091
Change-Id: I8c450da68fd36d166f8f838c645672fce7c03891
Reviewed-on: https://chromium-review.googlesource.com/610004Reviewed-by: 's avatarMichael Moss <mmoss@chromium.org>
Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
Commit-Queue: Paweł Hajdan Jr. <phajdan.jr@chromium.org>
parent cba3ea79
...@@ -1739,8 +1739,9 @@ class Flattener(object): ...@@ -1739,8 +1739,9 @@ class Flattener(object):
continue continue
scm = gclient_scm.CreateSCM( scm = gclient_scm.CreateSCM(
dep.parsed_url, self._client.root_dir, dep.name, dep.outbuf) dep.parsed_url, self._client.root_dir, dep.name, dep.outbuf)
dep._parsed_url = dep._raw_url = dep._url = '%s@%s' % ( revinfo = scm.revinfo(self._client._options, [], None)
url, scm.revinfo(self._client._options, [], None)) dep._parsed_url = dep._url = '%s@%s' % (url, revinfo)
dep._raw_url = '%s@%s' % (dep._raw_url, revinfo)
self._deps_string = '\n'.join( self._deps_string = '\n'.join(
_GNSettingsToLines( _GNSettingsToLines(
......
...@@ -744,8 +744,7 @@ class GClientSmokeGIT(GClientSmokeBase): ...@@ -744,8 +744,7 @@ class GClientSmokeGIT(GClientSmokeBase):
'deps = {', 'deps = {',
' # src -> src/repo2 -> foo/bar', ' # src -> src/repo2 -> foo/bar',
' "foo/bar": {', ' "foo/bar": {',
' "url": "git://127.0.0.1:20000/git/repo_3@%s",' % ( ' "url": "/repo_3@%s",' % (self.githash('repo_3', 2)),
self.githash('repo_3', 2)),
' },', ' },',
'', '',
' # src', ' # src',
...@@ -769,8 +768,7 @@ class GClientSmokeGIT(GClientSmokeBase): ...@@ -769,8 +768,7 @@ class GClientSmokeGIT(GClientSmokeBase):
'', '',
' # src -> src/repo8', ' # src -> src/repo8',
' "src/repo8": {', ' "src/repo8": {',
' "url": "git://127.0.0.1:20000/git/repo_8@%s",' % ( ' "url": "/repo_8@%s",' % (self.githash('repo_8', 1)),
self.githash('repo_8', 1)),
' },', ' },',
'', '',
'}', '}',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment