Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 11067:49e14ec67144 stable
subrepo: propagate and catch push failures
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 30 Apr 2010 18:32:18 -0500 |
parents | a0102da324ab |
children | 37d1b20168d1 9f2c0dd91389 |
line wrap: on
line diff
--- 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