Comments
Patch
@@ -10,10 +10,11 @@ import xml.dom.minidom
import stat, subprocess, tarfile
from i18n import _
import config, util, node, error, cmdutil, bookmarks, match as matchmod
import phases
import pathutil
+import exchange
hg = None
propertycache = util.propertycache
nullstate = ('', '', 'empty')
@@ -815,15 +816,15 @@ class hgsubrepo(abstractsubrepo):
% (subrelpath(self), dsturl))
return None
self._repo.ui.status(_('pushing subrepo %s to %s\n') %
(subrelpath(self), dsturl))
other = hg.peer(self._repo, {'ssh': ssh}, dsturl)
- res = self._repo.push(other, force, newbranch=newbranch)
+ res = exchange.push(self._repo, other, force, newbranch=newbranch)
# the repo is now clean
self._cachestorehash(dsturl)
- return res
+ return res.cgresult
@annotatesubrepoerror
def outgoing(self, ui, dest, opts):
return hg.outgoing(ui, self._repo, _abssource(self._repo, True), opts)