D2965: push: use "repo['.']" instead of old form "repo['']"
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Thu Mar 29 16:47:06 UTC 2018
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Note that this does not conflict with the commit message of my
previous patch: I found this after writing the previous patch
(besides, I very easily forget things).
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2965
AFFECTED FILES
mercurial/commands.py
mercurial/subrepo.py
CHANGE DETAILS
diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py
--- a/mercurial/subrepo.py
+++ b/mercurial/subrepo.py
@@ -723,7 +723,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)
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list