From patchwork Thu Mar 29 18:05:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2965: push: use "repo['.']" instead of old form "repo['']" From: phabricator X-Patchwork-Id: 29941 Message-Id: <86955adfab37bf413f916d21f16f765c@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Thu, 29 Mar 2018 18:05:10 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG0348c778bf70: push: use "repo['.']" instead of old form "repo['']" (authored by martinvonz, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2965?vs=7363&id=7365 REVISION DETAIL https://phab.mercurial-scm.org/D2965 AFFECTED FILES mercurial/commands.py mercurial/subrepo.py CHANGE DETAILS To: martinvonz, #hg-reviewers, pulkit Cc: mercurial-devel diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -724,7 +724,7 @@ ssh = opts.get('ssh') # push subrepos depth-first for coherent ordering - c = self._repo[''] + c = self._repo['.'] subs = c.substate # only repos that are committed for s in sorted(subs): if c.sub(s).push(opts) == 0: diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -4166,7 +4166,7 @@ repo._subtoppath = dest try: # push subrepos depth-first for coherent ordering - c = repo[''] + c = repo['.'] subs = c.substate # only repos that are committed for s in sorted(subs): result = c.sub(s).push(opts)