mercurial/commands.py
branchstable
changeset 11067 49e14ec67144
parent 11007 a0102da324ab
child 11078 37d1b20168d1
child 11089 9f2c0dd91389
--- a/mercurial/commands.py	Mon Apr 26 20:13:14 2010 +0900
+++ b/mercurial/commands.py	Fri Apr 30 18:32:18 2010 -0500
@@ -2453,7 +2453,8 @@
     c = repo['']
     subs = c.substate # only repos that are committed
     for s in sorted(subs):
-        c.sub(s).push(opts.get('force'))
+        if not c.sub(s).push(opts.get('force')):
+            return False
 
     r = repo.push(other, opts.get('force'), revs=revs)
     return r == 0