mercurial/subrepo.py
branchstable
changeset 16022 04604d1a9fc3
parent 15912 2bd54ffaa27e
child 16072 bcb973abcc0b
child 16196 8ae7626d8bf1
--- a/mercurial/subrepo.py	Mon Jan 30 11:23:17 2012 -0600
+++ b/mercurial/subrepo.py	Mon Jan 30 11:26:20 2012 -0600
@@ -528,7 +528,7 @@
         c = self._repo['']
         subs = c.substate # only repos that are committed
         for s in sorted(subs):
-            if not c.sub(s).push(opts):
+            if c.sub(s).push(opts) == 0:
                 return False
 
         dsturl = _abssource(self._repo, True)