comparison mercurial/subrepo.py @ 37152:0348c778bf70

push: use "repo['.']" instead of old form "repo['']" 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). Differential Revision: https://phab.mercurial-scm.org/D2965
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 29 Mar 2018 09:23:39 -0700
parents 335e19c6b7fa
children 32857300846c
comparison
equal deleted inserted replaced
37151:05c13e5aa9ec 37152:0348c778bf70
722 force = opts.get('force') 722 force = opts.get('force')
723 newbranch = opts.get('new_branch') 723 newbranch = opts.get('new_branch')
724 ssh = opts.get('ssh') 724 ssh = opts.get('ssh')
725 725
726 # push subrepos depth-first for coherent ordering 726 # push subrepos depth-first for coherent ordering
727 c = self._repo[''] 727 c = self._repo['.']
728 subs = c.substate # only repos that are committed 728 subs = c.substate # only repos that are committed
729 for s in sorted(subs): 729 for s in sorted(subs):
730 if c.sub(s).push(opts) == 0: 730 if c.sub(s).push(opts) == 0:
731 return False 731 return False
732 732