diff mercurial/subrepo.py @ 16022:04604d1a9fc3 stable

push: more precise failure check on subrepo push This will let us distinguish between nothing to push and push failed
author Matt Mackall <mpm@selenic.com>
date Mon, 30 Jan 2012 11:26:20 -0600 (2012-01-30)
parents 2bd54ffaa27e
children bcb973abcc0b 8ae7626d8bf1
line wrap: on
line diff
--- a/mercurial/subrepo.py
+++ b/mercurial/subrepo.py
@@ -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)