Comments
Patch
@@ -4972,14 +4972,14 @@ def push(ui, repo, dest=None, **opts):
result = c.sub(s).push(opts)
if result == 0:
return not result
finally:
del repo._subtoppath
- result = repo.push(other, opts.get('force'), revs=revs,
- newbranch=opts.get('new_branch'))
-
- result = not result
+ pushop = exchange.push(repo, other, opts.get('force'), revs=revs,
+ newbranch=opts.get('new_branch'))
+
+ result = not pushop.cgresult
if opts.get('bookmark'):
bresult = bookmarks.pushtoremote(ui, repo, other, opts['bookmark'])
if bresult == 2:
return 2